branch: externals/denote commit 6b2067dba91c8499b56342b6325731de5cb7fc82 Author: Protesilaos Stavrou <i...@protesilaos.com> Commit: Protesilaos Stavrou <i...@protesilaos.com>
Remove obsolete denote-dired-rename-expert --- README.org | 6 ------ denote.el | 12 ++---------- 2 files changed, 2 insertions(+), 16 deletions(-) diff --git a/README.org b/README.org index dbfa1f128d..cc58578160 100644 --- a/README.org +++ b/README.org @@ -448,10 +448,6 @@ For example: Rename sample.pdf to 20220612T052900--my-sample-title__testing.pdf? (y or n) #+end_example -#+vindex: denote-dired-rename-expert -However, if the user option ~denote-dired-rename-expert~ is non-nil, the -command conducts the renaming operation outright---no questions asked! - The file type extension (e.g. =.pdf=) is read from the underlying file and is preserved through the renaming process. Files that have no extension are simply left without one. @@ -1492,8 +1488,6 @@ Everything is in place to set up the package. ;; right away) (add-hook 'find-file-hook #'denote-link-buttonize-buffer) -(setq denote-dired-rename-expert nil) - ;; We use different ways to specify a path for demo purposes. (setq denote-dired-directories (list denote-directory diff --git a/denote.el b/denote.el index 47414a2cc0..e54546b48b 100644 --- a/denote.el +++ b/denote.el @@ -1166,14 +1166,7 @@ operation on multiple files." (search-forward old-keywords nil t 1) (replace-match (concat "\\1" new-keywords) t)))))) -(defcustom denote-dired-rename-expert nil - "If t, renaming a file doesn't ask for confirmation. -The confiration is asked via a `y-or-n-p' prompt which shows the -old name followed by the new one. This applies to the command -`denote-dired-rename-file'." - :type 'boolean - :group 'denote-dired) - +(make-obsolete 'denote-dired-rename-expert nil "0.5.0") (make-obsolete 'denote-dired-post-rename-functions nil "0.4.0") ;;;;; The renaming commands and their prompts @@ -1253,8 +1246,7 @@ prompt. As a final step after the FILE, TITLE, and KEYWORDS prompts, ask for confirmation, showing the difference between old and new file -names. If `denote-dired-rename-expert' is non-nil, conduct the -renaming operation outright---no question asked! +names. The file type extension (e.g. .pdf) is read from the underlying file and is preserved through the renaming process. Files that