* lisp/info.el (Info-fontify-node): Hide the suffix of the Info file name
in the header line. Fixes: debbugs:12187
This commit is contained in:
parent
141562ffa6
commit
d1c0d176e8
2 changed files with 16 additions and 1 deletions
|
@ -1,3 +1,8 @@
|
|||
2012-08-22 Juri Linkov <juri@jurta.org>
|
||||
|
||||
* info.el (Info-fontify-node): Hide the suffix of the
|
||||
Info file name in the header line. (Bug#12187)
|
||||
|
||||
2012-08-22 Glenn Morris <rgm@gnu.org>
|
||||
|
||||
* calendar/cal-tex.el (cal-tex-weekly-common):
|
||||
|
|
12
lisp/info.el
12
lisp/info.el
|
@ -4527,7 +4527,17 @@ first line or header line, and for breadcrumb links.")
|
|||
((not (bobp))
|
||||
;; Hide the punctuation at the end, too.
|
||||
(skip-chars-backward " \t,")
|
||||
(put-text-property (point) header-end 'invisible t))))))
|
||||
(put-text-property (point) header-end 'invisible t)
|
||||
;; Hide the suffix of the Info file name.
|
||||
(beginning-of-line)
|
||||
(if (re-search-forward
|
||||
(format "File: %s\\([^,\n\t]+\\),"
|
||||
(if (stringp Info-current-file)
|
||||
(file-name-nondirectory Info-current-file)
|
||||
Info-current-file))
|
||||
header-end t)
|
||||
(put-text-property (match-beginning 1) (match-end 1)
|
||||
'invisible t)))))))
|
||||
|
||||
;; Fontify titles
|
||||
(goto-char (point-min))
|
||||
|
|
Loading…
Add table
Reference in a new issue