emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* grouped undo
@ 2009-02-11  7:01 Nicholas Sandow
  2009-02-11 10:34 ` Carsten Dominik
  0 siblings, 1 reply; 2+ messages in thread
From: Nicholas Sandow @ 2009-02-11  7:01 UTC (permalink / raw)
  To: emacs-orgmode

Hi,

I've noticed that in org-mode, undo undoes one character at a time.

Normally in Emacs, undo is done in chunks.  To quote from the manual:

> Usually each editing command makes a separate entry in the undo  
> records, but some commands such as `query-replace' divide their  
> changes into multiple entries for flexibility in undoing.   
> Meanwhile, self-inserting characters are usually grouped to make  
> undoing less tedious.

So to undo a sentence that you've typed in, only a few "undos" are  
required.  In org-mode, though, it seems self-inserting characters  
aren't grouped, and my undos are thus more tedious.

Is this a feature or a bug?  I like the grouped undo feature.

In outline mode, the undo is still grouped, so it seems this is an  
undo-specific thing.  I am running version 6.22b

Thanks,
Nick

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

* Re: grouped undo
  2009-02-11  7:01 grouped undo Nicholas Sandow
@ 2009-02-11 10:34 ` Carsten Dominik
  0 siblings, 0 replies; 2+ messages in thread
From: Carsten Dominik @ 2009-02-11 10:34 UTC (permalink / raw)
  To: Nicholas Sandow; +Cc: emacs-orgmode


On Feb 11, 2009, at 8:01 AM, Nicholas Sandow wrote:

> Hi,
>
> I've noticed that in org-mode, undo undoes one character at a time.
>
> Normally in Emacs, undo is done in chunks.  To quote from the manual:
>
>> Usually each editing command makes a separate entry in the undo  
>> records, but some commands such as `query-replace' divide their  
>> changes into multiple entries for flexibility in undoing.   
>> Meanwhile, self-inserting characters are usually grouped to make  
>> undoing less tedious.
>
> So to undo a sentence that you've typed in, only a few "undos" are  
> required.  In org-mode, though, it seems self-inserting characters  
> aren't grouped, and my undos are thus more tedious.
>
> Is this a feature or a bug?  I like the grouped undo feature.

Hi Nicolas,

good observation.

The reason for this is that Org binds all characters
to a function different from self-insert-command, which
the the one arranging for the special undo behavior.

Maybe it is possible to fix this, by adding a property
to the command or so, but I am not aware of a solution.

- Carsten

>
>
> In outline mode, the undo is still grouped, so it seems this is an  
> undo-specific thing.  I am running version 6.22b
>
> Thanks,
> Nick
>
>
> _______________________________________________
> Emacs-orgmode mailing list
> Remember: use `Reply All' to send replies to the list.
> Emacs-orgmode@gnu.org
> http://lists.gnu.org/mailman/listinfo/emacs-orgmode

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

end of thread, other threads:[~2009-02-11 10:34 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-02-11  7:01 grouped undo Nicholas Sandow
2009-02-11 10:34 ` Carsten Dominik

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

	https://git.savannah.gnu.org/cgit/emacs/org-mode.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).