aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJuri Linkov2005-03-16 07:32:43 +0000
committerJuri Linkov2005-03-16 07:32:43 +0000
commit6270bbe7e4cfcf3452470a394f2835ecdcf44771 (patch)
tree68c83e9ac25d4cb85a119db594492f25ff087afa
parent6a3fac90c528f1d426eebcb18a570f9faa84b701 (diff)
downloademacs-6270bbe7e4cfcf3452470a394f2835ecdcf44771.tar.gz
emacs-6270bbe7e4cfcf3452470a394f2835ecdcf44771.zip
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).
-rw-r--r--lisp/info.el46
1 files changed, 33 insertions, 13 deletions
diff --git a/lisp/info.el b/lisp/info.el
index b2920bd6ecb..870e1ad89f6 100644
--- a/lisp/info.el
+++ b/lisp/info.el
@@ -202,10 +202,17 @@ a tab, a carriage return (control-M), a newline, and `]+'."
202 :group 'info) 202 :group 'info)
203 203
204(defcustom Info-isearch-search t 204(defcustom Info-isearch-search t
205 "*If non-nil, isearch invoked in Info mode uses `Info-search' function. 205 "*If non-nil, isearch in Info searches through multiple nodes.
206This allows isearch to search through multiple nodes. 206Before leaving the initial Info node, where isearch was started,
207When isearch fails, it wraps and restarts the search from the 207it fails once with the error message [initial node], and with
208top/final node depending on search direction." 208subsequent C-s/C-r continues through other nodes without failing
209with this error message in other nodes. When isearch fails for
210the rest of the manual, it wraps aroung the whole manual and
211restarts the search from the top/final node depending on
212search direction.
213
214Setting this option to nil restores the default isearch behavior
215with wrapping around the current Info node."
209 :version "22.1" 216 :version "22.1"
210 :type 'boolean 217 :type 'boolean
211 :group 'info) 218 :group 'info)
@@ -625,13 +632,13 @@ NO-GOING-BACK is non-nil if recovering from an error in this function;
625it says do not attempt further (recursive) error recovery." 632it says do not attempt further (recursive) error recovery."
626 (info-initialize) 633 (info-initialize)
627 (setq filename (Info-find-file filename)) 634 (setq filename (Info-find-file filename))
635 ;; Go into info buffer.
636 (or (eq major-mode 'Info-mode) (pop-to-buffer "*info*"))
628 ;; Record the node we are leaving. 637 ;; Record the node we are leaving.
629 (if (and Info-current-file (not no-going-back)) 638 (if (and Info-current-file (not no-going-back))
630 (setq Info-history 639 (setq Info-history
631 (cons (list Info-current-file Info-current-node (point)) 640 (cons (list Info-current-file Info-current-node (point))
632 Info-history))) 641 Info-history)))
633 ;; Go into info buffer.
634 (or (eq major-mode 'Info-mode) (pop-to-buffer "*info*"))
635 (Info-find-node-2 filename nodename no-going-back)) 642 (Info-find-node-2 filename nodename no-going-back))
636 643
637(defun Info-on-current-buffer (&optional nodename) 644(defun Info-on-current-buffer (&optional nodename)
@@ -3616,7 +3623,7 @@ Preserve text properties."
3616 ;; Fontify titles 3623 ;; Fontify titles
3617 (goto-char (point-min)) 3624 (goto-char (point-min))
3618 (when not-fontified-p 3625 (when not-fontified-p
3619 (while (re-search-forward "\n\\([^ \t\n].+\\)\n\\(\\*+\\|=+\\|-+\\|\\.+\\)$" 3626 (while (re-search-forward "\n\\([^ \t\n].+\\)\n\\(\\*\\*+\\|==+\\|--+\\|\\.\\.+\\)$"
3620 nil t) 3627 nil t)
3621 (let* ((c (preceding-char)) 3628 (let* ((c (preceding-char))
3622 (face 3629 (face
@@ -3793,7 +3800,8 @@ Preserve text properties."
3793 (add-text-properties 3800 (add-text-properties
3794 (match-beginning 1) (match-end 1) 3801 (match-beginning 1) (match-end 1)
3795 (list 3802 (list
3796 'help-echo (if (match-end 3) 3803 'help-echo (if (and (match-end 3)
3804 (not (equal (match-string 3) "")))
3797 (concat "mouse-2: go to " (match-string 3)) 3805 (concat "mouse-2: go to " (match-string 3))
3798 "mouse-2: go to this node") 3806 "mouse-2: go to this node")
3799 'mouse-face 'highlight))) 3807 'mouse-face 'highlight)))
@@ -4071,12 +4079,24 @@ BUFFER is the buffer speedbar is requesting buttons for."
4071 (Info-speedbar-hierarchy-buttons nil 0) 4079 (Info-speedbar-hierarchy-buttons nil 0)
4072 ) 4080 )
4073 4081
4074(dolist (mess '("^Node has no Previous$" 4082(dolist (mess '("^First node in file$"
4083 "^No `.*' in index$"
4084 "^No cross-reference named"
4085 "^No cross.references in this node$"
4086 "^No current info node$"
4075 "^No menu in this node$" 4087 "^No menu in this node$"
4076 "^Node has no Next$" 4088 "^No more items in menu$"
4077 "^No cross-references in this node^" 4089 "^No more nodes$"
4078 search-failed 4090 "^No pointer \\(?:forward\\|backward\\) from this node$"
4079 "^No \".*\" in index$")) 4091 "^No previous `i' command$"
4092 "^No previous items in menu$"
4093 "^No previous nodes$"
4094 "^No such item in menu$"
4095 "^No such node or anchor"
4096 "^Node has no"
4097 "^Point neither on reference nor in menu item description$"
4098 "^This is the \\(?:first\\|last\\) Info node you looked at$"
4099 search-failed))
4080 (add-to-list 'debug-ignored-errors mess)) 4100 (add-to-list 'debug-ignored-errors mess))
4081 4101
4082;;;; Desktop support 4102;;;; Desktop support