]> git.eshelyaron.com Git - emacs.git/commitdiff
Allow read-passwd to hide characters inserted by C-y. (Security fix.)
authorAlan Mackenzie <acm@muc.de>
Sat, 27 Jan 2018 22:02:45 +0000 (22:02 +0000)
committerAlan Mackenzie <acm@muc.de>
Sat, 27 Jan 2018 22:02:45 +0000 (22:02 +0000)
This fixes bug #30186.  The with-silent-modifications was there to prevent
records of text property manipulations being put into buffer-undo-list.  These
had been causing a significant slowdown in CC Mode with C-_ after a large
C-y.  This CC Mode problem has since been solved by a different workaround.

* lisp/subr.el (remove-yank-excluded-properties): Remove the invocation of
with-silent-modifications around the text property manipulations.

lisp/subr.el

index 052d9cd8216e2999ece03fcf150a931fc5471ce5..64cbbd52ab82dadfe4c9e6f5b03869160477afa3 100644 (file)
@@ -3019,10 +3019,9 @@ remove properties specified by `yank-excluded-properties'."
                           run-start prop nil end)))
             (funcall fun value run-start run-end)
             (setq run-start run-end)))))
-    (with-silent-modifications
-      (if (eq yank-excluded-properties t)
-          (set-text-properties start end nil)
-        (remove-list-of-text-properties start end yank-excluded-properties)))))
+    (if (eq yank-excluded-properties t)
+        (set-text-properties start end nil)
+      (remove-list-of-text-properties start end yank-excluded-properties))))
 
 (defvar yank-undo-function)