[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Using undo on the tutorial.
From: |
Lute Kamstra |
Subject: |
Using undo on the tutorial. |
Date: |
Wed, 02 Feb 2005 13:11:08 +0100 |
User-agent: |
Gnus/5.11 (Gnus v5.11) Emacs/21.3.50 (gnu/linux) |
When a user reads the tutorial with C-h t and starts experimenting
with undo, one undo too many will remove the entire text of the
tutorial. What about the following patch to fix this?
Lute.
*** lisp/help-fns.el 7 Jan 2005 16:12:34 -0000 1.63
--- lisp/help-fns.el 2 Feb 2005 11:57:06 -0000
***************
*** 97,102 ****
--- 97,103 ----
(forward-line 1)
(newline (- n (/ n 2)))))
(goto-char (point-min))
+ (setq buffer-undo-list nil)
(set-buffer-modified-p nil))))
;;;###autoload
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Using undo on the tutorial.,
Lute Kamstra <=