]> git.eshelyaron.com Git - emacs.git/commitdiff
(doc-view-sentinel): Strip trailing newline from event message.
authorChong Yidong <cyd@stupidchicken.com>
Sat, 14 Mar 2009 02:12:06 +0000 (02:12 +0000)
committerChong Yidong <cyd@stupidchicken.com>
Sat, 14 Mar 2009 02:12:06 +0000 (02:12 +0000)
lisp/doc-view.el

index c88f9786a3d0d0caf14d33e93df228fc9b1b76df..aca2f65d0f6f311e7889a412856d5a2c80fdbfb8 100644 (file)
@@ -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