[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] Changes to emacs/lisp/info.el
From: |
Juri Linkov |
Subject: |
[Emacs-diffs] Changes to emacs/lisp/info.el |
Date: |
Wed, 16 Mar 2005 02:32:44 -0500 |
Index: emacs/lisp/info.el
diff -c emacs/lisp/info.el:1.420 emacs/lisp/info.el:1.421
*** emacs/lisp/info.el:1.420 Tue Mar 15 10:46:00 2005
--- emacs/lisp/info.el Wed Mar 16 07:32:43 2005
***************
*** 202,211 ****
: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."
:version "22.1"
:type 'boolean
:group 'info)
--- 202,218 ----
:group 'info)
(defcustom Info-isearch-search t
! "*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,637 ****
it says do not attempt further (recursive) error recovery."
(info-initialize)
(setq filename (Info-find-file filename))
;; 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)
--- 632,644 ----
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)))
(Info-find-node-2 filename nodename no-going-back))
(defun Info-on-current-buffer (&optional nodename)
***************
*** 3616,3622 ****
;; Fontify titles
(goto-char (point-min))
(when not-fontified-p
! (while (re-search-forward "\n\\([^
\t\n].+\\)\n\\(\\*+\\|=+\\|-+\\|\\.+\\)$"
nil t)
(let* ((c (preceding-char))
(face
--- 3623,3629 ----
;; Fontify titles
(goto-char (point-min))
(when not-fontified-p
! (while (re-search-forward "\n\\([^
\t\n].+\\)\n\\(\\*\\*+\\|==+\\|--+\\|\\.\\.+\\)$"
nil t)
(let* ((c (preceding-char))
(face
***************
*** 3793,3799 ****
(add-text-properties
(match-beginning 1) (match-end 1)
(list
! 'help-echo (if (match-end 3)
(concat "mouse-2: go to " (match-string 3))
"mouse-2: go to this node")
'mouse-face 'highlight)))
--- 3800,3807 ----
(add-text-properties
(match-beginning 1) (match-end 1)
(list
! '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,4082 ****
(Info-speedbar-hierarchy-buttons nil 0)
)
! (dolist (mess '("^Node has no Previous$"
"^No menu in this node$"
! "^Node has no Next$"
! "^No cross-references in this node^"
! search-failed
! "^No \".*\" in index$"))
(add-to-list 'debug-ignored-errors mess))
;;;; Desktop support
--- 4079,4102 ----
(Info-speedbar-hierarchy-buttons nil 0)
)
! (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$"
! "^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