emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[nongnu] elpa/zig-mode 07efab0 095/104: Merge pull request #48 from nois


From: ELPA Syncer
Subject: [nongnu] elpa/zig-mode 07efab0 095/104: Merge pull request #48 from noisegul/master
Date: Sun, 29 Aug 2021 11:37:10 -0400 (EDT)

branch: elpa/zig-mode
commit 07efab0f48ce94f9d3ede9a359bcd27ca974eba0
Merge: 6f10653 89385d7
Author: Andrea Orru <andrea@orru.io>
Commit: GitHub <noreply@github.com>

    Merge pull request #48 from noisegul/master
    
    Use read-only-mode instead of toggle-read-only
---
 README.md   | 2 +-
 zig-mode.el | 4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/README.md b/README.md
index 5060aa8..73e2c5b 100644
--- a/README.md
+++ b/README.md
@@ -31,7 +31,7 @@ To run all unit tests with `emacs`, run:
 ./run_tests.sh
 ```
 
-Note that Emacs 24 or later is required.  If you need to specify which Emacs
+Note that Emacs 24.3 or later is required.  If you need to specify which Emacs
 binary to use, you can do that by setting the `EMACS` environment variable,
 e.g.:
 
diff --git a/zig-mode.el b/zig-mode.el
index db9a03b..f529e5c 100644
--- a/zig-mode.el
+++ b/zig-mode.el
@@ -443,9 +443,9 @@ If given a SOURCE, execute the CMD on it."
        (zig-format-buffer)))
 
 (defun colorize-compilation-buffer ()
-  (toggle-read-only)
+  (read-only-mode 0)
   (ansi-color-apply-on-region compilation-filter-start (point))
-  (toggle-read-only))
+  (read-only-mode 1))
 
 ;;;###autoload
 (add-to-list 'auto-mode-alist '("\\.zig\\'" . zig-mode))



reply via email to

[Prev in Thread] Current Thread [Next in Thread]