emacs-diffs
[Top][All Lists]
Advanced

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

master f43a3a7: Simplify `clean-mode'


From: Lars Ingebrigtsen
Subject: master f43a3a7: Simplify `clean-mode'
Date: Sat, 9 Oct 2021 07:12:42 -0400 (EDT)

branch: master
commit f43a3a7cd7cfae10d7c29b1f84eb3b842ca0a83a
Author: Lars Ingebrigtsen <larsi@gnus.org>
Commit: Lars Ingebrigtsen <larsi@gnus.org>

    Simplify `clean-mode'
    
    * lisp/simple.el (clean-mode): Simplify the property exclusion.
---
 lisp/simple.el | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)

diff --git a/lisp/simple.el b/lisp/simple.el
index f7e62e0..841983a 100644
--- a/lisp/simple.el
+++ b/lisp/simple.el
@@ -534,10 +534,7 @@ Other major modes are defined by comparison with this one."
     (dolist (overlay (overlays-in (point-min) (point-max)))
       (delete-overlay overlay))
     (set-text-properties (point-min) (point-max) nil)
-    (setq-local after-change-functions
-                (list
-                 (lambda (begin end _length)
-                   (set-text-properties begin end nil))))))
+    (setq-local yank-excluded-properties t)))
 
 ;; Special major modes to view specially formatted data rather than files.
 



reply via email to

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