emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] Changes to emacs/lisp/info.el [lexbind]


From: Miles Bader
Subject: [Emacs-diffs] Changes to emacs/lisp/info.el [lexbind]
Date: Mon, 25 Oct 2004 00:44:10 -0400

Index: emacs/lisp/info.el
diff -c emacs/lisp/info.el:1.304.2.17 emacs/lisp/info.el:1.304.2.18
*** emacs/lisp/info.el:1.304.2.17       Mon Oct 25 04:19:40 2004
--- emacs/lisp/info.el  Mon Oct 25 04:22:23 2004
***************
*** 3248,3254 ****
  \(FILENAME NODENAME BUFFERPOS\)."
    (let ((where '())
        (cmd-desc (concat "^\\* +" (regexp-quote (symbol-name command))
!                         "\\( <[0-9]+>\\)?:\\s *\\(.*\\)\\.$"))
        (info-file "emacs"))            ;default
      ;; Determine which info file this command is documented in.
      (if (get command 'info-file)
--- 3248,3255 ----
  \(FILENAME NODENAME BUFFERPOS\)."
    (let ((where '())
        (cmd-desc (concat "^\\* +" (regexp-quote (symbol-name command))
!                         "\\( <[0-9]+>\\)?:\\s *\\(.*\\)\\."
!                         "\\([ \t]*(line[ \t]*[0-9]*)\\)?$"))
        (info-file "emacs"))            ;default
      ;; Determine which info file this command is documented in.
      (if (get command 'info-file)
***************
*** 3445,3451 ****
             (fontify-visited-p ; visited nodes need to be re-fontified
              (and Info-fontify-visited-nodes
                   ;; Don't take time to refontify visited nodes in huge nodes
!                  (< (- (point-max) (point-min)) 
Info-fontify-maximum-menu-size))))
  
        ;; Fontify header line
        (goto-char (point-min))
--- 3446,3453 ----
             (fontify-visited-p ; visited nodes need to be re-fontified
              (and Info-fontify-visited-nodes
                   ;; Don't take time to refontify visited nodes in huge nodes
!                  (< (- (point-max) (point-min)) 
Info-fontify-maximum-menu-size)))
!            rbeg rend)
  
        ;; Fontify header line
        (goto-char (point-min))
***************
*** 3570,3608 ****
                               "mouse-2: go to this node")
                  'mouse-face 'highlight)))
              (when (or not-fontified-p fontify-visited-p)
!               (add-text-properties
!                (match-beginning 2) (match-end 2)
!                (list
!                 'font-lock-face
!                 ;; Display visited nodes in a different face
!                 (if (and Info-fontify-visited-nodes
!                          (save-match-data
!                            (let* ((node (replace-regexp-in-string
!                                          "^[ \t]+" ""
!                                          (replace-regexp-in-string
!                                           "[ \t\n]+" " "
!                                           (or (match-string 5)
!                                               (and (not (equal (match-string 
4) ""))
!                                                    (match-string 4))
!                                               (match-string 2)))))
!                                   (file (file-name-nondirectory
!                                          Info-current-file))
!                                   (hl Info-history-list)
!                                   res)
!                              (if (string-match "(\\([^)]+\\))\\([^)]*\\)" 
node)
!                                  (setq file (file-name-nondirectory
!                                              (match-string 1 node))
!                                        node (if (equal (match-string 2 node) 
"")
!                                                 "Top"
!                                               (match-string 2 node))))
!                              (while hl
!                                (if (and (string-equal node (nth 1 (car hl)))
!                                         (string-equal file
!                                                       (file-name-nondirectory
!                                                        (nth 0 (car hl)))))
!                                    (setq res (car hl) hl nil)
!                                  (setq hl (cdr hl))))
!                              res))) 'info-xref-visited 'info-xref))))
              (when not-fontified-p
                (when (memq Info-hide-note-references '(t hide))
                  (add-text-properties (match-beginning 3) (match-end 3)
--- 3572,3619 ----
                               "mouse-2: go to this node")
                  'mouse-face 'highlight)))
              (when (or not-fontified-p fontify-visited-p)
!               (setq rbeg (match-beginning 2)
!                     rend (match-end 2))
!               (put-text-property
!                rbeg rend
!                'font-lock-face
!                ;; Display visited nodes in a different face
!                (if (and Info-fontify-visited-nodes
!                         (save-match-data
!                           (let* ((node (replace-regexp-in-string
!                                         "^[ \t]+" ""
!                                         (replace-regexp-in-string
!                                          "[ \t\n]+" " "
!                                          (or (match-string 5)
!                                              (and (not (equal (match-string 
4) ""))
!                                                   (match-string 4))
!                                              (match-string 2)))))
!                                  (file (file-name-nondirectory
!                                         Info-current-file))
!                                  (hl Info-history-list)
!                                  res)
!                             (if (string-match "(\\([^)]+\\))\\([^)]*\\)" node)
!                                 (setq file (file-name-nondirectory
!                                             (match-string 1 node))
!                                       node (if (equal (match-string 2 node) 
"")
!                                                "Top"
!                                              (match-string 2 node))))
!                             (while hl
!                               (if (and (string-equal node (nth 1 (car hl)))
!                                        (string-equal file
!                                                      (file-name-nondirectory
!                                                       (nth 0 (car hl)))))
!                                   (setq res (car hl) hl nil)
!                                 (setq hl (cdr hl))))
!                             res))) 'info-xref-visited 'info-xref))
!               ;; For multiline ref, unfontify newline and surrounding 
whitespace
!               (save-excursion
!                 (goto-char rbeg)
!                 (save-match-data
!                   (while (re-search-forward "\\s-*\n\\s-*" rend t nil)
!                     (remove-text-properties (match-beginning 0)
!                                             (match-end 0)
!                                             '(font-lock-face t))))))
              (when not-fontified-p
                (when (memq Info-hide-note-references '(t hide))
                  (add-text-properties (match-beginning 3) (match-end 3)




reply via email to

[Prev in Thread] Current Thread [Next in Thread]