diff options
| author | Richard M. Stallman | 1998-04-18 01:57:45 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1998-04-18 01:57:45 +0000 |
| commit | b37daea4a76b20cdda3ebb49f141fb58ac48e480 (patch) | |
| tree | 34a96f5dc2b4ec592d433a330f407f9cf984ce3d | |
| parent | b4b87b68dddfb8cb54804765bb5c1e577e14ad8e (diff) | |
| download | emacs-b37daea4a76b20cdda3ebb49f141fb58ac48e480.tar.gz emacs-b37daea4a76b20cdda3ebb49f141fb58ac48e480.zip | |
(Info-menu): Allow extra spaces at start of menu item.
(Info-extract-menu-item): Likewise.
(Info-insert-dir, Info-complete-menu-item, Info-index): Likewise.
(Info-try-follow-nearest-node, Info-find-emacs-command-nodes): Likewise
(Info-fontify-node, Info-speedbar-buttons): Likewise.
| -rw-r--r-- | lisp/info.el | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/lisp/info.el b/lisp/info.el index a7c395ef2b8..c1fb110a2bc 100644 --- a/lisp/info.el +++ b/lisp/info.el | |||
| @@ -584,7 +584,7 @@ In standalone mode, \\<Info-mode-map>\\[Info-exit] exits Emacs itself." | |||
| 584 | (let ((nodename (car (car nodes)))) | 584 | (let ((nodename (car (car nodes)))) |
| 585 | (save-excursion | 585 | (save-excursion |
| 586 | (or (member (downcase nodename) menu-items) | 586 | (or (member (downcase nodename) menu-items) |
| 587 | (re-search-forward (concat "^\\* " | 587 | (re-search-forward (concat "^\\* +" |
| 588 | (regexp-quote nodename) | 588 | (regexp-quote nodename) |
| 589 | "::") | 589 | "::") |
| 590 | end t) | 590 | end t) |
| @@ -1042,7 +1042,7 @@ NAME may be an abbreviation of the reference name." | |||
| 1042 | (let ((case-fold-search t)) | 1042 | (let ((case-fold-search t)) |
| 1043 | (cond ((eq action nil) | 1043 | (cond ((eq action nil) |
| 1044 | (let (completions | 1044 | (let (completions |
| 1045 | (pattern (concat "\n\\* \\(" | 1045 | (pattern (concat "\n\\* +\\(" |
| 1046 | (regexp-quote string) | 1046 | (regexp-quote string) |
| 1047 | "[^:\t\n]*\\):"))) | 1047 | "[^:\t\n]*\\):"))) |
| 1048 | (save-excursion | 1048 | (save-excursion |
| @@ -1059,7 +1059,7 @@ NAME may be an abbreviation of the reference name." | |||
| 1059 | (try-completion string completions predicate))) | 1059 | (try-completion string completions predicate))) |
| 1060 | ((eq action t) | 1060 | ((eq action t) |
| 1061 | (let (completions | 1061 | (let (completions |
| 1062 | (pattern (concat "\n\\* \\(" | 1062 | (pattern (concat "\n\\* +\\(" |
| 1063 | (regexp-quote string) | 1063 | (regexp-quote string) |
| 1064 | "[^:\t\n]*\\):"))) | 1064 | "[^:\t\n]*\\):"))) |
| 1065 | (save-excursion | 1065 | (save-excursion |
| @@ -1079,7 +1079,7 @@ NAME may be an abbreviation of the reference name." | |||
| 1079 | (set-buffer Info-complete-menu-buffer) | 1079 | (set-buffer Info-complete-menu-buffer) |
| 1080 | (goto-char (point-min)) | 1080 | (goto-char (point-min)) |
| 1081 | (search-forward "\n* Menu:") | 1081 | (search-forward "\n* Menu:") |
| 1082 | (re-search-forward (concat "\n\\* " | 1082 | (re-search-forward (concat "\n\\* +" |
| 1083 | (regexp-quote string) | 1083 | (regexp-quote string) |
| 1084 | ":") | 1084 | ":") |
| 1085 | nil t)))))) | 1085 | nil t)))))) |
| @@ -1104,7 +1104,7 @@ Completion is allowed, and the menu item point is on is the default." | |||
| 1104 | (save-excursion | 1104 | (save-excursion |
| 1105 | (goto-char p) | 1105 | (goto-char p) |
| 1106 | (end-of-line) | 1106 | (end-of-line) |
| 1107 | (re-search-backward "\n\\* \\([^:\t\n]*\\):" beg t) | 1107 | (re-search-backward "\n\\* +\\([^:\t\n]*\\):" beg t) |
| 1108 | (setq default (format "%s" (buffer-substring | 1108 | (setq default (format "%s" (buffer-substring |
| 1109 | (match-beginning 1) | 1109 | (match-beginning 1) |
| 1110 | (match-end 1))))))) | 1110 | (match-end 1))))))) |
| @@ -1136,8 +1136,8 @@ Completion is allowed, and the menu item point is on is the default." | |||
| 1136 | (goto-char (point-min)) | 1136 | (goto-char (point-min)) |
| 1137 | (or (search-forward "\n* menu:" nil t) | 1137 | (or (search-forward "\n* menu:" nil t) |
| 1138 | (error "No menu in this node")) | 1138 | (error "No menu in this node")) |
| 1139 | (or (re-search-forward (concat "\n\\* " menu-item ":") nil t) | 1139 | (or (re-search-forward (concat "\n\\* +" menu-item ":") nil t) |
| 1140 | (re-search-forward (concat "\n\\* " menu-item) nil t) | 1140 | (re-search-forward (concat "\n\\* +" menu-item) nil t) |
| 1141 | (error "No such item in menu")) | 1141 | (error "No such item in menu")) |
| 1142 | (beginning-of-line) | 1142 | (beginning-of-line) |
| 1143 | (forward-char 2) | 1143 | (forward-char 2) |
| @@ -1409,7 +1409,7 @@ Give a blank topic name to go to the Index node itself." | |||
| 1409 | (interactive "sIndex topic: ") | 1409 | (interactive "sIndex topic: ") |
| 1410 | (let ((orignode Info-current-node) | 1410 | (let ((orignode Info-current-node) |
| 1411 | (rnode nil) | 1411 | (rnode nil) |
| 1412 | (pattern (format "\n\\* \\([^\n:]*%s[^\n:]*\\):[ \t]*\\([^.\n]*\\)\\.[ \t]*\\([0-9]*\\)" | 1412 | (pattern (format "\n\\* +\\([^\n:]*%s[^\n:]*\\):[ \t]*\\([^.\n]*\\)\\.[ \t]*\\([0-9]*\\)" |
| 1413 | (regexp-quote topic))) | 1413 | (regexp-quote topic))) |
| 1414 | node) | 1414 | node) |
| 1415 | (Info-goto-node "Top") | 1415 | (Info-goto-node "Top") |
| @@ -1602,9 +1602,9 @@ If no reference to follow, moves to the next node, or up if none." | |||
| 1602 | ((setq node (Info-get-token (point) "\\*note[ \n]" | 1602 | ((setq node (Info-get-token (point) "\\*note[ \n]" |
| 1603 | "\\*note[ \n]\\([^:]*\\):")) | 1603 | "\\*note[ \n]\\([^:]*\\):")) |
| 1604 | (Info-follow-reference node)) | 1604 | (Info-follow-reference node)) |
| 1605 | ((setq node (Info-get-token (point) "\\* " "\\* \\([^:]*\\)::")) | 1605 | ((setq node (Info-get-token (point) "\\* +" "\\* +\\([^:]*\\)::")) |
| 1606 | (Info-goto-node node)) | 1606 | (Info-goto-node node)) |
| 1607 | ((setq node (Info-get-token (point) "\\* " "\\* \\([^:]*\\):")) | 1607 | ((setq node (Info-get-token (point) "\\* +" "\\* +\\([^:]*\\):")) |
| 1608 | (Info-menu node)) | 1608 | (Info-menu node)) |
| 1609 | ((setq node (Info-get-token (point) "Up: " "Up: \\([^,\n\t]*\\)")) | 1609 | ((setq node (Info-get-token (point) "Up: " "Up: \\([^,\n\t]*\\)")) |
| 1610 | (Info-goto-node node)) | 1610 | (Info-goto-node node)) |
| @@ -1894,7 +1894,7 @@ defines heuristics for which Info manual to try. | |||
| 1894 | The locations are of the format used in Info-history, i.e. | 1894 | The locations are of the format used in Info-history, i.e. |
| 1895 | \(FILENAME NODENAME BUFFERPOS\)." | 1895 | \(FILENAME NODENAME BUFFERPOS\)." |
| 1896 | (let ((where '()) | 1896 | (let ((where '()) |
| 1897 | (cmd-desc (concat "^\\* " (regexp-quote (symbol-name command)) | 1897 | (cmd-desc (concat "^\\* +" (regexp-quote (symbol-name command)) |
| 1898 | ":\\s *\\(.*\\)\\.$")) | 1898 | ":\\s *\\(.*\\)\\.$")) |
| 1899 | (info-file "emacs")) ;default | 1899 | (info-file "emacs")) ;default |
| 1900 | ;; Determine which info file this command is documented in. | 1900 | ;; Determine which info file this command is documented in. |
| @@ -2033,7 +2033,7 @@ The alist key is the character the title is underlined with (?*, ?= or ?-)." | |||
| 2033 | ;; Don't take time to annotate huge menus | 2033 | ;; Don't take time to annotate huge menus |
| 2034 | (< (- (point-max) (point)) Info-fontify-maximum-menu-size)) | 2034 | (< (- (point-max) (point)) Info-fontify-maximum-menu-size)) |
| 2035 | (let ((n 0)) | 2035 | (let ((n 0)) |
| 2036 | (while (re-search-forward "^\\* \\([^:\t\n]*\\):" nil t) | 2036 | (while (re-search-forward "^\\* +\\([^:\t\n]*\\):" nil t) |
| 2037 | (setq n (1+ n)) | 2037 | (setq n (1+ n)) |
| 2038 | (if (memq n '(5 9)) ; visual aids to help with 1-9 keys | 2038 | (if (memq n '(5 9)) ; visual aids to help with 1-9 keys |
| 2039 | (put-text-property (match-beginning 0) | 2039 | (put-text-property (match-beginning 0) |
| @@ -2104,8 +2104,8 @@ BUFFER is the buffer speedbar is requesting buttons for." | |||
| 2104 | (cons Info-current-node Info-current-file)) | 2104 | (cons Info-current-node Info-current-file)) |
| 2105 | (goto-char (point-min)) | 2105 | (goto-char (point-min)) |
| 2106 | ;; Always skip the first one... | 2106 | ;; Always skip the first one... |
| 2107 | (re-search-forward "\n\\* \\([^:\t\n]*\\):" nil t) | 2107 | (re-search-forward "\n\\* +\\([^:\t\n]*\\):" nil t) |
| 2108 | (while (re-search-forward "\n\\* \\([^:\t\n]*\\):" nil t) | 2108 | (while (re-search-forward "\n\\* +\\([^:\t\n]*\\):" nil t) |
| 2109 | (setq completions (cons (buffer-substring (match-beginning 1) | 2109 | (setq completions (cons (buffer-substring (match-beginning 1) |
| 2110 | (match-end 1)) | 2110 | (match-end 1)) |
| 2111 | completions)))) | 2111 | completions)))) |