Subject: bug#12107: 24.1.50; In Info mode, add the name of the manual as completion candidate for "bookmark-set"

From: Juri Linkov <[email-masked]>
Date: Wed, 01 Aug 2012 03:12:44 +0300

> 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)