[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] Changes to emacs/lisp/info.el
From: |
Stefan Monnier |
Subject: |
[Emacs-diffs] Changes to emacs/lisp/info.el |
Date: |
Wed, 12 Oct 2005 15:47:25 -0400 |
Index: emacs/lisp/info.el
diff -c emacs/lisp/info.el:1.449 emacs/lisp/info.el:1.450
*** emacs/lisp/info.el:1.449 Tue Oct 11 05:47:55 2005
--- emacs/lisp/info.el Wed Oct 12 19:47:24 2005
***************
*** 3666,3688 ****
((equal tag "Up") Info-up-link-keymap))))))
(when Info-use-header-line
(goto-char (point-min))
! (let ((header-end (line-end-position))
! header)
! ;; If we find neither Next: nor Prev: link, show the entire
! ;; node header. Otherwise, don't show the File: and Node:
! ;; parts, to avoid wasting precious space on information that
! ;; is available in the mode line.
! (if (re-search-forward
! "\\(next\\|up\\|prev[ious]*\\): "
! header-end t)
! (progn
! (goto-char (match-beginning 1))
! (setq header (buffer-substring (point) header-end)))
! (if (re-search-forward "node:[ \t]*[^ \t]+[ \t]*" header-end t)
! (setq header
(concat "No next, prev or up links -- "
! (buffer-substring (point) header-end)))
! (setq header (buffer-substring (point) header-end))))
(put-text-property (point-min) (1+ (point-min))
'header-line
(replace-regexp-in-string
--- 3666,3688 ----
((equal tag "Up") Info-up-link-keymap))))))
(when Info-use-header-line
(goto-char (point-min))
! (let* ((header-end (line-end-position))
! (header
! ;; If we find neither Next: nor Prev: link, show the entire
! ;; node header. Otherwise, don't show the File: and Node:
! ;; parts, to avoid wasting precious space on information
that
! ;; is available in the mode line.
! (if (re-search-forward
! "\\(next\\|up\\|prev[ious]*\\): "
! header-end t)
! (progn
! (goto-char (match-beginning 1))
! (buffer-substring (point) header-end))
! (if (re-search-forward "node:[ \t]*[^ \t]+[ \t]*"
! header-end t)
(concat "No next, prev or up links -- "
! (buffer-substring (point) header-end))
! (buffer-substring (point) header-end)))))
(put-text-property (point-min) (1+ (point-min))
'header-line
(replace-regexp-in-string
***************
*** 3698,3706 ****
;; 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
(cond ((= c ?*) 'info-title-1)
--- 3698,3712 ----
;; Fontify titles
(goto-char (point-min))
! (when (and font-lock-mode not-fontified-p)
! (while (and (re-search-forward "\n\\([^
\t\n].+\\)\n\\(\\*\\*+\\|==+\\|--+\\|\\.\\.+\\)$"
! nil t)
! ;; Only consider it as an underlined title if the ASCII
! ;; underline has the same size as the text. A typical
! ;; counter example is when a continuation "..." is alone
! ;; on a line.
! (= (- (match-end 1) (match-beginning 1))
! (- (match-end 2) (match-beginning 2))))
(let* ((c (preceding-char))
(face
(cond ((= c ?*) 'info-title-1)
- [Emacs-diffs] Changes to emacs/lisp/info.el, Chong Yidong, 2005/10/01
- [Emacs-diffs] Changes to emacs/lisp/info.el, Chong Yidong, 2005/10/04
- [Emacs-diffs] Changes to emacs/lisp/info.el, Juri Linkov, 2005/10/11
- [Emacs-diffs] Changes to emacs/lisp/info.el,
Stefan Monnier <=
- [Emacs-diffs] Changes to emacs/lisp/info.el, Stefan Monnier, 2005/10/16
- [Emacs-diffs] Changes to emacs/lisp/info.el, Bill Wohler, 2005/10/17
- [Emacs-diffs] Changes to emacs/lisp/info.el, Juri Linkov, 2005/10/21
- [Emacs-diffs] Changes to emacs/lisp/info.el, Richard M . Stallman, 2005/10/26