unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* Undo boundaries inside macros?
@ 2018-03-22 15:36 Robert Pluim
  2018-03-22 16:47 ` Andreas Schwab
  2018-03-22 19:22 ` Stefan Monnier
  0 siblings, 2 replies; 3+ messages in thread
From: Robert Pluim @ 2018-03-22 15:36 UTC (permalink / raw)
  To: emacs-devel


<f3> 1 2 <f4> <f4> C-/ ; this undoes all the effects of the macro

<f3> 1 RET 2 <f4> <f4> C-/ ; this only undoes the '2'

I was expecting undo to be an all-or-nothing affair, but adding lines
introduces an undo boundary inside the macro. It matches what happens
when you type '1 RET 2' interactively, but should it?

Robert



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

* Re: Undo boundaries inside macros?
  2018-03-22 15:36 Undo boundaries inside macros? Robert Pluim
@ 2018-03-22 16:47 ` Andreas Schwab
  2018-03-22 19:22 ` Stefan Monnier
  1 sibling, 0 replies; 3+ messages in thread
From: Andreas Schwab @ 2018-03-22 16:47 UTC (permalink / raw)
  To: emacs-devel

On Mär 22 2018, Robert Pluim <rpluim@gmail.com> wrote:

> <f3> 1 2 <f4> <f4> C-/ ; this undoes all the effects of the macro
>
> <f3> 1 RET 2 <f4> <f4> C-/ ; this only undoes the '2'
>
> I was expecting undo to be an all-or-nothing affair, but adding lines
> introduces an undo boundary inside the macro. It matches what happens
> when you type '1 RET 2' interactively, but should it?

I think it should, as kbd macros are really more or less equivalent to
typing interactively.

Andreas.

-- 
Andreas Schwab, SUSE Labs, schwab@suse.de
GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE  1748 E4D4 88E3 0EEA B9D7
"And now for something completely different."



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

* Re: Undo boundaries inside macros?
  2018-03-22 15:36 Undo boundaries inside macros? Robert Pluim
  2018-03-22 16:47 ` Andreas Schwab
@ 2018-03-22 19:22 ` Stefan Monnier
  1 sibling, 0 replies; 3+ messages in thread
From: Stefan Monnier @ 2018-03-22 19:22 UTC (permalink / raw)
  To: emacs-devel

> when you type '1 RET 2' interactively, but should it?

Sometimes it would be better if it didn't but sometimes it's better if
it does.


        Stefan




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

end of thread, other threads:[~2018-03-22 19:22 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-03-22 15:36 Undo boundaries inside macros? Robert Pluim
2018-03-22 16:47 ` Andreas Schwab
2018-03-22 19:22 ` Stefan Monnier

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).