* lisp/info.el (Info-set-mode-line): Improve the Info mode line
further (bug#13776).
(if (stringp Info-current-file)
(string-replace
"%" "%%"
- (file-name-sans-extension
- (file-name-nondirectory Info-current-file)))
+ ;; Remove trailing ".info" and ".info.gz", etc.
+ (replace-regexp-in-string
+ "\\..*\\'" ""
+ (file-name-nondirectory Info-current-file)))
(format "*%S*" Info-current-file))
- 'help-echo "Info file name")
+ 'help-echo "Manual name")
") ")
(if Info-current-node
(propertize (string-replace