summaryrefslogtreecommitdiff
path: root/lisp/longlines.el
diff options
context:
space:
mode:
authorChong Yidong <cyd@stupidchicken.com>2005-10-27 01:36:31 +0000
committerChong Yidong <cyd@stupidchicken.com>2005-10-27 01:36:31 +0000
commita145b41c6b74f8528d51aa923a9d752549cf5066 (patch)
tree4e65744e8a32f9208a850ca0d139391d607b458b /lisp/longlines.el
parent581e742781883016f7c612b59b225a1bcb1fa36f (diff)
downloademacs-a145b41c6b74f8528d51aa923a9d752549cf5066.tar.gz
* longlines.el (longlines-mode): Bind after-change-functions to
nil during initial decoding and final encoding.
Diffstat (limited to 'lisp/longlines.el')
-rw-r--r--lisp/longlines.el4
1 files changed, 3 insertions, 1 deletions
diff --git a/lisp/longlines.el b/lisp/longlines.el
index 7f372725b0e..4ee85d646e5 100644
--- a/lisp/longlines.el
+++ b/lisp/longlines.el
@@ -6,7 +6,7 @@
;; Alex Schroeder <alex@gnu.org>
;; Chong Yidong <cyd@stupidchicken.com>
;; Maintainer: Chong Yidong <cyd@stupidchicken.com>
-;; Keywords: convenience
+;; Keywords: convenience, wp
;; This file is part of GNU Emacs.
@@ -119,6 +119,7 @@ are indicated with a symbol."
'longlines-window-change-function nil t))
(let ((buffer-undo-list t)
(inhibit-read-only t)
+ (after-change-functions nil)
(mod (buffer-modified-p)))
;; Turning off undo is OK since (spaces + newlines) is
;; conserved, except for a corner case in
@@ -142,6 +143,7 @@ are indicated with a symbol."
(if longlines-showing
(longlines-unshow-hard-newlines))
(let ((buffer-undo-list t)
+ (after-change-functions nil)
(inhibit-read-only t))
(save-restriction
(widen)