aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lisp/ChangeLog5
-rw-r--r--lisp/bookmark.el18
2 files changed, 15 insertions, 8 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 68f827b215a..c0371125072 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,5 +1,10 @@
12009-10-04 Karl Fogel <kfogel@red-bean.com> 12009-10-04 Karl Fogel <kfogel@red-bean.com>
2 2
3 * bookmark.el (bookmark-set, bookmark-buffer-name):
4 Improve doc strings. (Bug#1193)
5
62009-10-04 Karl Fogel <kfogel@red-bean.com>
7
3 * bookmark.el (bookmark-get-bookmark, bookmark-get-bookmark-record, 8 * bookmark.el (bookmark-get-bookmark, bookmark-get-bookmark-record,
4 bookmark-set-name, bookmark-prop-get, bookmark-prop-set, 9 bookmark-set-name, bookmark-prop-get, bookmark-prop-set,
5 bookmark-get-annotation, bookmark-set-annotation, 10 bookmark-get-annotation, bookmark-set-annotation,
diff --git a/lisp/bookmark.el b/lisp/bookmark.el
index b2da75c8b1d..b5a3158e272 100644
--- a/lisp/bookmark.el
+++ b/lisp/bookmark.el
@@ -733,13 +733,13 @@ This expects to be called from `point-min' in a bookmark file."
733 733
734;;;###autoload 734;;;###autoload
735(defun bookmark-set (&optional name no-overwrite) 735(defun bookmark-set (&optional name no-overwrite)
736 "Set a bookmark named NAME inside a file. 736 "Set a bookmark named NAME at the current location.
737If name is nil, then prompt the user. 737If name is nil, then prompt the user.
738 738
739With prefix arg (NO-OVERWRITE), do not overwrite a bookmark that 739With prefix arg (NO-OVERWRITE), do not overwrite a bookmark that
740has the same name as NAME if such a bookmark already exists, but 740has the same name as NAME if such a bookmark already exists, but
741instead \"push\" the new bookmark onto the bookmark alist. Thus 741instead push the new bookmark onto the bookmark alist. Thus the
742the most recently set bookmark with name NAME would be the one in 742most recently set bookmark with name NAME would be the one in
743effect at any given time, but the others are still there, should 743effect at any given time, but the others are still there, should
744the user decide to delete the most recent one. 744the user decide to delete the most recent one.
745 745
@@ -747,10 +747,11 @@ To yank words from the text of the buffer and use them as part of the
747bookmark name, type C-w while setting a bookmark. Successive C-w's 747bookmark name, type C-w while setting a bookmark. Successive C-w's
748yank successive words. 748yank successive words.
749 749
750Typing C-u inserts the name of the last bookmark used in the buffer 750Typing C-u will insert (at the bookmark name prompt) the name of the
751\(as an aid in using a single bookmark name to track progress through 751last bookmark used in the document where the new bookmark is being set;
752a large file\). If no bookmark was used, then C-u inserts the name of 752this helps one use a single bookmark name to track progress through
753the file being visited. 753a large document. If there is no prior bookmark for this document,
754then C-u inserts an appropriate name based on the buffer or file.
754 755
755Use \\[bookmark-delete] to remove bookmarks \(give it a name and it 756Use \\[bookmark-delete] to remove bookmarks \(give it a name and it
756removes only the first instance of a bookmark with that name from 757removes only the first instance of a bookmark with that name from
@@ -883,7 +884,8 @@ Default to file name if it's nil."
883 884
884 885
885(defun bookmark-buffer-name () 886(defun bookmark-buffer-name ()
886 "Return the name of the current buffer's file, non-directory." 887 "Return the name of the current buffer (or its file, if any) in a
888way that is suitable as a bookmark name."
887 (cond 889 (cond
888 ;; Or are we a file? 890 ;; Or are we a file?
889 (buffer-file-name (file-name-nondirectory buffer-file-name)) 891 (buffer-file-name (file-name-nondirectory buffer-file-name))