From 67c84c161fa4e97c1f98ef1bbc72fa0f6098e1fd Mon Sep 17 00:00:00 2001 From: Nicolas Goaziou Date: Fri, 17 Feb 2017 13:35:07 +0100 Subject: [PATCH] Prefer `compilation-mode' over `special-mode' for log buffers * lisp/org.el (org-compile-file): Use `compilation-mode' instead of `special-mode'. --- etc/ORG-NEWS | 2 +- lisp/org.el | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/etc/ORG-NEWS b/etc/ORG-NEWS index e3a3718da..5abbd586e 100644 --- a/etc/ORG-NEWS +++ b/etc/ORG-NEWS @@ -172,7 +172,7 @@ Simiralry to ~:EXPORT_FILE_NAME:~ property, this keyword allows the user to specify the name of the output file upon exporting the document. This also has an effect on publishing. **** Horizontal rules are no longer ignored in LaTeX table math mode -**** Use ~special-mode~ for compilation output +**** Use ~compilation-mode~ for compilation output *** ~org-edit-special~ can edit LaTeX environments diff --git a/lisp/org.el b/lisp/org.el index fdce3fd35..ed58ab787 100644 --- a/lisp/org.el +++ b/lisp/org.el @@ -22463,7 +22463,7 @@ it for output." (?O . ,(shell-quote-argument output)))))) (dolist (command process) (shell-command (format-spec command spec) log-buf)) - (when log-buf (with-current-buffer log-buf (special-mode))))) + (when log-buf (with-current-buffer log-buf (compilation-mode))))) (_ (error "No valid command to process %S%s" source err-msg)))) ;; Check for process failure. Output file is expected to be ;; located in the same directory as SOURCE.