aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJuanma Barranquero2011-04-05 17:08:28 +0200
committerJuanma Barranquero2011-04-05 17:08:28 +0200
commit6194c800cec28a2893e8dc9e4250ec0e67dbdbe6 (patch)
treed9a4e0ad4485873d36a7854fc5247608558c48c2
parentb87a82007428428e2f24af64a59799402bb1651e (diff)
downloademacs-6194c800cec28a2893e8dc9e4250ec0e67dbdbe6.tar.gz
emacs-6194c800cec28a2893e8dc9e4250ec0e67dbdbe6.zip
lisp/info.el: Fix typos; mark unused parameters.
* info.el (Info-directory-list, Info-read-node-name-2) (Info-split-parameter-string): Doc fixes. (Info-virtual-nodes): Reflow docstring. (Info-find-file, Info-directory-toc-nodes, Info-history-toc-nodes) (Info-apropos-toc-nodes, info-finder, Info-get-token) (Info-find-emacs-command-nodes, Info-speedbar-key-map): Fix typos in docstrings. (Info-revert-buffer-function, Info-search, Info-isearch-pop-state) (Info-speedbar-hierarchy-buttons, Info-speedbar-goto-node) (Info-speedbar-buttons, Info-desktop-buffer-misc-data) (Info-restore-desktop-buffer): Mark unused parameters. (Info-directory-find-file, Info-directory-find-node) (Info-history-find-file, Info-history-find-node, Info-toc-find-node) (Info-virtual-index-find-node, Info-apropos-find-file) (Info-apropos-find-node, Info-finder-find-file, Info-finder-find-node): Mark unused parameters; fix typos in arguments. (Info-virtual-index): Remove unused local variable `nodename'.
-rw-r--r--lisp/ChangeLog20
-rw-r--r--lisp/info.el186
2 files changed, 112 insertions, 94 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 2a58b306111..022fc933741 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,23 @@
12011-04-05 Juanma Barranquero <lekktu@gmail.com>
2
3 * info.el (Info-directory-list, Info-read-node-name-2)
4 (Info-split-parameter-string): Doc fixes.
5 (Info-virtual-nodes): Reflow docstring.
6 (Info-find-file, Info-directory-toc-nodes, Info-history-toc-nodes)
7 (Info-apropos-toc-nodes, info-finder, Info-get-token)
8 (Info-find-emacs-command-nodes, Info-speedbar-key-map):
9 Fix typos in docstrings.
10 (Info-revert-buffer-function, Info-search, Info-isearch-pop-state)
11 (Info-speedbar-hierarchy-buttons, Info-speedbar-goto-node)
12 (Info-speedbar-buttons, Info-desktop-buffer-misc-data)
13 (Info-restore-desktop-buffer): Mark unused parameters.
14 (Info-directory-find-file, Info-directory-find-node)
15 (Info-history-find-file, Info-history-find-node, Info-toc-find-node)
16 (Info-virtual-index-find-node, Info-apropos-find-file)
17 (Info-apropos-find-node, Info-finder-find-file, Info-finder-find-node):
18 Mark unused parameters; fix typos in arguments.
19 (Info-virtual-index): Remove unused local variable `nodename'.
20
12011-04-05 Deniz Dogan <deniz@dogan.se> 212011-04-05 Deniz Dogan <deniz@dogan.se>
2 22
3 * net/rcirc.el: Update my e-mail address. 23 * net/rcirc.el: Update my e-mail address.
diff --git a/lisp/info.el b/lisp/info.el
index 34c486d3754..796fd7e2256 100644
--- a/lisp/info.el
+++ b/lisp/info.el
@@ -165,7 +165,7 @@ A header-line does not scroll with the rest of the buffer."
165If nil, meaning not yet initialized, Info uses the environment 165If nil, meaning not yet initialized, Info uses the environment
166variable INFOPATH to initialize it, or `Info-default-directory-list' 166variable INFOPATH to initialize it, or `Info-default-directory-list'
167if there is no INFOPATH variable in the environment, or the 167if there is no INFOPATH variable in the environment, or the
168concatenation of the two if INFOPATH ends with a colon. 168concatenation of the two if INFOPATH ends with a `path-separator'.
169 169
170When `Info-directory-list' is initialized from the value of 170When `Info-directory-list' is initialized from the value of
171`Info-default-directory-list', and Emacs is installed in one of the 171`Info-default-directory-list', and Emacs is installed in one of the
@@ -343,9 +343,8 @@ Each element of the list has the format (NODENAME (OPERATION . HANDLER) ...)
343where NODENAME is a regexp that matches a class of virtual Info node names. 343where NODENAME is a regexp that matches a class of virtual Info node names.
344It should be carefully chosen to not cause node name clashes with 344It should be carefully chosen to not cause node name clashes with
345existing node names. OPERATION is one of the following operation 345existing node names. OPERATION is one of the following operation
346symbols `find-node' that define what HANDLER 346symbols `find-node' that define what HANDLER function to call instead
347function to call instead of calling the default corresponding function 347of calling the default corresponding function to override it.")
348to override it.")
349 348
350(defvar Info-current-node-virtual nil 349(defvar Info-current-node-virtual nil
351 "Non-nil if the current Info node is virtual.") 350 "Non-nil if the current Info node is virtual.")
@@ -379,50 +378,50 @@ or `Info-virtual-nodes'."
379 ;; The MS-DOS list should work both when long file names are 378 ;; The MS-DOS list should work both when long file names are
380 ;; supported (Windows 9X), and when only 8+3 file names are available. 379 ;; supported (Windows 9X), and when only 8+3 file names are available.
381 (if (eq system-type 'ms-dos) 380 (if (eq system-type 'ms-dos)
382 '( (".gz" . "gunzip") 381 '( (".gz" . "gunzip")
383 (".z" . "gunzip") 382 (".z" . "gunzip")
384 (".bz2" . ("bzip2" "-dc")) 383 (".bz2" . ("bzip2" "-dc"))
385 (".inz" . "gunzip") 384 (".inz" . "gunzip")
386 (".igz" . "gunzip") 385 (".igz" . "gunzip")
387 (".info.Z" . "gunzip") 386 (".info.Z" . "gunzip")
388 (".info.gz" . "gunzip") 387 (".info.gz" . "gunzip")
389 ("-info.Z" . "gunzip") 388 ("-info.Z" . "gunzip")
390 ("-info.gz" . "gunzip") 389 ("-info.gz" . "gunzip")
391 ("/index.gz". "gunzip") 390 ("/index.gz" . "gunzip")
392 ("/index.z" . "gunzip") 391 ("/index.z" . "gunzip")
393 (".inf" . nil) 392 (".inf" . nil)
394 (".info" . nil) 393 (".info" . nil)
395 ("-info" . nil) 394 ("-info" . nil)
396 ("/index" . nil) 395 ("/index" . nil)
397 ("" . nil)) 396 ("" . nil))
398 '( (".info.Z". "uncompress") 397 '( (".info.Z" . "uncompress")
399 (".info.Y". "unyabba") 398 (".info.Y" . "unyabba")
400 (".info.gz". "gunzip") 399 (".info.gz" . "gunzip")
401 (".info.z". "gunzip") 400 (".info.z" . "gunzip")
402 (".info.bz2" . ("bzip2" "-dc")) 401 (".info.bz2" . ("bzip2" "-dc"))
403 (".info.xz". "unxz") 402 (".info.xz" . "unxz")
404 (".info". nil) 403 (".info" . nil)
405 ("-info.Z". "uncompress") 404 ("-info.Z" . "uncompress")
406 ("-info.Y". "unyabba") 405 ("-info.Y" . "unyabba")
407 ("-info.gz". "gunzip") 406 ("-info.gz" . "gunzip")
408 ("-info.bz2" . ("bzip2" "-dc")) 407 ("-info.bz2" . ("bzip2" "-dc"))
409 ("-info.z". "gunzip") 408 ("-info.z" . "gunzip")
410 ("-info.xz". "unxz") 409 ("-info.xz" . "unxz")
411 ("-info". nil) 410 ("-info" . nil)
412 ("/index.Z". "uncompress") 411 ("/index.Z" . "uncompress")
413 ("/index.Y". "unyabba") 412 ("/index.Y" . "unyabba")
414 ("/index.gz". "gunzip") 413 ("/index.gz" . "gunzip")
415 ("/index.z". "gunzip") 414 ("/index.z" . "gunzip")
416 ("/index.bz2". ("bzip2" "-dc")) 415 ("/index.bz2" . ("bzip2" "-dc"))
417 ("/index.xz". "unxz") 416 ("/index.xz" . "unxz")
418 ("/index". nil) 417 ("/index" . nil)
419 (".Z". "uncompress") 418 (".Z" . "uncompress")
420 (".Y". "unyabba") 419 (".Y" . "unyabba")
421 (".gz". "gunzip") 420 (".gz" . "gunzip")
422 (".z". "gunzip") 421 (".z" . "gunzip")
423 (".bz2" . ("bzip2" "-dc")) 422 (".bz2" . ("bzip2" "-dc"))
424 (".xz". "unxz") 423 (".xz" . "unxz")
425 ("". nil))) 424 ("" . nil)))
426 "List of file name suffixes and associated decoding commands. 425 "List of file name suffixes and associated decoding commands.
427Each entry should be (SUFFIX . STRING); the file is given to 426Each entry should be (SUFFIX . STRING); the file is given to
428the command as standard input. 427the command as standard input.
@@ -705,7 +704,7 @@ In standalone mode, \\<Info-mode-map>\\[Info-exit] exits Emacs itself."
705 (re-search-backward regexp beg t)))) 704 (re-search-backward regexp beg t))))
706 705
707(defun Info-find-file (filename &optional noerror) 706(defun Info-find-file (filename &optional noerror)
708 "Return expanded FILENAME, or t, if FILENAME is \"dir\". 707 "Return expanded FILENAME, or t if FILENAME is \"dir\".
709Optional second argument NOERROR, if t, means if file is not found 708Optional second argument NOERROR, if t, means if file is not found
710just return nil (no error)." 709just return nil (no error)."
711 ;; Convert filename to lower case if not found as specified. 710 ;; Convert filename to lower case if not found as specified.
@@ -835,7 +834,7 @@ is preserved, if possible."
835 (if new-history 834 (if new-history
836 (setq Info-history (cons new-history Info-history)))))) 835 (setq Info-history (cons new-history Info-history))))))
837 836
838(defun Info-revert-buffer-function (ignore-auto noconfirm) 837(defun Info-revert-buffer-function (_ignore-auto noconfirm)
839 (when (or noconfirm (y-or-n-p "Revert info buffer? ")) 838 (when (or noconfirm (y-or-n-p "Revert info buffer? "))
840 (Info-revert-find-node Info-current-file Info-current-node) 839 (Info-revert-find-node Info-current-file Info-current-node)
841 (message "Reverted %s" Info-current-file))) 840 (message "Reverted %s" Info-current-file)))
@@ -1394,10 +1393,11 @@ a case-insensitive match is tried."
1394;; \0\h[image param=value ...\h\0] 1393;; \0\h[image param=value ...\h\0]
1395;; into the Info file for handling images. 1394;; into the Info file for handling images.
1396(defun Info-split-parameter-string (parameter-string) 1395(defun Info-split-parameter-string (parameter-string)
1397 "Return alist of (\"KEY\" . \"VALUE\") from PARAMETER-STRING; a 1396 "Return alist of (\"KEY\" . \"VALUE\") from PARAMETER-STRING.
1398whitespace separated list of KEY=VALUE pairs. If VALUE contains 1397PARAMETER-STRING is a whitespace separated list of KEY=VALUE pairs.
1399whitespace or double quotes, it must be quoted in double quotes and 1398If VALUE contains whitespace or double quotes, it must be quoted
1400any double quotes or backslashes must be escaped (\\\",\\\\)." 1399in double quotes and any double quotes or backslashes must be
1400escaped (\\\",\\\\)."
1401 (let ((start 0) 1401 (let ((start 0)
1402 (parameter-alist)) 1402 (parameter-alist))
1403 (while (string-match 1403 (while (string-match
@@ -1572,8 +1572,7 @@ If FORK is a string, it is the name to use for the new buffer."
1572(defvar Info-read-node-completion-table) 1572(defvar Info-read-node-completion-table)
1573 1573
1574(defun Info-read-node-name-2 (dirs suffixes string pred action) 1574(defun Info-read-node-name-2 (dirs suffixes string pred action)
1575 "Virtual completion table for file names input in Info node names. 1575 "Virtual completion table for file names input in Info node names."
1576PATH-AND-SUFFIXES is a pair of lists, (DIRECTORIES . SUFFIXES)."
1577 (setq suffixes (remove "" suffixes)) 1576 (setq suffixes (remove "" suffixes))
1578 (when (file-name-absolute-p string) 1577 (when (file-name-absolute-p string)
1579 (setq dirs (list (file-name-directory string)))) 1578 (setq dirs (list (file-name-directory string))))
@@ -1694,7 +1693,7 @@ PATH-AND-SUFFIXES is a pair of lists, (DIRECTORIES . SUFFIXES)."
1694(defvar Info-search-case-fold nil 1693(defvar Info-search-case-fold nil
1695 "The value of `case-fold-search' from previous `Info-search' command.") 1694 "The value of `case-fold-search' from previous `Info-search' command.")
1696 1695
1697(defun Info-search (regexp &optional bound noerror count direction) 1696(defun Info-search (regexp &optional bound _noerror _count direction)
1698 "Search for REGEXP, starting from point, and select node it's found in. 1697 "Search for REGEXP, starting from point, and select node it's found in.
1699If DIRECTION is `backward', search in the reverse direction." 1698If DIRECTION is `backward', search in the reverse direction."
1700 (interactive (list (read-string 1699 (interactive (list (read-string
@@ -1915,7 +1914,7 @@ If DIRECTION is `backward', search in the reverse direction."
1915 `(lambda (cmd) 1914 `(lambda (cmd)
1916 (Info-isearch-pop-state cmd ',Info-current-file ',Info-current-node))) 1915 (Info-isearch-pop-state cmd ',Info-current-file ',Info-current-node)))
1917 1916
1918(defun Info-isearch-pop-state (cmd file node) 1917(defun Info-isearch-pop-state (_cmd file node)
1919 (or (and (equal Info-current-file file) 1918 (or (and (equal Info-current-file file)
1920 (equal Info-current-node node)) 1919 (equal Info-current-node node))
1921 (progn (Info-find-node file node) (sit-for 0)))) 1920 (progn (Info-find-node file node) (sit-for 0))))
@@ -2093,16 +2092,16 @@ If SAME-FILE is non-nil, do not move to a different Info file."
2093 )) 2092 ))
2094 2093
2095(defun Info-directory-toc-nodes (filename) 2094(defun Info-directory-toc-nodes (filename)
2096 "Directory-specific implementation of Info-directory-toc-nodes." 2095 "Directory-specific implementation of `Info-directory-toc-nodes'."
2097 `(,filename 2096 `(,filename
2098 ("Top" nil nil nil))) 2097 ("Top" nil nil nil)))
2099 2098
2100(defun Info-directory-find-file (filename &optional noerror) 2099(defun Info-directory-find-file (filename &optional _noerror)
2101 "Directory-specific implementation of Info-find-file." 2100 "Directory-specific implementation of `Info-find-file'."
2102 filename) 2101 filename)
2103 2102
2104(defun Info-directory-find-node (filename nodename &optional no-going-back) 2103(defun Info-directory-find-node (_filename _nodename &optional _no-going-back)
2105 "Directory-specific implementation of Info-find-node-2." 2104 "Directory-specific implementation of `Info-find-node-2'."
2106 (Info-insert-dir)) 2105 (Info-insert-dir))
2107 2106
2108;;;###autoload 2107;;;###autoload
@@ -2119,16 +2118,16 @@ If SAME-FILE is non-nil, do not move to a different Info file."
2119 )) 2118 ))
2120 2119
2121(defun Info-history-toc-nodes (filename) 2120(defun Info-history-toc-nodes (filename)
2122 "History-specific implementation of Info-history-toc-nodes." 2121 "History-specific implementation of `Info-history-toc-nodes'."
2123 `(,filename 2122 `(,filename
2124 ("Top" nil nil nil))) 2123 ("Top" nil nil nil)))
2125 2124
2126(defun Info-history-find-file (filename &optional noerror) 2125(defun Info-history-find-file (filename &optional _noerror)
2127 "History-specific implementation of Info-find-file." 2126 "History-specific implementation of `Info-find-file'."
2128 filename) 2127 filename)
2129 2128
2130(defun Info-history-find-node (filename nodename &optional no-going-back) 2129(defun Info-history-find-node (filename nodename &optional _no-going-back)
2131 "History-specific implementation of Info-find-node-2." 2130 "History-specific implementation of `Info-find-node-2'."
2132 (insert (format "\n\^_\nFile: %s, Node: %s, Up: (dir)\n\n" 2131 (insert (format "\n\^_\nFile: %s, Node: %s, Up: (dir)\n\n"
2133 (or filename Info-current-file) nodename)) 2132 (or filename Info-current-file) nodename))
2134 (insert "Recently Visited Nodes\n") 2133 (insert "Recently Visited Nodes\n")
@@ -2157,8 +2156,8 @@ If SAME-FILE is non-nil, do not move to a different Info file."
2157 (find-node . Info-toc-find-node) 2156 (find-node . Info-toc-find-node)
2158 )) 2157 ))
2159 2158
2160(defun Info-toc-find-node (filename nodename &optional no-going-back) 2159(defun Info-toc-find-node (filename nodename &optional _no-going-back)
2161 "Toc-specific implementation of Info-find-node-2." 2160 "Toc-specific implementation of `Info-find-node-2'."
2162 (let* ((curr-file (substring-no-properties (or filename Info-current-file))) 2161 (let* ((curr-file (substring-no-properties (or filename Info-current-file)))
2163 (curr-node (substring-no-properties (or nodename Info-current-node))) 2162 (curr-node (substring-no-properties (or nodename Info-current-node)))
2164 (node-list (Info-toc-nodes curr-file))) 2163 (node-list (Info-toc-nodes curr-file)))
@@ -3138,8 +3137,8 @@ FILENAME is the file name of the manual,
3138TOPIC is the search string given as an argument to `Info-virtual-index', 3137TOPIC is the search string given as an argument to `Info-virtual-index',
3139MATCHES is a list of index matches found by `Info-index'.") 3138MATCHES is a list of index matches found by `Info-index'.")
3140 3139
3141(defun Info-virtual-index-find-node (filename nodename &optional no-going-back) 3140(defun Info-virtual-index-find-node (filename nodename &optional _no-going-back)
3142 "Index-specific implementation of Info-find-node-2." 3141 "Index-specific implementation of `Info-find-node-2'."
3143 ;; Generate Index-like menu of matches 3142 ;; Generate Index-like menu of matches
3144 (if (string-match "^\\*Index for `\\(.+\\)'\\*$" nodename) 3143 (if (string-match "^\\*Index for `\\(.+\\)'\\*$" nodename)
3145 ;; Generate Index-like menu of matches 3144 ;; Generate Index-like menu of matches
@@ -3201,8 +3200,7 @@ search results."
3201 (Info-find-node Info-current-file "*Index*") 3200 (Info-find-node Info-current-file "*Index*")
3202 (unless (assoc (cons Info-current-file topic) Info-virtual-index-nodes) 3201 (unless (assoc (cons Info-current-file topic) Info-virtual-index-nodes)
3203 (let ((orignode Info-current-node) 3202 (let ((orignode Info-current-node)
3204 (ohist-list Info-history-list) 3203 (ohist-list Info-history-list))
3205 nodename)
3206 ;; Reuse `Info-index' to set `Info-index-alternatives'. 3204 ;; Reuse `Info-index' to set `Info-index-alternatives'.
3207 (Info-index topic) 3205 (Info-index topic)
3208 (push (cons (cons Info-current-file topic) Info-index-alternatives) 3206 (push (cons (cons Info-current-file topic) Info-index-alternatives)
@@ -3232,18 +3230,18 @@ STRING is the search string given as an argument to `info-apropos',
3232MATCHES is a list of index matches found by `Info-apropos-matches'.") 3230MATCHES is a list of index matches found by `Info-apropos-matches'.")
3233 3231
3234(defun Info-apropos-toc-nodes (filename) 3232(defun Info-apropos-toc-nodes (filename)
3235 "Apropos-specific implementation of Info-apropos-toc-nodes." 3233 "Apropos-specific implementation of `Info-apropos-toc-nodes'."
3236 (let ((nodes (mapcar 'car (reverse Info-apropos-nodes)))) 3234 (let ((nodes (mapcar 'car (reverse Info-apropos-nodes))))
3237 `(,filename 3235 `(,filename
3238 ("Top" nil nil ,nodes) 3236 ("Top" nil nil ,nodes)
3239 ,@(mapcar (lambda (node) `(,node "Top" nil nil)) nodes)))) 3237 ,@(mapcar (lambda (node) `(,node "Top" nil nil)) nodes))))
3240 3238
3241(defun Info-apropos-find-file (filename &optional noerror) 3239(defun Info-apropos-find-file (filename &optional _noerror)
3242 "Apropos-specific implementation of Info-find-file." 3240 "Apropos-specific implementation of `Info-find-file'."
3243 filename) 3241 filename)
3244 3242
3245(defun Info-apropos-find-node (filename nodename &optional no-going-back) 3243(defun Info-apropos-find-node (_filename nodename &optional _no-going-back)
3246 "Apropos-specific implementation of Info-find-node-2." 3244 "Apropos-specific implementation of `Info-find-node-2'."
3247 (if (equal nodename "Top") 3245 (if (equal nodename "Top")
3248 ;; Generate Top menu 3246 ;; Generate Top menu
3249 (let ((nodes (reverse Info-apropos-nodes))) 3247 (let ((nodes (reverse Info-apropos-nodes)))
@@ -3362,8 +3360,8 @@ Build a menu of the possible matches."
3362(defvar Info-finder-file "*Finder*" 3360(defvar Info-finder-file "*Finder*"
3363 "Info file name of the virtual Info keyword finder manual.") 3361 "Info file name of the virtual Info keyword finder manual.")
3364 3362
3365(defun Info-finder-find-file (filename &optional noerror) 3363(defun Info-finder-find-file (filename &optional _noerror)
3366 "Finder-specific implementation of Info-find-file." 3364 "Finder-specific implementation of `Info-find-file'."
3367 filename) 3365 filename)
3368 3366
3369(defvar finder-known-keywords) 3367(defvar finder-known-keywords)
@@ -3373,8 +3371,8 @@ Build a menu of the possible matches."
3373(defvar finder-keywords-hash) 3371(defvar finder-keywords-hash)
3374(defvar package-alist) ; finder requires package 3372(defvar package-alist) ; finder requires package
3375 3373
3376(defun Info-finder-find-node (filename nodename &optional no-going-back) 3374(defun Info-finder-find-node (_filename nodename &optional _no-going-back)
3377 "Finder-specific implementation of Info-find-node-2." 3375 "Finder-specific implementation of `Info-find-node-2'."
3378 (require 'finder) 3376 (require 'finder)
3379 (cond 3377 (cond
3380 ((equal nodename "Top") 3378 ((equal nodename "Top")
@@ -3468,7 +3466,7 @@ Build a menu of the possible matches."
3468 "Display descriptions of the keywords in the Finder virtual manual. 3466 "Display descriptions of the keywords in the Finder virtual manual.
3469In interactive use, a prefix argument directs this command to read 3467In interactive use, a prefix argument directs this command to read
3470a list of keywords separated by comma. After that, it displays a node 3468a list of keywords separated by comma. After that, it displays a node
3471with a list packages that contain all specified keywords." 3469with a list of packages that contain all specified keywords."
3472 (interactive 3470 (interactive
3473 (when current-prefix-arg 3471 (when current-prefix-arg
3474 (require 'finder) 3472 (require 'finder)
@@ -3520,14 +3518,14 @@ with a list packages that contain all specified keywords."
3520 3518
3521(defun Info-get-token (pos start all &optional errorstring) 3519(defun Info-get-token (pos start all &optional errorstring)
3522 "Return the token around POS. 3520 "Return the token around POS.
3523POS must be somewhere inside the token 3521POS must be somewhere inside the token.
3524START is a regular expression which will match the 3522START is a regular expression which will match the
3525 beginning of the tokens delimited string 3523 beginning of the tokens delimited string.
3526ALL is a regular expression with a single 3524ALL is a regular expression with a single
3527 parenthesized subpattern which is the token to be 3525 parenthesized subpattern which is the token to be
3528 returned. E.g. '{\(.*\)}' would return any string 3526 returned. E.g. '{\(.*\)}' would return any string
3529 enclosed in braces around POS. 3527 enclosed in braces around POS.
3530ERRORSTRING optional fourth argument, controls action on no match 3528ERRORSTRING optional fourth argument, controls action on no match:
3531 nil: return nil 3529 nil: return nil
3532 t: beep 3530 t: beep
3533 a string: signal an error, using that string." 3531 a string: signal an error, using that string."
@@ -4089,7 +4087,7 @@ The `info-file' property of COMMAND says which Info manual to search.
4089If COMMAND has no property, the variable `Info-file-list-for-emacs' 4087If COMMAND has no property, the variable `Info-file-list-for-emacs'
4090defines heuristics for which Info manual to try. 4088defines heuristics for which Info manual to try.
4091The locations are of the format used in `Info-history', i.e. 4089The locations are of the format used in `Info-history', i.e.
4092\(FILENAME NODENAME BUFFERPOS\), where BUFFERPOS is the line number 4090\(FILENAME NODENAME BUFFERPOS), where BUFFERPOS is the line number
4093in the first element of the returned list (which is treated specially in 4091in the first element of the returned list (which is treated specially in
4094`Info-goto-emacs-command-node'), and 0 for the rest elements of a list." 4092`Info-goto-emacs-command-node'), and 0 for the rest elements of a list."
4095 (let ((where '()) line-number 4093 (let ((where '()) line-number
@@ -4674,7 +4672,7 @@ the variable `Info-file-list-for-emacs'."
4674(eval-when-compile (require 'speedbar)) 4672(eval-when-compile (require 'speedbar))
4675 4673
4676(defvar Info-speedbar-key-map nil 4674(defvar Info-speedbar-key-map nil
4677 "Keymap used when in the info display mode.") 4675 "Keymap used when in the Info display mode.")
4678 4676
4679(defun Info-install-speedbar-variables () 4677(defun Info-install-speedbar-variables ()
4680 "Install those variables used by speedbar to enhance Info." 4678 "Install those variables used by speedbar to enhance Info."
@@ -4722,7 +4720,7 @@ This will add a speedbar major display mode."
4722 (speedbar-change-initial-expansion-list "Info") 4720 (speedbar-change-initial-expansion-list "Info")
4723 ) 4721 )
4724 4722
4725(defun Info-speedbar-hierarchy-buttons (directory depth &optional node) 4723(defun Info-speedbar-hierarchy-buttons (_directory depth &optional node)
4726 "Display an Info directory hierarchy in speedbar. 4724 "Display an Info directory hierarchy in speedbar.
4727DIRECTORY is the current directory in the attached frame. 4725DIRECTORY is the current directory in the attached frame.
4728DEPTH is the current indentation depth. 4726DEPTH is the current indentation depth.
@@ -4756,7 +4754,7 @@ specific node to expand."
4756 t) 4754 t)
4757 nil)))) 4755 nil))))
4758 4756
4759(defun Info-speedbar-goto-node (text node indent) 4757(defun Info-speedbar-goto-node (_text node _indent)
4760 "When user clicks on TEXT, go to an info NODE. 4758 "When user clicks on TEXT, go to an info NODE.
4761The INDENT level is ignored." 4759The INDENT level is ignored."
4762 (speedbar-select-attached-frame) 4760 (speedbar-select-attached-frame)
@@ -4835,7 +4833,7 @@ NODESPEC is a string of the form: (file)node."
4835 4833
4836;;; Info mode node listing 4834;;; Info mode node listing
4837;; This is called by `speedbar-add-localized-speedbar-support' 4835;; This is called by `speedbar-add-localized-speedbar-support'
4838(defun Info-speedbar-buttons (buffer) 4836(defun Info-speedbar-buttons (_buffer)
4839 "Create a speedbar display to help navigation in an Info file. 4837 "Create a speedbar display to help navigation in an Info file.
4840BUFFER is the buffer speedbar is requesting buttons for." 4838BUFFER is the buffer speedbar is requesting buttons for."
4841 (if (save-excursion (goto-char (point-min)) 4839 (if (save-excursion (goto-char (point-min))
@@ -4866,7 +4864,7 @@ BUFFER is the buffer speedbar is requesting buttons for."
4866 4864
4867;;;; Desktop support 4865;;;; Desktop support
4868 4866
4869(defun Info-desktop-buffer-misc-data (desktop-dirname) 4867(defun Info-desktop-buffer-misc-data (_desktop-dirname)
4870 "Auxiliary information to be saved in desktop file." 4868 "Auxiliary information to be saved in desktop file."
4871 (list Info-current-file 4869 (list Info-current-file
4872 Info-current-node 4870 Info-current-node
@@ -4878,7 +4876,7 @@ BUFFER is the buffer speedbar is requesting buttons for."
4878 'slow Info-current-file Info-current-node) 4876 'slow Info-current-file Info-current-node)
4879 (cons 'slow t)))))) 4877 (cons 'slow t))))))
4880 4878
4881(defun Info-restore-desktop-buffer (desktop-buffer-file-name 4879(defun Info-restore-desktop-buffer (_desktop-buffer-file-name
4882 desktop-buffer-name 4880 desktop-buffer-name
4883 desktop-buffer-misc) 4881 desktop-buffer-misc)
4884 "Restore an Info buffer specified in a desktop file." 4882 "Restore an Info buffer specified in a desktop file."