# HG changeset patch # User Juri Linkov # Date 1110958363 0 # Node ID 20a8e6e5ae57ad74b8b0245e74e494cd0759e5a9 # Parent a52e0f06e7b94e392baeb70d032796845f671be0 Update error messages for `debug-ignored-errors'. (Info-isearch-search): Doc fix. (Info-find-node): Move up code to go into info buffer before recording the node to the history. (Info-fontify-node): Fontify titles only if the next line has two or more `*', `=', `-', `.'. Display "go to this node" for empty (match-string 3). diff -r a52e0f06e7b9 -r 20a8e6e5ae57 lisp/info.el --- a/lisp/info.el Wed Mar 16 03:30:34 2005 +0000 +++ b/lisp/info.el Wed Mar 16 07:32:43 2005 +0000 @@ -202,10 +202,17 @@ :group 'info) (defcustom Info-isearch-search t - "*If non-nil, isearch invoked in Info mode uses `Info-search' function. -This allows isearch to search through multiple nodes. -When isearch fails, it wraps and restarts the search from the -top/final node depending on search direction." + "*If non-nil, isearch in Info searches through multiple nodes. +Before leaving the initial Info node, where isearch was started, +it fails once with the error message [initial node], and with +subsequent C-s/C-r continues through other nodes without failing +with this error message in other nodes. When isearch fails for +the rest of the manual, it wraps aroung the whole manual and +restarts the search from the top/final node depending on +search direction. + +Setting this option to nil restores the default isearch behavior +with wrapping around the current Info node." :version "22.1" :type 'boolean :group 'info) @@ -625,13 +632,13 @@ it says do not attempt further (recursive) error recovery." (info-initialize) (setq filename (Info-find-file filename)) + ;; Go into info buffer. + (or (eq major-mode 'Info-mode) (pop-to-buffer "*info*")) ;; Record the node we are leaving. (if (and Info-current-file (not no-going-back)) (setq Info-history (cons (list Info-current-file Info-current-node (point)) Info-history))) - ;; Go into info buffer. - (or (eq major-mode 'Info-mode) (pop-to-buffer "*info*")) (Info-find-node-2 filename nodename no-going-back)) (defun Info-on-current-buffer (&optional nodename) @@ -3616,7 +3623,7 @@ ;; Fontify titles (goto-char (point-min)) (when not-fontified-p - (while (re-search-forward "\n\\([^ \t\n].+\\)\n\\(\\*+\\|=+\\|-+\\|\\.+\\)$" + (while (re-search-forward "\n\\([^ \t\n].+\\)\n\\(\\*\\*+\\|==+\\|--+\\|\\.\\.+\\)$" nil t) (let* ((c (preceding-char)) (face @@ -3793,7 +3800,8 @@ (add-text-properties (match-beginning 1) (match-end 1) (list - 'help-echo (if (match-end 3) + 'help-echo (if (and (match-end 3) + (not (equal (match-string 3) ""))) (concat "mouse-2: go to " (match-string 3)) "mouse-2: go to this node") 'mouse-face 'highlight))) @@ -4071,12 +4079,24 @@ (Info-speedbar-hierarchy-buttons nil 0) ) -(dolist (mess '("^Node has no Previous$" +(dolist (mess '("^First node in file$" + "^No `.*' in index$" + "^No cross-reference named" + "^No cross.references in this node$" + "^No current info node$" "^No menu in this node$" - "^Node has no Next$" - "^No cross-references in this node^" - search-failed - "^No \".*\" in index$")) + "^No more items in menu$" + "^No more nodes$" + "^No pointer \\(?:forward\\|backward\\) from this node$" + "^No previous `i' command$" + "^No previous items in menu$" + "^No previous nodes$" + "^No such item in menu$" + "^No such node or anchor" + "^Node has no" + "^Point neither on reference nor in menu item description$" + "^This is the \\(?:first\\|last\\) Info node you looked at$" + search-failed)) (add-to-list 'debug-ignored-errors mess)) ;;;; Desktop support