]> git.eshelyaron.com Git - emacs.git/commitdiff
Rename command to bookmark-edit-annotation-confirm
authorStefan Kangas <stefan@marxist.se>
Fri, 17 Jun 2022 14:06:10 +0000 (16:06 +0200)
committerStefan Kangas <stefan@marxist.se>
Fri, 17 Jun 2022 14:30:51 +0000 (16:30 +0200)
* lisp/bookmark.el (bookmark-edit-annotation-confirm): Rename from
'bookmark-send-edited-annotation' to be more consistent with
'bookmark-edit-annotation-cancel'.  Make the old name into an
obsolete function alias.

lisp/bookmark.el

index fdaea381abb3cb83ef7f333e97f6bc143d074d97..126c25966cbb2916a8f47daf6cac135fbadf57b5 100644 (file)
@@ -1029,7 +1029,7 @@ annotations."
            "#  All lines which start with a `#' will be deleted.\n")
           (substitute-command-keys
            (concat
-            "#  Type \\[bookmark-send-edited-annotation] when done.  Type "
+            "#  Type \\[bookmark-edit-annotation-confirm] when done.  Type "
             "\\[bookmark-edit-annotation-cancel] to cancel.\n#\n"))
          "#  Author: " (user-full-name) " <" (user-login-name) "@"
          (system-name) ">\n"
@@ -1043,7 +1043,7 @@ It takes one argument, the name of the bookmark, as a string.")
 (defvar-keymap bookmark-edit-annotation-mode-map
   :doc "Keymap for editing an annotation of a bookmark."
   :parent text-mode-map
-  "C-c C-c" #'bookmark-send-edited-annotation
+  "C-c C-c" #'bookmark-edit-annotation-confirm
   "C-c C-k" #'bookmark-edit-annotation-cancel)
 
 (defun bookmark-insert-annotation (bookmark-name-or-record)
@@ -1059,7 +1059,7 @@ It takes one argument, the name of the bookmark, as a string.")
   text-mode "Edit Bookmark Annotation"
   "Mode for editing the annotation of bookmarks.
 \\<bookmark-edit-annotation-mode-map>\
-When you have finished composing, type \\[bookmark-send-edited-annotation] \
+When you have finished composing, type \\[bookmark-edit-annotation-confirm] \
 or \\[bookmark-edit-annotation-cancel] to cancel.
 
 \\{bookmark-edit-annotation-mode-map}")
@@ -1083,7 +1083,7 @@ or \\[bookmark-edit-annotation-cancel] to cancel.
   (bookmark-edit-annotation--maybe-display-list
    (message "Canceled by user")))
 
-(defun bookmark-send-edited-annotation ()
+(defun bookmark-edit-annotation-confirm ()
   "Use buffer contents as annotation for a bookmark.
 Lines beginning with `#' are ignored."
   (interactive nil bookmark-edit-annotation-mode)
@@ -2571,6 +2571,12 @@ This also runs `bookmark-exit-hook'."
 
 (run-hooks 'bookmark-load-hook)
 
+\f
+;;; Obsolete:
+
+(define-obsolete-function-alias 'bookmark-send-edited-annotation
+  #'bookmark-edit-annotation-confirm "29.1")
+
 (provide 'bookmark)
 
 ;;; bookmark.el ends here