From: Chong Yidong Date: Sat, 14 Mar 2009 02:12:06 +0000 (+0000) Subject: (doc-view-sentinel): Strip trailing newline from event message. X-Git-Tag: emacs-pretest-23.0.92~220 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=405ee48db358592c2d18ab16266180f6d952ac33;p=emacs.git (doc-view-sentinel): Strip trailing newline from event message. --- diff --git a/lisp/doc-view.el b/lisp/doc-view.el index c88f9786a3d..aca2f65d0f6 100644 --- a/lisp/doc-view.el +++ b/lisp/doc-view.el @@ -564,7 +564,10 @@ Should be invoked when the cached images aren't up-to-date." "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