Commit dbbd7ad4 authored by Kan-Ru Chen's avatar Kan-Ru Chen Committed by Chong Yidong
Browse files

* textmodes/nroff-mode.el (nroff-view): Kill old buffer before refreshing the preview buffer.

parent b879a6e2
2010-09-14 Kan-Ru Chen <kanru@kanru.info> (tiny change)
* textmodes/nroff-mode.el (nroff-view): Kill old buffer before
refreshing the preview buffer.
2010-09-18 Stefan Monnier <monnier@iro.umontreal.ca>
 
* textmodes/tex-mode.el (tex-syntax-propertize-rules)
......
......@@ -311,10 +311,16 @@ turns it on if arg is positive, otherwise off."
"Run man on this file."
(interactive)
(require 'man)
(let* ((file (buffer-file-name)))
(if file
(Man-getpage-in-background file)
(error "No associated file for the current buffer"))))
(let* ((file (buffer-file-name))
(viewbuf (get-buffer (concat "*Man " file "*"))))
(unless file
(error "Buffer is not associated with any file"))
(and (buffer-modified-p)
(y-or-n-p (format "Save buffer %s first? " (buffer-name)))
(save-buffer))
(if viewbuf
(kill-buffer viewbuf))
(Man-getpage-in-background file)))
;; Old names that were not namespace clean.
(define-obsolete-function-alias 'count-text-lines 'nroff-count-text-lines "22.1")
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment