bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#12107: 24.1.50; In Info mode, add the name of the manual as completi


From: Juri Linkov
Subject: bug#12107: 24.1.50; In Info mode, add the name of the manual as completion candidate for "bookmark-set"
Date: Wed, 01 Aug 2012 03:12:44 +0300
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.1.50 (x86_64-pc-linux-gnu)

> Therefore, I request that the name of the info manual be included in
> the list of candidates used by M-n, in addition to the name of the
> node.

Completely agree with you.  The standard Info node name is what you see
in the modeline and also by typing `w' (`Info-copy-current-node-name').
So it should be used in bookmarks as well:

=== modified file 'lisp/info.el'
--- lisp/info.el        2012-07-17 16:53:39 +0000
+++ lisp/info.el        2012-08-01 00:12:40 +0000
@@ -5025,7 +5025,10 @@ (declare-function bookmark-get-bookmark-
 (defun Info-bookmark-make-record ()
   "This implements the `bookmark-make-record-function' type (which see)
 for Info nodes."
-  `(,Info-current-node
+  `(,(if (stringp Info-current-file)
+        (concat "(" (file-name-nondirectory Info-current-file) ") "
+                Info-current-node)
+       Info-current-node)
     ,@(bookmark-make-record-default 'no-file)
     (filename . ,Info-current-file)
     (info-node . ,Info-current-node)





reply via email to

[Prev in Thread] Current Thread [Next in Thread]