branch: elpa/aidermacs
commit 87d3f0d8f6645de9d71858714cb86a708b15c92a
Author: Mingde (Matthew) Zeng <matthew...@posteo.net>
Commit: Mingde (Matthew) Zeng <matthew...@posteo.net>

    Fix linting
    
    Signed-off-by: Mingde (Matthew) Zeng <matthew...@posteo.net>
---
 aidermacs-output.el | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/aidermacs-output.el b/aidermacs-output.el
index 9825582737..10a2ec566c 100644
--- a/aidermacs-output.el
+++ b/aidermacs-output.el
@@ -129,13 +129,12 @@ and syntax highlighting to match the original file."
             (insert-file-contents filename)
             (set-buffer-modified-p nil)
             ;; Use same major mode as the original file
-            (with-demoted-errors ""
+            (with-demoted-errors "%s"
               (let ((buffer-file-name filename)
                     (delay-mode-hooks t))
                 (set-auto-mode)
                 ;; Ensure syntax highlighting is applied
-                (font-lock-mode 1)
-                (font-lock-fontify-buffer))
+                (font-lock-ensure))
               ;; Make buffer read-only
               (setq buffer-read-only t)))
           (cons filename temp-buffer))

Reply via email to