Mercurial > emacs
changeset 102545:061690191e25
(doc-view-sentinel): Strip trailing newline from event message.
author | Chong Yidong <cyd@stupidchicken.com> |
---|---|
date | Sat, 14 Mar 2009 02:12:06 +0000 |
parents | e6dfff05e3b2 |
children | f4adb8b6af6c |
files | lisp/doc-view.el |
diffstat | 1 files changed, 4 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/lisp/doc-view.el Sat Mar 14 02:11:20 2009 +0000 +++ b/lisp/doc-view.el Sat Mar 14 02:12:06 2009 +0000 @@ -564,7 +564,10 @@ "Generic sentinel for doc-view conversion processes." (if (not (string-match "finished" event)) (message "DocView: process %s changed status to %s." - (process-name proc) event) + (process-name proc) + (if (string-match "\\(.+\\)\n?\\'" event) + (match-string 1 event) + event)) (when (buffer-live-p (process-get proc 'buffer)) (with-current-buffer (process-get proc 'buffer) (setq doc-view-current-converter-processes