all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Distinguish between regional undo and undo to the beginning in undo-equiv-table
@ 2021-03-02 20:40 Yuan Fu
  2021-03-02 23:50 ` Stefan Monnier
  0 siblings, 1 reply; 17+ messages in thread
From: Yuan Fu @ 2021-03-02 20:40 UTC (permalink / raw)
  To: emacs-devel

Currently if I undo to the beginning of the pending-undo-list, buffer-undo-list is mapped to t in undo-equiv-table. Meanwhile, if the undo is undo-in-region, the buffer-undo-list is also mapped to t in undo-equiv-table.

That means my package that constructs an undo tree from buffer-undo-list cannot distinguish the two and thus cannot work incorrectly. Is it ok to map one type of undo to something other than t? Maybe a symbol 'undo-in-region? Would that break anything? Or maybe we can create another hash table to mark undo-in-region undos.

I can explain how does my package use undo-equiv-table if needed.

Yuan


^ permalink raw reply	[flat|nested] 17+ messages in thread

end of thread, other threads:[~2021-03-11 22:41 UTC | newest]

Thread overview: 17+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-03-02 20:40 Distinguish between regional undo and undo to the beginning in undo-equiv-table Yuan Fu
2021-03-02 23:50 ` Stefan Monnier
2021-03-03 15:42   ` Yuan Fu
2021-03-03 16:50     ` Stefan Monnier
2021-03-03 20:33       ` Yuan Fu
2021-03-03 21:29         ` Stefan Monnier
2021-03-03 21:59           ` Yuan Fu
2021-03-03 22:08             ` Yuan Fu
2021-03-03 22:28             ` Stefan Monnier
2021-03-04 16:18               ` Yuan Fu
2021-03-05 15:57                 ` Stefan Monnier
2021-03-06 17:28                   ` Yuan Fu
2021-03-06 18:40                     ` Stefan Monnier
2021-03-11 17:50                       ` Yuan Fu
2021-03-11 17:54                         ` Stefan Monnier
2021-03-11 21:23                           ` Yuan Fu
2021-03-11 22:41                 ` Stefan Monnier

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.