aboutsummaryrefslogtreecommitdiffstats
path: root/lisp/info.el
diff options
context:
space:
mode:
authorJuri Linkov2012-08-08 11:48:57 +0300
committerJuri Linkov2012-08-08 11:48:57 +0300
commitce0fcefa27728a4e83e10962075c388c8a6da87a (patch)
tree5b5d479c062b457950a84f707b3333693d079993 /lisp/info.el
parent53fa865294bada6c2c441f195211671d427bcd69 (diff)
downloademacs-ce0fcefa27728a4e83e10962075c388c8a6da87a.tar.gz
emacs-ce0fcefa27728a4e83e10962075c388c8a6da87a.zip
* lisp/bookmark.el: Add `defaults' property to the bookmark record.
(bookmark-current-buffer): Doc fix. (bookmark-make-record): Add `defaults' property with default values to the bookmark record. (bookmark-minibuffer-read-name-map): Remove key binding "\C-u" with `bookmark-insert-current-bookmark'. (bookmark-set): Get `defaults' property from the bookmark record and use it in `read-from-minibuffer'. (bookmark-insert-current-bookmark): Remove function. * lisp/info.el (Info-bookmark-make-record): Add `defaults' property with values of canonical Info node name, the current Info file name and the current Info node name. Fixes: debbugs:12107
Diffstat (limited to 'lisp/info.el')
-rw-r--r--lisp/info.el17
1 files changed, 12 insertions, 5 deletions
diff --git a/lisp/info.el b/lisp/info.el
index 93046bd13d6..317cba86500 100644
--- a/lisp/info.el
+++ b/lisp/info.el
@@ -5020,11 +5020,18 @@ BUFFER is the buffer speedbar is requesting buttons for."
5020(defun Info-bookmark-make-record () 5020(defun Info-bookmark-make-record ()
5021 "This implements the `bookmark-make-record-function' type (which see) 5021 "This implements the `bookmark-make-record-function' type (which see)
5022for Info nodes." 5022for Info nodes."
5023 `(,Info-current-node 5023 (let* ((file (and (stringp Info-current-file)
5024 ,@(bookmark-make-record-default 'no-file) 5024 (file-name-nondirectory Info-current-file)))
5025 (filename . ,Info-current-file) 5025 (bookmark-name (if file
5026 (info-node . ,Info-current-node) 5026 (concat "(" file ") " Info-current-node)
5027 (handler . Info-bookmark-jump))) 5027 Info-current-node))
5028 (defaults (delq nil (list bookmark-name file Info-current-node))))
5029 `(,bookmark-name
5030 ,@(bookmark-make-record-default 'no-file)
5031 (filename . ,Info-current-file)
5032 (info-node . ,Info-current-node)
5033 (handler . Info-bookmark-jump)
5034 (defaults . ,defaults))))
5028 5035
5029;;;###autoload 5036;;;###autoload
5030(defun Info-bookmark-jump (bmk) 5037(defun Info-bookmark-jump (bmk)