diff options
| author | Richard M. Stallman | 1994-05-16 07:24:45 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1994-05-16 07:24:45 +0000 |
| commit | cdf2fffe38b115c093737d0c80dc61081155888b (patch) | |
| tree | 85e3f9593271140a8bb8dec4cc47ac2fabfe92b4 | |
| parent | 42a49b29f46a5c9476b3b5e16760484f3301da68 (diff) | |
| download | emacs-cdf2fffe38b115c093737d0c80dc61081155888b.tar.gz emacs-cdf2fffe38b115c093737d0c80dc61081155888b.zip | |
Doc fixes.
(bookmark-relocate): Rename arg.
| -rw-r--r-- | lisp/bookmark.el | 58 |
1 files changed, 28 insertions, 30 deletions
diff --git a/lisp/bookmark.el b/lisp/bookmark.el index 7dd43433145..1d8b4129ebe 100644 --- a/lisp/bookmark.el +++ b/lisp/bookmark.el | |||
| @@ -179,7 +179,7 @@ through a file easier.") | |||
| 179 | 179 | ||
| 180 | (defvar bookmark-save-flag t | 180 | (defvar bookmark-save-flag t |
| 181 | "*Controls when Emacs saves bookmarks to a file. | 181 | "*Controls when Emacs saves bookmarks to a file. |
| 182 | --> Nil means never save bookmarks, except when `bookmark-save' is | 182 | --> nil means never save bookmarks, except when `bookmark-save' is |
| 183 | explicitly called \(\\[bookmark-save]\). | 183 | explicitly called \(\\[bookmark-save]\). |
| 184 | --> t means save bookmarks when Emacs is killed. | 184 | --> t means save bookmarks when Emacs is killed. |
| 185 | --> Otherise, it should be a number that is the frequency with which | 185 | --> Otherise, it should be a number that is the frequency with which |
| @@ -202,18 +202,18 @@ bookmark-file, which is `~/.emacs-bkmrks' by default.") | |||
| 202 | "*File in which to save bookmarks by default.") | 202 | "*File in which to save bookmarks by default.") |
| 203 | 203 | ||
| 204 | (defvar bookmark-version-control 'nospecial | 204 | (defvar bookmark-version-control 'nospecial |
| 205 | "This variable controls whether or not to make numbered backups of | 205 | "Control whether to make numbered backups of the master bookmark file. |
| 206 | the master bookmark file. It can have four values: t, nil, never, and | 206 | This variable can have four values: t, nil, `never', and `nospecial'. |
| 207 | nospecial. The first three have the same meaning that they do for the | 207 | The first three have the same meaning that they do for the |
| 208 | variable version-control, and the final value nospecial means just use | 208 | variable `version-control'. |
| 209 | the value of version-control.") | 209 | The value `nospecial' means just use the value of `version-control'.") |
| 210 | 210 | ||
| 211 | (defvar bookmark-completion-ignore-case t | 211 | (defvar bookmark-completion-ignore-case t |
| 212 | "*Non-nil means bookmark functions ignore case in completion.") | 212 | "*Non-nil means bookmark functions ignore case in completion.") |
| 213 | 213 | ||
| 214 | (defvar bookmark-sort-flag t | 214 | (defvar bookmark-sort-flag t |
| 215 | "*Non-nil means that bookmarks will be displayed sorted by bookmark | 215 | "*Non-nil means display bookmarks sorted by name. |
| 216 | name. Otherwise they will be displayed in LIFO order (that is, most | 216 | Otherwise they are displayed in LIFO order (that is, most |
| 217 | recently set ones come first, oldest ones come last).") | 217 | recently set ones come first, oldest ones come last).") |
| 218 | 218 | ||
| 219 | (defvar bookmark-search-size 500 | 219 | (defvar bookmark-search-size 500 |
| @@ -225,7 +225,7 @@ recently set ones come first, oldest ones come last).") | |||
| 225 | 225 | ||
| 226 | ;;;###autoload | 226 | ;;;###autoload |
| 227 | (defun bookmark-set (&optional parg) | 227 | (defun bookmark-set (&optional parg) |
| 228 | "Set a bookmark named NAME inside a file. | 228 | "Set a bookmark named NAME inside the visited file. |
| 229 | With prefix arg, will not overwrite a bookmark that has the same name | 229 | With prefix arg, will not overwrite a bookmark that has the same name |
| 230 | as NAME if such a bookmark already exists, but instead will \"push\" | 230 | as NAME if such a bookmark already exists, but instead will \"push\" |
| 231 | the new bookmark onto the bookmark alist. Thus the most recently set | 231 | the new bookmark onto the bookmark alist. Thus the most recently set |
| @@ -237,7 +237,7 @@ To yank words from the text of the buffer and use them as part of the | |||
| 237 | bookmark name, type C-w while setting a bookmark. Successive C-w's | 237 | bookmark name, type C-w while setting a bookmark. Successive C-w's |
| 238 | yank successive words. | 238 | yank successive words. |
| 239 | 239 | ||
| 240 | Typing C-v inserts the name of the current file being visited. Typing | 240 | Typing C-v inserts the name of the current file being visited. Typing |
| 241 | C-u inserts the name of the last bookmark used in the buffer \(as an | 241 | C-u inserts the name of the last bookmark used in the buffer \(as an |
| 242 | aid in using a single bookmark name to track your progress through a | 242 | aid in using a single bookmark name to track your progress through a |
| 243 | large file\). If no bookmark was used, then C-u behaves like C-v and | 243 | large file\). If no bookmark was used, then C-u behaves like C-v and |
| @@ -388,10 +388,9 @@ You may have a problem using this function if the value of variable | |||
| 388 | bookmarks. See help on function `bookmark-load' for more about | 388 | bookmarks. See help on function `bookmark-load' for more about |
| 389 | this. | 389 | this. |
| 390 | 390 | ||
| 391 | If the file pointed to by BOOKMARK no longer exists, you will be asked | 391 | If the file pointed to by BOOKMARK no longer exists, `bookmark-jump' |
| 392 | if you wish to give the bookmark a new location, and bookmark-jump | 392 | asks you to specify a different file to use instead. If you specify |
| 393 | will then jump to the new location, as well as recording it in place | 393 | one, it also updates BOOKMARK to refer to that file." |
| 394 | of the old one in the permanent bookmark record." | ||
| 395 | (interactive (progn (bookmark-try-default-file) | 394 | (interactive (progn (bookmark-try-default-file) |
| 396 | (let* ((completion-ignore-case | 395 | (let* ((completion-ignore-case |
| 397 | bookmark-completion-ignore-case) | 396 | bookmark-completion-ignore-case) |
| @@ -476,11 +475,11 @@ of the old one in the permanent bookmark record." | |||
| 476 | nil)))))) | 475 | nil)))))) |
| 477 | 476 | ||
| 478 | ;;;###autoload | 477 | ;;;###autoload |
| 479 | (defun bookmark-relocate (str) | 478 | (defun bookmark-relocate (bookmark) |
| 480 | "Relocate BOOKMARK -- prompts for a filename, and makes an already | 479 | "Relocate bookmark BOOKMARK. |
| 481 | existing bookmark point to that file, instead of the one it used to | 480 | Prompt for a filename, and makes the bookmark BOOKMARK point to that |
| 482 | point at. Useful when a file has been renamed after a bookmark was | 481 | file, instead of the one it used to point at. Useful when a file has |
| 483 | set in it." | 482 | been renamed after a bookmark was set in it." |
| 484 | (interactive (let ((completion-ignore-case | 483 | (interactive (let ((completion-ignore-case |
| 485 | bookmark-completion-ignore-case)) | 484 | bookmark-completion-ignore-case)) |
| 486 | (progn (bookmark-try-default-file) | 485 | (progn (bookmark-try-default-file) |
| @@ -489,11 +488,11 @@ set in it." | |||
| 489 | bookmark-alist | 488 | bookmark-alist |
| 490 | nil | 489 | nil |
| 491 | 0))))) | 490 | 0))))) |
| 492 | (let* ((bmrk (assoc str bookmark-alist)) | 491 | (let* ((bmrk (assoc bookmark bookmark-alist)) |
| 493 | (bmrk-filename (car (car (cdr bmrk)))) | 492 | (bmrk-filename (car (car (cdr bmrk)))) |
| 494 | (newloc (expand-file-name | 493 | (newloc (expand-file-name |
| 495 | (read-file-name | 494 | (read-file-name |
| 496 | (format "Relocate %s to: " str) | 495 | (format "Relocate %s to: " bookmark) |
| 497 | (file-name-directory bmrk-filename))))) | 496 | (file-name-directory bmrk-filename))))) |
| 498 | (setcar (car (cdr bmrk)) newloc))) | 497 | (setcar (car (cdr bmrk)) newloc))) |
| 499 | 498 | ||
| @@ -632,9 +631,8 @@ one most recently used in this file, if any\)." | |||
| 632 | 631 | ||
| 633 | ;;;###autoload | 632 | ;;;###autoload |
| 634 | (defun bookmark-write () | 633 | (defun bookmark-write () |
| 635 | "Write bookmarks to a file \(for which the user will be prompted | 634 | "Write bookmarks to a specified file. |
| 636 | interactively\). Don't use this in Lisp programs; use bookmark-save | 635 | Don't use this in Lisp programs; use `bookmark-save' instead." |
| 637 | instead." | ||
| 638 | (interactive) | 636 | (interactive) |
| 639 | (bookmark-try-default-file) | 637 | (bookmark-try-default-file) |
| 640 | (bookmark-save t)) | 638 | (bookmark-save t)) |
| @@ -811,8 +809,8 @@ following in your .emacs: | |||
| 811 | (defun list-bookmarks () | 809 | (defun list-bookmarks () |
| 812 | "Display a list of existing bookmarks. | 810 | "Display a list of existing bookmarks. |
| 813 | The list is displayed in a buffer named `*Bookmark List*'. | 811 | The list is displayed in a buffer named `*Bookmark List*'. |
| 814 | The leftmost column displays a D if the bookmark is flagged for | 812 | The leftmost column displays a `D' if the bookmark is flagged for |
| 815 | deletion, or > if it is flagged for displaying." | 813 | deletion, or `>' if it is flagged for displaying." |
| 816 | (interactive) | 814 | (interactive) |
| 817 | (bookmark-try-default-file) | 815 | (bookmark-try-default-file) |
| 818 | (switch-to-buffer (get-buffer-create "*Bookmark List*")) | 816 | (switch-to-buffer (get-buffer-create "*Bookmark List*")) |
| @@ -839,7 +837,7 @@ Letters do not insert themselves; instead, they are commands. | |||
| 839 | \\<Bookmark-menu-mode-map> | 837 | \\<Bookmark-menu-mode-map> |
| 840 | \\[Bookmark-menu-mark] -- mark bookmark to be displayed. | 838 | \\[Bookmark-menu-mark] -- mark bookmark to be displayed. |
| 841 | \\[Bookmark-menu-select] -- select bookmark of line point is on. | 839 | \\[Bookmark-menu-select] -- select bookmark of line point is on. |
| 842 | Also show bookmarks marked using m in other windows. | 840 | Also show bookmarks marked using `m' in other windows. |
| 843 | \\[Bookmark-menu-toggle-filenames] -- toggle displaying of filenames (they may obscure long bookmark names). | 841 | \\[Bookmark-menu-toggle-filenames] -- toggle displaying of filenames (they may obscure long bookmark names). |
| 844 | \\[Bookmark-menu-locate] -- display (in minibuffer) location of this bookmark. | 842 | \\[Bookmark-menu-locate] -- display (in minibuffer) location of this bookmark. |
| 845 | \\[Bookmark-menu-1-window] -- select this bookmark in full-frame window. | 843 | \\[Bookmark-menu-1-window] -- select this bookmark in full-frame window. |
| @@ -1110,8 +1108,8 @@ Optional ARG means move up." | |||
| 1110 | (forward-line 1)))) | 1108 | (forward-line 1)))) |
| 1111 | 1109 | ||
| 1112 | (defun Bookmark-menu-delete-backwards () | 1110 | (defun Bookmark-menu-delete-backwards () |
| 1113 | "Mark bookmark on this line to be deleted by \\<Bookmark-menu-mode-map>\\[Bookmark-menu-execute] command | 1111 | "Mark bookmark on this line to be deleted by \\<Bookmark-menu-mode-map>\\[Bookmark-menu-execute] command. |
| 1114 | and then move up one line" | 1112 | Then move up one line" |
| 1115 | (interactive) | 1113 | (interactive) |
| 1116 | (Bookmark-menu-delete) | 1114 | (Bookmark-menu-delete) |
| 1117 | (forward-line -2) | 1115 | (forward-line -2) |
| @@ -1215,7 +1213,7 @@ this." | |||
| 1215 | 1213 | ||
| 1216 | ;;;###autoload | 1214 | ;;;###autoload |
| 1217 | (defun bookmark-menu-bar-locate (event) | 1215 | (defun bookmark-menu-bar-locate (event) |
| 1218 | "Insert the name of the file associated with BOOKMARK. | 1216 | "Insert the name of the file associated with BOOKMARK. |
| 1219 | \(This is not the same as the contents of that file\)." | 1217 | \(This is not the same as the contents of that file\)." |
| 1220 | (interactive "e") | 1218 | (interactive "e") |
| 1221 | (bookmark-make-menu-bar-with-function 'bookmark-locate | 1219 | (bookmark-make-menu-bar-with-function 'bookmark-locate |