aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lisp/ChangeLog5
-rw-r--r--lisp/textmodes/nroff-mode.el14
2 files changed, 15 insertions, 4 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 653822a86fd..ccc0531778a 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,8 @@
12010-09-14 Kan-Ru Chen <kanru@kanru.info> (tiny change)
2
3 * textmodes/nroff-mode.el (nroff-view): Kill old buffer before
4 refreshing the preview buffer.
5
12010-09-18 Stefan Monnier <monnier@iro.umontreal.ca> 62010-09-18 Stefan Monnier <monnier@iro.umontreal.ca>
2 7
3 * textmodes/tex-mode.el (tex-syntax-propertize-rules) 8 * textmodes/tex-mode.el (tex-syntax-propertize-rules)
diff --git a/lisp/textmodes/nroff-mode.el b/lisp/textmodes/nroff-mode.el
index 14b0b106bb3..52538064053 100644
--- a/lisp/textmodes/nroff-mode.el
+++ b/lisp/textmodes/nroff-mode.el
@@ -311,10 +311,16 @@ turns it on if arg is positive, otherwise off."
311 "Run man on this file." 311 "Run man on this file."
312 (interactive) 312 (interactive)
313 (require 'man) 313 (require 'man)
314 (let* ((file (buffer-file-name))) 314 (let* ((file (buffer-file-name))
315 (if file 315 (viewbuf (get-buffer (concat "*Man " file "*"))))
316 (Man-getpage-in-background file) 316 (unless file
317 (error "No associated file for the current buffer")))) 317 (error "Buffer is not associated with any file"))
318 (and (buffer-modified-p)
319 (y-or-n-p (format "Save buffer %s first? " (buffer-name)))
320 (save-buffer))
321 (if viewbuf
322 (kill-buffer viewbuf))
323 (Man-getpage-in-background file)))
318 324
319;; Old names that were not namespace clean. 325;; Old names that were not namespace clean.
320(define-obsolete-function-alias 'count-text-lines 'nroff-count-text-lines "22.1") 326(define-obsolete-function-alias 'count-text-lines 'nroff-count-text-lines "22.1")