From: "Richard M. Stallman" <rms@gnu.org>
Cc: emacs-devel@gnu.org
Subject: Re: "No further undo information" clutters *Messages* buffer
Date: Sat, 29 Oct 2005 16:33:34 -0400 [thread overview]
Message-ID: <E1EVxOQ-0003Xd-6D@fencepost.gnu.org> (raw)
In-Reply-To: <43633FD7.5020408@gmx.at> (message from martin rudalics on Sat, 29 Oct 2005 11:24:39 +0200)
Does this patch solve the problem?
*** simple.el 24 Oct 2005 18:07:24 -0400 1.758
--- simple.el 29 Oct 2005 10:34:00 -0400
***************
*** 1344,1350 ****
;; and will get another error. To begin undoing the undos,
;; you must type some other command.
(let ((modified (buffer-modified-p))
! (recent-save (recent-auto-save-p)))
;; If we get an error in undo-start,
;; the next command should not be a "consecutive undo".
;; So set `this-command' to something other than `undo'.
--- 1344,1351 ----
;; and will get another error. To begin undoing the undos,
;; you must type some other command.
(let ((modified (buffer-modified-p))
! (recent-save (recent-auto-save-p))
! message)
;; If we get an error in undo-start,
;; the next command should not be a "consecutive undo".
;; So set `this-command' to something other than `undo'.
***************
*** 1373,1381 ****
;; so, ask the user whether she wants to skip the redo/undo pair.
(let ((equiv (gethash pending-undo-list undo-equiv-table)))
(or (eq (selected-window) (minibuffer-window))
! (message (if undo-in-region
! (if equiv "Redo in region!" "Undo in region!")
! (if equiv "Redo!" "Undo!"))))
(when (and (consp equiv) undo-no-redo)
;; The equiv entry might point to another redo record if we have done
;; undo-redo-undo-redo-... so skip to the very last equiv.
--- 1374,1382 ----
;; so, ask the user whether she wants to skip the redo/undo pair.
(let ((equiv (gethash pending-undo-list undo-equiv-table)))
(or (eq (selected-window) (minibuffer-window))
! (setq message (if undo-in-region
! (if equiv "Redo in region!" "Undo in region!")
! (if equiv "Redo!" "Undo!"))))
(when (and (consp equiv) undo-no-redo)
;; The equiv entry might point to another redo record if we have done
;; undo-redo-undo-redo-... so skip to the very last equiv.
***************
*** 1417,1423 ****
;; Record what the current undo list says,
;; so the next command can tell if the buffer was modified in between.
(and modified (not (buffer-modified-p))
! (delete-auto-save-file-if-necessary recent-save))))
(defun buffer-disable-undo (&optional buffer)
"Make BUFFER stop keeping undo information.
--- 1418,1427 ----
;; Record what the current undo list says,
;; so the next command can tell if the buffer was modified in between.
(and modified (not (buffer-modified-p))
! (delete-auto-save-file-if-necessary recent-save))
! ;; Display a message announcing success.
! (if message
! (message message))))
(defun buffer-disable-undo (&optional buffer)
"Make BUFFER stop keeping undo information.
next prev parent reply other threads:[~2005-10-29 20:33 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-10-24 8:21 "No further undo information" clutters *Messages* buffer martin rudalics
2005-10-25 15:59 ` Richard M. Stallman
2005-10-26 12:07 ` martin rudalics
2005-10-26 16:11 ` Kevin Rodgers
2005-10-27 1:30 ` Richard M. Stallman
2005-10-29 9:24 ` martin rudalics
2005-10-29 20:33 ` Richard M. Stallman [this message]
2005-11-01 9:42 ` martin rudalics
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=E1EVxOQ-0003Xd-6D@fencepost.gnu.org \
--to=rms@gnu.org \
--cc=emacs-devel@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.