[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] Changes to emacs/lisp/info.el
From: |
Kim F. Storm |
Subject: |
[Emacs-diffs] Changes to emacs/lisp/info.el |
Date: |
Thu, 31 Oct 2002 17:08:03 -0500 |
Index: emacs/lisp/info.el
diff -c emacs/lisp/info.el:1.318 emacs/lisp/info.el:1.319
*** emacs/lisp/info.el:1.318 Tue Oct 8 00:57:27 2002
--- emacs/lisp/info.el Thu Oct 31 17:08:03 2002
***************
*** 1316,1321 ****
--- 1316,1322 ----
(interactive
(let ((completion-ignore-case t)
(case-fold-search t)
+ (inhibit-point-motion-hooks t)
completions default alt-default (start-point (point)) str i bol eol)
(save-excursion
;; Store end and beginning of line.
***************
*** 1380,1385 ****
--- 1381,1387 ----
(error "No reference was specified"))
(let (target beg i (str (concat "\\*note " (regexp-quote footnotename)))
+ (inhibit-point-motion-hooks t)
(case-fold-search t))
(while (setq i (string-match " " str i))
(setq str (concat (substring str 0 i) "[ \t\n]+" (substring str (1+
i))))
***************
*** 1807,1812 ****
--- 1809,1815 ----
"Move cursor to the next cross-reference or menu item in the node."
(interactive)
(let ((pat "\\*note[ \n\t]*\\([^:]*\\):\\|^\\* .*:")
+ (inhibit-point-motion-hooks t)
(old-pt (point))
(case-fold-search t))
(or (eobp) (forward-char 1))
***************
*** 1827,1832 ****
--- 1830,1836 ----
"Move cursor to the previous cross-reference or menu item in the node."
(interactive)
(let ((pat "\\*note[ \n\t]*\\([^:]*\\):\\|^\\* .*:")
+ (inhibit-point-motion-hooks t)
(old-pt (point))
(case-fold-search t))
(or (re-search-backward pat nil t)
***************
*** 2055,2061 ****
;; Common subroutine.
(defun Info-try-follow-nearest-node ()
"Follow a node reference near point. Return non-nil if successful."
! (let (node)
(cond
((setq node (Info-get-token (point) "\\*note[ \n]"
"\\*note[ \n]\\([^:]*\\):"))
--- 2059,2066 ----
;; Common subroutine.
(defun Info-try-follow-nearest-node ()
"Follow a node reference near point. Return non-nil if successful."
! (let (node
! (inhibit-point-motion-hooks t))
(cond
((setq node (Info-get-token (point) "\\*note[ \n]"
"\\*note[ \n]\\([^:]*\\):"))
***************
*** 2712,2731 ****
(add-text-properties (match-beginning 2) (1+ (match-end 2))
'(invisible t intangible t))))
(goto-char (point-min))
! (while (re-search-forward "\\*Note[ \n\t]+\\([^:]*\\):" nil t)
! (if (= (char-after (1- (match-beginning 0))) ?\") ; hack
! nil
! (add-text-properties (match-beginning 1) (match-end 1)
! '(font-lock-face info-xref
! mouse-face highlight
! help-echo "mouse-2: go to this node"))))
(goto-char (point-min))
(if (and (search-forward "\n* Menu:" nil t)
(not (string-match "\\<Index\\>" Info-current-node))
;; Don't take time to annotate huge menus
(< (- (point-max) (point)) Info-fontify-maximum-menu-size))
(let ((n 0))
! (while (re-search-forward "^\\* +\\([^:\t\n]*\\):" nil t)
(setq n (1+ n))
(if (zerop (% n 3)) ; visual aids to help with 1-9 keys
(put-text-property (match-beginning 0)
--- 2717,2759 ----
(add-text-properties (match-beginning 2) (1+ (match-end 2))
'(invisible t intangible t))))
(goto-char (point-min))
! (while (re-search-forward "\\(\\*Note[
\n\t]+\\)\\([^:]*\\)\\(:[^.,:]*[,:]?\\)" nil t)
! (unless (= (char-after (1- (match-beginning 0))) ?\") ; hack
! (let ((next (point))
! (hide-tag font-lock-mode)
! other-tag)
! (when hide-tag
! ;; *Note is often used where *note should have been
! (goto-char (match-beginning 0))
! (skip-syntax-backward " ")
! (setq other-tag
! (cond
! ((or (<= (point) (point-min))
! (memq (char-after (1- (point))) '( ?\. ?! )))
! "See ")
! ((memq (char-after (1- (point))) '( ?\( ?\[ ?\{ ?\, ?\;
?\: ))
! "see ")
! (t nil)))
! (goto-char next))
! (if hide-tag
! (add-text-properties (match-beginning 1) (match-end 1)
! (if other-tag
! (list 'display other-tag 'intangible
t)
! '(invisible t intangible t))))
! (add-text-properties (match-beginning 2) (match-end 2)
! '(font-lock-face info-xref
! mouse-face highlight
! help-echo "mouse-2: go to
this node"))
! (add-text-properties (match-beginning 3) (match-end 3)
! '(invisible t intangible t)))))
!
(goto-char (point-min))
(if (and (search-forward "\n* Menu:" nil t)
(not (string-match "\\<Index\\>" Info-current-node))
;; Don't take time to annotate huge menus
(< (- (point-max) (point)) Info-fontify-maximum-menu-size))
(let ((n 0))
! (while (re-search-forward "^\\* +\\([^:\t\n]*\\)\\(:[^.,:]*[,:.][
\t]*\\)" nil t)
(setq n (1+ n))
(if (zerop (% n 3)) ; visual aids to help with 1-9 keys
(put-text-property (match-beginning 0)
***************
*** 2734,2740 ****
(add-text-properties (match-beginning 1) (match-end 1)
'(font-lock-face info-xref
mouse-face highlight
! help-echo "mouse-2: go to this node")))))
(Info-fontify-menu-headers)
(set-buffer-modified-p nil)))))
--- 2762,2773 ----
(add-text-properties (match-beginning 1) (match-end 1)
'(font-lock-face info-xref
mouse-face highlight
! help-echo "mouse-2: go to this node"))
! (add-text-properties (match-beginning 2) (match-end 2)
! (list 'display
! (make-string (max 2 (- 22 (-
(match-end 1) (match-beginning 1)))) ? )
! 'intangible t)))))
!
(Info-fontify-menu-headers)
(set-buffer-modified-p nil)))))
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Emacs-diffs] Changes to emacs/lisp/info.el,
Kim F. Storm <=