[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] Changes to emacs/lisp/longlines.el
From: |
Chong Yidong |
Subject: |
[Emacs-diffs] Changes to emacs/lisp/longlines.el |
Date: |
Tue, 25 Oct 2005 19:24:50 -0400 |
Index: emacs/lisp/longlines.el
diff -c emacs/lisp/longlines.el:1.12 emacs/lisp/longlines.el:1.13
*** emacs/lisp/longlines.el:1.12 Sun Oct 16 23:46:15 2005
--- emacs/lisp/longlines.el Tue Oct 25 23:24:47 2005
***************
*** 123,129 ****
;; Turning off undo is OK since (spaces + newlines) is
;; conserved, except for a corner case in
;; longlines-wrap-lines that we'll never encounter from here
! (longlines-decode-region (point-min) (point-max))
(longlines-wrap-region (point-min) (point-max))
(set-buffer-modified-p mod))
(when (and longlines-show-hard-newlines
--- 123,131 ----
;; Turning off undo is OK since (spaces + newlines) is
;; conserved, except for a corner case in
;; longlines-wrap-lines that we'll never encounter from here
! (save-restriction
! (widen)
! (longlines-decode-region (point-min) (point-max)))
(longlines-wrap-region (point-min) (point-max))
(set-buffer-modified-p mod))
(when (and longlines-show-hard-newlines
***************
*** 141,147 ****
(longlines-unshow-hard-newlines))
(let ((buffer-undo-list t)
(inhibit-read-only t))
! (longlines-encode-region (point-min) (point-max)))
(remove-hook 'change-major-mode-hook 'longlines-mode-off t)
(remove-hook 'before-kill-functions 'longlines-encode-region t)
(remove-hook 'after-change-functions 'longlines-after-change-function t)
--- 143,151 ----
(longlines-unshow-hard-newlines))
(let ((buffer-undo-list t)
(inhibit-read-only t))
! (save-restriction
! (widen)
! (longlines-encode-region (point-min) (point-max))))
(remove-hook 'change-major-mode-hook 'longlines-mode-off t)
(remove-hook 'before-kill-functions 'longlines-encode-region t)
(remove-hook 'after-change-functions 'longlines-after-change-function t)