#5 ECB destroyes working of emacs-211-undo

closed
nobody
None
5
2004-08-12
2001-12-21
No

When ECB is switched on, the function tree-buffer-do-mouse-
tracking() sets variable `track-mouse' to t.
When that's the case
the variable 'last-command' gets set to 'ignore so undo() will
always start fresh, instead of behaving as called
repeatedly.

Fixed for me as shown below.

Geert
Ribbers

(defadvice tree-buffer-do-mouse-tracking (around fix-
undo-problems activate)
"This function sets `track-mouse' to t
which causes *undo* to fail, fixed by resetting track-mouse to nil if
last-command 'undo.
(let*
(
(l-last last-command)
)
ad-do-
it
(when (equal l-last 'undo) (setq track-mouse nil))
)
)

Discussion

  • Klaus Berndl

    Klaus Berndl - 2004-08-12

    Logged In: YES
    user_id=114007

    Is only used with GNU Emacs 20.X and this Emacs is quite
    outdated.

     
  • Klaus Berndl

    Klaus Berndl - 2004-08-12
    • status: open --> closed
     

Log in to post a comment.