aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJuri Linkov2012-08-23 02:30:47 +0300
committerJuri Linkov2012-08-23 02:30:47 +0300
commitd1c0d176e8dc7e7e72d7e029b4c14d7dcc4eb9ec (patch)
tree0d9e1644dcc882e3db399028e1a9fddac52e2122
parent141562ffa6320154c7455b99028f74d40af9ee80 (diff)
downloademacs-d1c0d176e8dc7e7e72d7e029b4c14d7dcc4eb9ec.tar.gz
emacs-d1c0d176e8dc7e7e72d7e029b4c14d7dcc4eb9ec.zip
* lisp/info.el (Info-fontify-node): Hide the suffix of the Info file name
in the header line. Fixes: debbugs:12187
-rw-r--r--lisp/ChangeLog5
-rw-r--r--lisp/info.el12
2 files changed, 16 insertions, 1 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index c45fc114e5c..c92691b64b8 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,8 @@
12012-08-22 Juri Linkov <juri@jurta.org>
2
3 * info.el (Info-fontify-node): Hide the suffix of the
4 Info file name in the header line. (Bug#12187)
5
12012-08-22 Glenn Morris <rgm@gnu.org> 62012-08-22 Glenn Morris <rgm@gnu.org>
2 7
3 * calendar/cal-tex.el (cal-tex-weekly-common): 8 * calendar/cal-tex.el (cal-tex-weekly-common):
diff --git a/lisp/info.el b/lisp/info.el
index 15478f9063c..7365b0efcfd 100644
--- a/lisp/info.el
+++ b/lisp/info.el
@@ -4527,7 +4527,17 @@ first line or header line, and for breadcrumb links.")
4527 ((not (bobp)) 4527 ((not (bobp))
4528 ;; Hide the punctuation at the end, too. 4528 ;; Hide the punctuation at the end, too.
4529 (skip-chars-backward " \t,") 4529 (skip-chars-backward " \t,")
4530 (put-text-property (point) header-end 'invisible t)))))) 4530 (put-text-property (point) header-end 'invisible t)
4531 ;; Hide the suffix of the Info file name.
4532 (beginning-of-line)
4533 (if (re-search-forward
4534 (format "File: %s\\([^,\n\t]+\\),"
4535 (if (stringp Info-current-file)
4536 (file-name-nondirectory Info-current-file)
4537 Info-current-file))
4538 header-end t)
4539 (put-text-property (match-beginning 1) (match-end 1)
4540 'invisible t)))))))
4531 4541
4532 ;; Fontify titles 4542 ;; Fontify titles
4533 (goto-char (point-min)) 4543 (goto-char (point-min))