[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Strange behaviour of the undo function
From: |
Juri Linkov |
Subject: |
Re: Strange behaviour of the undo function |
Date: |
Tue, 06 Dec 2005 03:59:09 +0200 |
User-agent: |
Gnus/5.110004 (No Gnus v0.4) Emacs/22.0.50 (gnu/linux) |
> The following seems to be a bug:
>
> Suppose the frame is splitted in say subwindow A and subwindow
> B. Select some text in A, yank it with mouse-2 somewhere in B, and
> then choose undo from the toolbar. The undo is done, but the point in
> B jumps to the position where the selection was made.
>
> Emacs-implementation used: Aquamacs Emacs for OSX, but with the "-Q"
> option so that all Aquamacs specific customizations don't apply.
While looking at this bug report, I found another bug. The menu and
toolbar item "undo" doesn't become disabled when the pending undo
list is empty. The following patch fixes this:
Index: lisp/menu-bar.el
===================================================================
RCS file: /cvsroot/emacs/emacs/lisp/menu-bar.el,v
retrieving revision 1.282
diff -c -r1.282 menu-bar.el
*** lisp/menu-bar.el 19 Nov 2005 11:23:04 -0000 1.282
--- lisp/menu-bar.el 6 Dec 2005 03:36:08 -0000
***************
*** 481,487 ****
:enable (and (not buffer-read-only)
(not (eq t buffer-undo-list))
(if (eq last-command 'undo)
! pending-undo-list
(consp buffer-undo-list)))
:help "Undo last operation"))
--- 481,487 ----
:enable (and (not buffer-read-only)
(not (eq t buffer-undo-list))
(if (eq last-command 'undo)
! (listp pending-undo-list)
(consp buffer-undo-list)))
:help "Undo last operation"))
--
Juri Linkov
http://www.jurta.org/emacs/
- Re: Strange behaviour of the undo function,
Juri Linkov <=