[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/rainbow-delimiters 4fc4352c0d 031/188: Release rainbow-del
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/rainbow-delimiters 4fc4352c0d 031/188: Release rainbow-delimiters.el version 1.3.3. |
Date: |
Sat, 1 Jan 2022 00:58:50 -0500 (EST) |
branch: elpa/rainbow-delimiters
commit 4fc4352c0dd79f94681bba9a0063a9c13da6c047
Author: Jeremy L. Rayman <jeremy.rayman@gmail.com>
Commit: Jeremy L. Rayman <jeremy.rayman@gmail.com>
Release rainbow-delimiters.el version 1.3.3.
- Add backwards compatibility with Emacs versions prior to 23.2.
---
rainbow-delimiters.el | 39 ++++++++++++++++++++++++++++++++++++++-
1 file changed, 38 insertions(+), 1 deletion(-)
diff --git a/rainbow-delimiters.el b/rainbow-delimiters.el
index 0a6b8a202d..854c0ab195 100644
--- a/rainbow-delimiters.el
+++ b/rainbow-delimiters.el
@@ -4,7 +4,7 @@
;; Author: Jeremy L. Rayman <jeremy.rayman@gmail.com>
;; Maintainer: Jeremy L. Rayman <jeremy.rayman@gmail.com>
;; Created: 2010-09-02
-;; Version: 1.3.2
+;; Version: 1.3.3
;; Keywords: faces, convenience, lisp, matching, tools, rainbow, rainbow
parentheses, rainbow parens
;; EmacsWiki: http://www.emacswiki.org/emacs/RainbowDelimiters
;; Github: http://github.com/jlr/rainbow-delimiters
@@ -118,6 +118,9 @@
;; - Add 'global-rainbow-delimiters-mode'.
;; - Respect syntax of current buffer major-mode so delimiters
;; highlight correctly in non-lisp languages.
+;; 1.3.3 (2011-11-25)
+;; - Backwards compatibility with Emacs versions prior to 23.2.
+;; Defines "with-silent-modifications" if undefined.
;;; TODO:
@@ -333,6 +336,40 @@ major-mode. The syntax table is constructed by the function
;;; Text properties
+;; Backwards compatibility: Emacs < v23.2 lack macro
'with-silent-modifications'.
+(eval-and-compile
+ (unless (fboundp 'with-silent-modifications)
+ (defmacro with-silent-modifications (&rest body)
+ "Defined by rainbow-delimiters.el for backwards compatibility with Emacs
< 23.2.
+ Execute BODY, pretending it does not modify the buffer.
+If BODY performs real modifications to the buffer's text, other
+than cosmetic ones, undo data may become corrupted.
+
+This macro will run BODY normally, but doesn't count its buffer
+modifications as being buffer modifications. This affects things
+like buffer-modified-p, checking whether the file is locked by
+someone else, running buffer modification hooks, and other things
+of that nature.
+
+Typically used around modifications of text-properties which do
+not really affect the buffer's content."
+ (declare (debug t) (indent 0))
+ (let ((modified (make-symbol "modified")))
+ `(let* ((,modified (buffer-modified-p))
+ (buffer-undo-list t)
+ (inhibit-read-only t)
+ (inhibit-modification-hooks t)
+ deactivate-mark
+ ;; Avoid setting and removing file locks and checking
+ ;; buffer's uptodate-ness w.r.t the underlying file.
+ buffer-file-name
+ buffer-file-truename)
+ (unwind-protect
+ (progn
+ ,@body)
+ (unless ,modified
+ (restore-buffer-modified-p nil))))))))
+
(defsubst rainbow-delimiters-propertize-delimiter (loc depth)
"Highlight a single delimiter at LOC according to DEPTH.
- [nongnu] elpa/rainbow-delimiters 25ad3c3def 016/188: Update README.markdown; include instructions re: global-rainbow-delimiters-mode., (continued)
- [nongnu] elpa/rainbow-delimiters 25ad3c3def 016/188: Update README.markdown; include instructions re: global-rainbow-delimiters-mode., ELPA Syncer, 2022/01/01
- [nongnu] elpa/rainbow-delimiters 779b40f39d 021/188: Update README.markdown; include instructions re: global-rainbow-delimiters-mode., ELPA Syncer, 2022/01/01
- [nongnu] elpa/rainbow-delimiters a44624fa05 018/188: Update README.markdown; include instructions re: global-rainbow-delimiters-mode., ELPA Syncer, 2022/01/01
- [nongnu] elpa/rainbow-delimiters 56faa7bd86 019/188: Update README.markdown; include instructions re: global-rainbow-delimiters-mode., ELPA Syncer, 2022/01/01
- [nongnu] elpa/rainbow-delimiters 1dc8ea6fdf 027/188: Change top-line description for marmalade-repo.org., ELPA Syncer, 2022/01/01
- [nongnu] elpa/rainbow-delimiters 0444666196 025/188: Note Bugfix of syntax-table problem in the 1.4 release notes., ELPA Syncer, 2022/01/01
- [nongnu] elpa/rainbow-delimiters 8a8ee4e4e1 039/188: Merge branch 'master' of github.com:jlr/rainbow-delimiters, ELPA Syncer, 2022/01/01
- [nongnu] elpa/rainbow-delimiters 493b514ae7 037/188: Color scheme for light backgrounds., ELPA Syncer, 2022/01/01
- [nongnu] elpa/rainbow-delimiters d44ed19ade 030/188: Note that rainbow-delimiters-depth-1-face only gets applied to outermost delimiter pair. (Stylistically this is nice because it makes the outermost pair distinct.), ELPA Syncer, 2022/01/01
- [nongnu] elpa/rainbow-delimiters 54855dcf52 062/188: Revert a part of 3dfd3fa9b that shouldn't be changed in the first place., ELPA Syncer, 2022/01/01
- [nongnu] elpa/rainbow-delimiters 4fc4352c0d 031/188: Release rainbow-delimiters.el version 1.3.3.,
ELPA Syncer <=
- [nongnu] elpa/rainbow-delimiters aff2162d35 044/188: Merge pull request #13 from habib/master, ELPA Syncer, 2022/01/01
- [nongnu] elpa/rainbow-delimiters d59a5a53b8 032/188: In emacs 24 it is possible to hook it to `prog-modes-hook`, so it is enabled for **all** programming modes., ELPA Syncer, 2022/01/01
- [nongnu] elpa/rainbow-delimiters b78dd93407 048/188: Silence the byte compiler warnings., ELPA Syncer, 2022/01/01
- [nongnu] elpa/rainbow-delimiters 40c2aa5ce3 028/188: Update description and commentary at top of file., ELPA Syncer, 2022/01/01
- [nongnu] elpa/rainbow-delimiters 9c4950a283 060/188: Properly tear down the mode when changing major mode., ELPA Syncer, 2022/01/01
- [nongnu] elpa/rainbow-delimiters 75acc28109 063/188: Release version 1.3.7., ELPA Syncer, 2022/01/01
- [nongnu] elpa/rainbow-delimiters a1cd80ee8d 073/188: Remove the changelog., ELPA Syncer, 2022/01/01
- [nongnu] elpa/rainbow-delimiters 0fa4723a9d 080/188: Add rainbow-delimiters-ignore-modes, ELPA Syncer, 2022/01/01
- [nongnu] elpa/rainbow-delimiters df4976a965 086/188: Release version 1.3.9., ELPA Syncer, 2022/01/01
- [nongnu] elpa/rainbow-delimiters b85b86c0b4 088/188: Release version 1.3.10., ELPA Syncer, 2022/01/01