+2011-07-14 Lars Magne Ingebrigtsen <larsi@gnus.org>
+
+ * man.el (Man-fontify-manpage): Fix message when formatting the
+ man page (bug#7929).
+
2011-07-14 Eli Zaretskii <eliz@gnu.org>
* buff-menu.el (Buffer-menu-buffer+size): Accept an additional
(put-text-property (match-beginning 0)
(match-end 0)
'face Man-overstrike-face)))
- (message "%s man page formatted" Man-arguments))
+ (message "%s man page formatted" (Man-page-from-arguments Man-arguments)))
(defun Man-highlight-references (&optional xref-man-type)
"Highlight the references on mouse-over.
(let ((args Man-arguments))
(kill-buffer (current-buffer))
(error "Can't find the %s manpage"
- ;; Skip arguments and only print the page name.
- (mapconcat
- 'identity
- (delete nil
- (mapcar
- (lambda (elem)
- (and (not (string-match "^-" elem))
- elem))
- (split-string args " ")))
- " ")))
+ (Man-page-from-arguments args)))
(set-buffer-modified-p nil))))
;; Restore case-fold-search before calling
;; Man-notify-when-ready because it may switch buffers.
(error "%s" err-mess))
))))
+(defun Man-page-from-arguments (args)
+ ;; Skip arguments and only print the page name.
+ (mapconcat
+ 'identity
+ (delete nil
+ (mapcar
+ (lambda (elem)
+ (and (not (string-match "^-" elem))
+ elem))
+ (split-string args " ")))
+ " "))
+
\f
;; ======================================================================
;; set up manual mode in buffer and build alists