diff options
| -rw-r--r-- | lisp/ChangeLog | 5 | ||||
| -rw-r--r-- | lisp/info.el | 12 |
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 @@ | |||
| 1 | 2012-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 | |||
| 1 | 2012-08-22 Glenn Morris <rgm@gnu.org> | 6 | 2012-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)) |