]> git.eshelyaron.com Git - emacs.git/commitdiff
* lisp/info.el (Info-fontify-node): Hide the suffix of the Info file name
authorJuri Linkov <juri@jurta.org>
Wed, 22 Aug 2012 23:30:47 +0000 (02:30 +0300)
committerJuri Linkov <juri@jurta.org>
Wed, 22 Aug 2012 23:30:47 +0000 (02:30 +0300)
in the header line.

Fixes: debbugs:12187
lisp/ChangeLog
lisp/info.el

index c45fc114e5c6e448d0d8faf4e9c710a9a96aff86..c92691b64b833cc2a3393a4b73afae7f851cfa83 100644 (file)
@@ -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):
index 15478f9063c66291dbef903387bf8bed9c919f00..7365b0efcfde079492c47cc9e1c3e2cf0c60335f 100644 (file)
@@ -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))