diff options
| -rw-r--r-- | lisp/ChangeLog | 10 | ||||
| -rw-r--r-- | lisp/bookmark.el | 28 |
2 files changed, 26 insertions, 12 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index ea529794c74..ebc8755c2ca 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,13 @@ | |||
| 1 | 2009-10-10 Karl Fogel <kfogel@red-bean.com> | ||
| 2 | |||
| 3 | * bookmark.el (Info-suffix-list): Remove this unused variable. | ||
| 4 | (bookmark-current-point): Remove this obsolete variable. | ||
| 5 | (bookmark-set, bookmark-rename, bookmark-send-edited-annotation): | ||
| 6 | Adjust for removal of bookmark-current-point. | ||
| 7 | |||
| 8 | (bookmarks-already-loaded, bookmark-current-buffer) | ||
| 9 | (bookmark-yank-point): Document. (Bug#4188) | ||
| 10 | |||
| 1 | 2009-10-10 Glenn Morris <rgm@gnu.org> | 11 | 2009-10-10 Glenn Morris <rgm@gnu.org> |
| 2 | 12 | ||
| 3 | * calendar/calendar.el (calendar-split-width-threshold): New option. | 13 | * calendar/calendar.el (calendar-split-width-threshold): New option. |
diff --git a/lisp/bookmark.el b/lisp/bookmark.el index ae2b79722d7..6c9559de5ae 100644 --- a/lisp/bookmark.el +++ b/lisp/bookmark.el | |||
| @@ -278,7 +278,8 @@ will be used to open this bookmark instead of `bookmark-default-handler', | |||
| 278 | whose calling discipline HANDLER-FUNC should of course match.") | 278 | whose calling discipline HANDLER-FUNC should of course match.") |
| 279 | 279 | ||
| 280 | 280 | ||
| 281 | (defvar bookmarks-already-loaded nil) | 281 | (defvar bookmarks-already-loaded nil |
| 282 | "Non-nil iff bookmarks have been loaded from `bookmark-default-file'.") | ||
| 282 | 283 | ||
| 283 | 284 | ||
| 284 | ;; more stuff added by db. | 285 | ;; more stuff added by db. |
| @@ -299,11 +300,18 @@ through a file easier.") | |||
| 299 | "Length of the context strings recorded on either side of a bookmark.") | 300 | "Length of the context strings recorded on either side of a bookmark.") |
| 300 | 301 | ||
| 301 | 302 | ||
| 302 | (defvar bookmark-current-point 0) | 303 | (defvar bookmark-current-buffer nil |
| 303 | (defvar bookmark-yank-point 0) | 304 | "The buffer in which a bookmark is currently being set or renamed. |
| 304 | (defvar bookmark-current-buffer nil) | 305 | Functions that insert strings into the minibuffer use this to know |
| 306 | the source buffer for that information; see `bookmark-yank-word' and | ||
| 307 | `bookmark-insert-current-bookmark' for example.") | ||
| 308 | |||
| 309 | |||
| 310 | (defvar bookmark-yank-point 0 | ||
| 311 | "The next point from which to pull source text for `bookmark-yank-word'. | ||
| 312 | This point is in `bookmark-curent-buffer'.") | ||
| 313 | |||
| 305 | 314 | ||
| 306 | (defvar Info-suffix-list) | ||
| 307 | 315 | ||
| 308 | ;; Helper functions. | 316 | ;; Helper functions. |
| 309 | 317 | ||
| @@ -762,7 +770,6 @@ the list of bookmarks.\)" | |||
| 762 | 770 | ||
| 763 | (bookmark-maybe-load-default-file) | 771 | (bookmark-maybe-load-default-file) |
| 764 | 772 | ||
| 765 | (setq bookmark-current-point (point)) | ||
| 766 | (setq bookmark-yank-point (point)) | 773 | (setq bookmark-yank-point (point)) |
| 767 | (setq bookmark-current-buffer (current-buffer)) | 774 | (setq bookmark-current-buffer (current-buffer)) |
| 768 | 775 | ||
| @@ -777,9 +784,8 @@ the list of bookmarks.\)" | |||
| 777 | (bookmark-store str (cdr record) no-overwrite) | 784 | (bookmark-store str (cdr record) no-overwrite) |
| 778 | 785 | ||
| 779 | ;; Ask for an annotation buffer for this bookmark | 786 | ;; Ask for an annotation buffer for this bookmark |
| 780 | (if bookmark-use-annotations | 787 | (when bookmark-use-annotations |
| 781 | (bookmark-edit-annotation str) | 788 | (bookmark-edit-annotation str))))) |
| 782 | (goto-char bookmark-current-point))))) | ||
| 783 | 789 | ||
| 784 | (defun bookmark-kill-line (&optional newline-too) | 790 | (defun bookmark-kill-line (&optional newline-too) |
| 785 | "Kill from point to end of line. | 791 | "Kill from point to end of line. |
| @@ -860,8 +866,7 @@ Lines beginning with `#' are ignored." | |||
| 860 | (let ((annotation (buffer-substring-no-properties (point-min) (point-max))) | 866 | (let ((annotation (buffer-substring-no-properties (point-min) (point-max))) |
| 861 | (bookmark bookmark-annotation-name)) | 867 | (bookmark bookmark-annotation-name)) |
| 862 | (bookmark-set-annotation bookmark annotation) | 868 | (bookmark-set-annotation bookmark annotation) |
| 863 | (bookmark-bmenu-surreptitiously-rebuild-list) | 869 | (bookmark-bmenu-surreptitiously-rebuild-list)) |
| 864 | (goto-char bookmark-current-point)) | ||
| 865 | (kill-buffer (current-buffer))) | 870 | (kill-buffer (current-buffer))) |
| 866 | 871 | ||
| 867 | 872 | ||
| @@ -1195,7 +1200,6 @@ name." | |||
| 1195 | (bookmark-maybe-historicize-string old) | 1200 | (bookmark-maybe-historicize-string old) |
| 1196 | (bookmark-maybe-load-default-file) | 1201 | (bookmark-maybe-load-default-file) |
| 1197 | 1202 | ||
| 1198 | (setq bookmark-current-point (point)) | ||
| 1199 | (setq bookmark-yank-point (point)) | 1203 | (setq bookmark-yank-point (point)) |
| 1200 | (setq bookmark-current-buffer (current-buffer)) | 1204 | (setq bookmark-current-buffer (current-buffer)) |
| 1201 | (let ((newname | 1205 | (let ((newname |