aboutsummaryrefslogtreecommitdiffstats
path: root/lisp/info.el
diff options
context:
space:
mode:
authorChong Yidong2012-12-07 23:31:43 +0800
committerChong Yidong2012-12-07 23:31:43 +0800
commit75498db059d2719ee30c4bd0d39f8fbcf07582be (patch)
tree02f24e04a58b64f34b5bfacd54edf947adb8d17a /lisp/info.el
parent3f1071c747c11c38ab01b41e990d5284242833a9 (diff)
downloademacs-75498db059d2719ee30c4bd0d39f8fbcf07582be.tar.gz
emacs-75498db059d2719ee30c4bd0d39f8fbcf07582be.zip
* info.el (Info-set-mode-line): Remove file extension from Info-current-file
if there is one. Fixes: debbugs:13016
Diffstat (limited to 'lisp/info.el')
-rw-r--r--lisp/info.el4
1 files changed, 3 insertions, 1 deletions
diff --git a/lisp/info.el b/lisp/info.el
index 6624c0d61b2..abceb73bea0 100644
--- a/lisp/info.el
+++ b/lisp/info.el
@@ -1668,7 +1668,9 @@ escaped (\\\",\\\\)."
1668 " (" 1668 " ("
1669 (if (stringp Info-current-file) 1669 (if (stringp Info-current-file)
1670 (replace-regexp-in-string 1670 (replace-regexp-in-string
1671 "%" "%%" (file-name-nondirectory Info-current-file)) 1671 "%" "%%"
1672 (file-name-sans-extension
1673 (file-name-nondirectory Info-current-file)))
1672 (format "*%S*" Info-current-file)) 1674 (format "*%S*" Info-current-file))
1673 ") " 1675 ") "
1674 (if Info-current-node 1676 (if Info-current-node