]> code.delx.au - gnu-emacs/blobdiff - lisp/mouse.el
Bind inhibit-modification-hooks rather than a/b-c-f
[gnu-emacs] / lisp / mouse.el
index 6584733a86026a3e7fdbc607bf565fb4bfa2b3e0..d6ce31a7a537291fe78363b2935506903e940ed9 100644 (file)
@@ -1111,12 +1111,12 @@ This does not delete the region; it acts like \\[kill-ring-save]."
     ;; Delete, but make the undo-list entry share with the kill ring.
     ;; First, delete just one char, so in case buffer is being modified
     ;; for the first time, the undo list records that fact.
-    (let (before-change-functions after-change-functions)
+    (let ((inhibit-modification-hooks t))
       (delete-region beg
                     (+ beg (if (> end beg) 1 -1))))
     (let ((buffer-undo-list buffer-undo-list))
       ;; Undo that deletion--but don't change the undo list!
-      (let (before-change-functions after-change-functions)
+      (let ((inhibit-modification-hooks t))
        (primitive-undo 1 buffer-undo-list))
       ;; Now delete the rest of the specified region,
       ;; but don't record it.