diff options
| author | Richard M. Stallman | 1996-05-09 17:34:55 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1996-05-09 17:34:55 +0000 |
| commit | 5e0e5feb88ec8340b4842f9f7d9ac36afbeed85f (patch) | |
| tree | 7fc75f0b08a1a154c53fac2ee828b76aac98afed /lisp | |
| parent | 6f96f4c9e7c8f25e7cc517b561ac741ba6f31018 (diff) | |
| download | emacs-5e0e5feb88ec8340b4842f9f7d9ac36afbeed85f.tar.gz emacs-5e0e5feb88ec8340b4842f9f7d9ac36afbeed85f.zip | |
(bookmark-bmenu-delete-backwards)
(bookmark-write, bookmark-relocate, bookmark-insert-buffer-name)
(bookmark-insert-current-bookmark, bookmark-send-edited-annotation)
(bookmark-read-annotation, bookmark-read-annotation-text-func)
(bookmark-send-annotation, bookmark-insert-file-format-version-stamp):
Doc fixes.
Diffstat (limited to 'lisp')
| -rw-r--r-- | lisp/bookmark.el | 63 |
1 files changed, 29 insertions, 34 deletions
diff --git a/lisp/bookmark.el b/lisp/bookmark.el index 0e068746ac1..4340048e7b6 100644 --- a/lisp/bookmark.el +++ b/lisp/bookmark.el | |||
| @@ -709,7 +709,7 @@ This expects to be called from point-min in a bookmark file." | |||
| 709 | 709 | ||
| 710 | 710 | ||
| 711 | (defun bookmark-insert-file-format-version-stamp () | 711 | (defun bookmark-insert-file-format-version-stamp () |
| 712 | "Insert text indicating current version of bookmark file-format." | 712 | "Insert text indicating current version of bookmark file format." |
| 713 | (insert | 713 | (insert |
| 714 | (format ";;;; Emacs Bookmark Format Version %d ;;;;\n" | 714 | (format ";;;; Emacs Bookmark Format Version %d ;;;;\n" |
| 715 | bookmark-file-format-version)) | 715 | bookmark-file-format-version)) |
| @@ -808,8 +808,9 @@ Does not affect the kill-ring." | |||
| 808 | 808 | ||
| 809 | 809 | ||
| 810 | (defun bookmark-send-annotation () | 810 | (defun bookmark-send-annotation () |
| 811 | "After remove lines beginning with '#', use the contents of this buffer | 811 | "Use buffer contents as the annotation for a bookmark. |
| 812 | as the annotation for a bookmark, and store it in the bookmark list with | 812 | Exclude lines that begin with `#'. |
| 813 | Store the annotation text in the bookmark list with | ||
| 813 | the bookmark (and file, and point) specified in buffer local variables." | 814 | the bookmark (and file, and point) specified in buffer local variables." |
| 814 | (interactive) | 815 | (interactive) |
| 815 | (if (not (eq major-mode 'bookmark-read-annotation-mode)) | 816 | (if (not (eq major-mode 'bookmark-read-annotation-mode)) |
| @@ -849,10 +850,8 @@ the bookmark (and file, and point) specified in buffer local variables." | |||
| 849 | 850 | ||
| 850 | 851 | ||
| 851 | (defvar bookmark-read-annotation-text-func 'bookmark-default-annotation-text | 852 | (defvar bookmark-read-annotation-text-func 'bookmark-default-annotation-text |
| 852 | "A variable containing a function which returns the text to insert | 853 | "Function to return default text to use for a bookmark annotation. |
| 853 | into an annotation composition buffer. It takes the name of the bookmark, | 854 | It takes the name of the bookmark, as a string, as an arg.") |
| 854 | as a string, as an arg.") | ||
| 855 | |||
| 856 | 855 | ||
| 857 | (defun bookmark-read-annotation-mode (buf point parg bookmark) | 856 | (defun bookmark-read-annotation-mode (buf point parg bookmark) |
| 858 | "Mode for composing annotations for a bookmark. | 857 | "Mode for composing annotations for a bookmark. |
| @@ -881,8 +880,8 @@ the annotation. | |||
| 881 | 880 | ||
| 882 | 881 | ||
| 883 | (defun bookmark-read-annotation (parg bookmark) | 882 | (defun bookmark-read-annotation (parg bookmark) |
| 884 | "Pop up a buffer for entering a bookmark annotation. Text surrounding | 883 | "Pop up a buffer for entering a bookmark annotation. |
| 885 | the bookmark is PARG; the bookmark name is BOOKMARK." | 884 | Text surrounding the bookmark is PARG; the bookmark name is BOOKMARK." |
| 886 | (let ((buf (current-buffer)) | 885 | (let ((buf (current-buffer)) |
| 887 | (point (point))) | 886 | (point (point))) |
| 888 | (pop-to-buffer (generate-new-buffer-name "*Bookmark Annotation Compose*")) | 887 | (pop-to-buffer (generate-new-buffer-name "*Bookmark Annotation Compose*")) |
| @@ -918,8 +917,7 @@ When you have finished composing, type \\[bookmark-send-annotation]. | |||
| 918 | 917 | ||
| 919 | 918 | ||
| 920 | (defun bookmark-send-edited-annotation () | 919 | (defun bookmark-send-edited-annotation () |
| 921 | "After remove lines beginning with '#', use the contents of this buffer | 920 | "Use buffer contents (minus beginning with `#' as annotation for a bookmark." |
| 922 | as the new annotation for a bookmark." | ||
| 923 | (interactive) | 921 | (interactive) |
| 924 | (if (not (eq major-mode 'bookmark-edit-annotation-mode)) | 922 | (if (not (eq major-mode 'bookmark-edit-annotation-mode)) |
| 925 | (error "Not in bookmark-edit-annotation-mode")) | 923 | (error "Not in bookmark-edit-annotation-mode")) |
| @@ -945,8 +943,8 @@ as the new annotation for a bookmark." | |||
| 945 | 943 | ||
| 946 | 944 | ||
| 947 | (defun bookmark-insert-current-bookmark () | 945 | (defun bookmark-insert-current-bookmark () |
| 948 | "Insert this buffer's value of bookmark-current-bookmark, default | 946 | "Insert this buffer's value of bookmark-current-bookmark. |
| 949 | to file name if it's nil." | 947 | Default to file name if it's nil." |
| 950 | (interactive) | 948 | (interactive) |
| 951 | (let ((str | 949 | (let ((str |
| 952 | (save-excursion | 950 | (save-excursion |
| @@ -956,8 +954,8 @@ to file name if it's nil." | |||
| 956 | 954 | ||
| 957 | 955 | ||
| 958 | (defun bookmark-insert-buffer-name () | 956 | (defun bookmark-insert-buffer-name () |
| 959 | "Insert the name (sans path) of the current file into the bookmark | 957 | "Insert the current file name into the bookmark name being set. |
| 960 | name that is being set." | 958 | The directory part of the file name is not used." |
| 961 | (interactive) | 959 | (interactive) |
| 962 | (let ((str | 960 | (let ((str |
| 963 | (save-excursion | 961 | (save-excursion |
| @@ -1021,7 +1019,6 @@ For example, if this is a Info buffer, return the Info file's name." | |||
| 1021 | (defun bookmark-maybe-load-default-file () | 1019 | (defun bookmark-maybe-load-default-file () |
| 1022 | (and (not bookmarks-already-loaded) | 1020 | (and (not bookmarks-already-loaded) |
| 1023 | (null bookmark-alist) | 1021 | (null bookmark-alist) |
| 1024 | |||
| 1025 | (prog2 | 1022 | (prog2 |
| 1026 | (and | 1023 | (and |
| 1027 | ;; Possibly the old bookmark file, "~/.emacs-bkmrks", needs | 1024 | ;; Possibly the old bookmark file, "~/.emacs-bkmrks", needs |
| @@ -1143,10 +1140,10 @@ of the old one in the permanent bookmark record." | |||
| 1143 | 1140 | ||
| 1144 | ;;;###autoload | 1141 | ;;;###autoload |
| 1145 | (defun bookmark-relocate (bookmark) | 1142 | (defun bookmark-relocate (bookmark) |
| 1146 | "Relocate BOOKMARK -- prompts for a filename, and makes an already | 1143 | "Relocate BOOKMARK to another file (reading file name with minibuffer). |
| 1147 | existing bookmark point to that file, instead of the one it used to | 1144 | This makes an already existing bookmark point to that file, instead of |
| 1148 | point at. Useful when a file has been renamed after a bookmark was | 1145 | the one it used to point at. Useful when a file has been renamed |
| 1149 | set in it." | 1146 | after a bookmark was set in it." |
| 1150 | (interactive (bookmark-completing-read "Bookmark to relocate")) | 1147 | (interactive (bookmark-completing-read "Bookmark to relocate")) |
| 1151 | (bookmark-maybe-historicize-string bookmark) | 1148 | (bookmark-maybe-historicize-string bookmark) |
| 1152 | (bookmark-maybe-load-default-file) | 1149 | (bookmark-maybe-load-default-file) |
| @@ -1178,11 +1175,11 @@ minibuffer history list `bookmark-history'." | |||
| 1178 | 1175 | ||
| 1179 | ;;;###autoload | 1176 | ;;;###autoload |
| 1180 | (defun bookmark-rename (old &optional new) | 1177 | (defun bookmark-rename (old &optional new) |
| 1181 | "Change the name of OLD bookmark to NEW name. If called from | 1178 | "Change the name of OLD bookmark to NEW name. |
| 1182 | keyboard, prompts for OLD and NEW. If called from menubar, OLD is | 1179 | If called from keyboard, prompt for OLD and NEW. If called from |
| 1183 | selected from a menu, and prompts for NEW. | 1180 | menubar, select OLD from a menu and prompt for NEW. |
| 1184 | 1181 | ||
| 1185 | If called from Lisp, prompts for NEW if only OLD was passed as an | 1182 | If called from Lisp, prompt for NEW if only OLD was passed as an |
| 1186 | argument. If called with two strings, then no prompting is done. You | 1183 | argument. If called with two strings, then no prompting is done. You |
| 1187 | must pass at least OLD when calling from Lisp. | 1184 | must pass at least OLD when calling from Lisp. |
| 1188 | 1185 | ||
| @@ -1283,9 +1280,8 @@ probably because we were called from there." | |||
| 1283 | 1280 | ||
| 1284 | ;;;###autoload | 1281 | ;;;###autoload |
| 1285 | (defun bookmark-write () | 1282 | (defun bookmark-write () |
| 1286 | "Write bookmarks to a file \(for which the user will be prompted | 1283 | "Write bookmarks to a file (reading the file name with the minibuffer). |
| 1287 | interactively\). Don't use this in Lisp programs; use bookmark-save | 1284 | Don't use this in Lisp programs; use `bookmark-save' instead." |
| 1288 | instead." | ||
| 1289 | (interactive) | 1285 | (interactive) |
| 1290 | (bookmark-maybe-load-default-file) | 1286 | (bookmark-maybe-load-default-file) |
| 1291 | (bookmark-save t)) | 1287 | (bookmark-save t)) |
| @@ -1705,7 +1701,7 @@ if an annotation exists." | |||
| 1705 | 1701 | ||
| 1706 | 1702 | ||
| 1707 | (defun bookmark-bmenu-mark () | 1703 | (defun bookmark-bmenu-mark () |
| 1708 | "Mark bookmark on this line to be displayed by \\<bookmark-bmenu-mode-map>\\[bookmark-bmenu-select] command." | 1704 | "Mark bookmark on this line to be displayed by \\<bookmark-bmenu-mode-map>\\[bookmark-bmenu-select]." |
| 1709 | (interactive) | 1705 | (interactive) |
| 1710 | (beginning-of-line) | 1706 | (beginning-of-line) |
| 1711 | (if (bookmark-bmenu-check-position) | 1707 | (if (bookmark-bmenu-check-position) |
| @@ -1890,7 +1886,8 @@ Optional BACKUP means move up." | |||
| 1890 | 1886 | ||
| 1891 | 1887 | ||
| 1892 | (defun bookmark-bmenu-delete () | 1888 | (defun bookmark-bmenu-delete () |
| 1893 | "Mark bookmark on this line to be deleted by \\<bookmark-bmenu-mode-map>\\[bookmark-bmenu-execute-deletions] command." | 1889 | "Mark bookmark on this line to be deleted. |
| 1890 | To carry out the deletions that you've marked, use \\<bookmark-bmenu-mode-map>\\[bookmark-bmenu-execute-deletions]." | ||
| 1894 | (interactive) | 1891 | (interactive) |
| 1895 | (beginning-of-line) | 1892 | (beginning-of-line) |
| 1896 | (if (bookmark-bmenu-check-position) | 1893 | (if (bookmark-bmenu-check-position) |
| @@ -1901,8 +1898,8 @@ Optional BACKUP means move up." | |||
| 1901 | 1898 | ||
| 1902 | 1899 | ||
| 1903 | (defun bookmark-bmenu-delete-backwards () | 1900 | (defun bookmark-bmenu-delete-backwards () |
| 1904 | "Mark bookmark on this line to be deleted by \\<bookmark-bmenu-mode-map>\\[bookmark-bmenu-execute-deletions] command | 1901 | "Mark bookmark on this line to be deleted, then move up one line. |
| 1905 | and then move up one line" | 1902 | To carry out the deletions that you've marked, use \\<bookmark-bmenu-mode-map>\\[bookmark-bmenu-execute-deletions]." |
| 1906 | (interactive) | 1903 | (interactive) |
| 1907 | (bookmark-bmenu-delete) | 1904 | (bookmark-bmenu-delete) |
| 1908 | (forward-line -2) | 1905 | (forward-line -2) |
| @@ -2150,9 +2147,7 @@ corresponding bookmark function from Lisp \(the one without the | |||
| 2150 | ;; We MUST autoload EACH form used to set up this variable's value, so | 2147 | ;; We MUST autoload EACH form used to set up this variable's value, so |
| 2151 | ;; that the whole job is done in loaddefs.el. | 2148 | ;; that the whole job is done in loaddefs.el. |
| 2152 | 2149 | ||
| 2153 | ;; FSF Emacs menubar stuff | 2150 | ;; Emacs menubar stuff. |
| 2154 | ;; The odd conditional structure is due to the limitations of autoload | ||
| 2155 | ;; cookies. | ||
| 2156 | 2151 | ||
| 2157 | ;;;###autoload | 2152 | ;;;###autoload |
| 2158 | (defvar menu-bar-bookmark-map (make-sparse-keymap "Bookmark functions")) | 2153 | (defvar menu-bar-bookmark-map (make-sparse-keymap "Bookmark functions")) |