emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] emacs-25 ce81e87: Document 'bookmark-set-no-overwrite'


From: Eli Zaretskii
Subject: [Emacs-diffs] emacs-25 ce81e87: Document 'bookmark-set-no-overwrite'
Date: Sat, 05 Dec 2015 12:22:30 +0000

branch: emacs-25
commit ce81e87751047ef964c8d7f15edbfb3ee4de6703
Author: Eli Zaretskii <address@hidden>
Commit: Eli Zaretskii <address@hidden>

    Document 'bookmark-set-no-overwrite'
    
    * doc/emacs/regs.texi (Bookmarks): Document the new command
    'bookmark-set-no-overwrite' and its keybinding.
---
 doc/emacs/regs.texi |   10 +++++++++-
 etc/NEWS            |    1 +
 2 files changed, 10 insertions(+), 1 deletions(-)

diff --git a/doc/emacs/regs.texi b/doc/emacs/regs.texi
index d8841ca..13c03f7 100644
--- a/doc/emacs/regs.texi
+++ b/doc/emacs/regs.texi
@@ -293,9 +293,11 @@ various files.
 Set the bookmark for the visited file, at point.
 
 @item C-x r m @var{bookmark} @key{RET}
address@hidden bookmark-set
 Set the bookmark named @var{bookmark} at point (@code{bookmark-set}).
 
address@hidden C-x r M @var{bookmark} @key{RET}
+Like @kbd{C-x r m}, but don't overwrite an existing bookmark.
+
 @item C-x r b @var{bookmark} @key{RET}
 @findex bookmark-jump
 Jump to the bookmark named @var{bookmark} (@code{bookmark-jump}).
@@ -320,6 +322,12 @@ name.  If you name each bookmark after the file it points 
to, then you
 can conveniently revisit any of those files with @kbd{C-x r b}, and move
 to the position of the bookmark at the same time.
 
address@hidden C-x r M
address@hidden bookmark-set-no-overwrite
+  The command @kbd{C-x r M} (@code{bookmark-set-no-overwrite}) works
+like @kbd{C-x r m}, but it signals an error if the specified bookmark
+already exists, instead of overwriting it.
+
 @kindex C-x r l
   To display a list of all your bookmarks in a separate buffer, type
 @kbd{C-x r l} (@code{list-bookmarks}).  If you switch to that buffer,
diff --git a/etc/NEWS b/etc/NEWS
index 482db09..e3638b4 100644
--- a/etc/NEWS
+++ b/etc/NEWS
@@ -305,6 +305,7 @@ current package keywords are recognized.  Set the new option
 It's meant for use together with `compile':
 emacs -batch --eval "(checkdoc-file \"subr.el\")"
 
++++
 ** New function `bookmark-set-no-overwrite' bound to C-x r M.
 It raises an error if a bookmark of that name already exists,
 unlike `bookmark-set' which silently updates an existing bookmark.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]