unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* Advice with undo config
@ 2018-03-21 10:48 Nick Helm
  2018-03-22 13:44 ` Stefan Monnier
  0 siblings, 1 reply; 6+ messages in thread
From: Nick Helm @ 2018-03-21 10:48 UTC (permalink / raw)
  To: help-gnu-emacs

Hi there,

I keep bumping into the default undo limits and I'm trying to configure
my Emacs for greater undo capacity. If I add something like this to my
init:

  (setq undo-limit        (* 16 1024 1024))
  (setq undo-strong-limit (* 24 1024 1024))
  (setq undo-outer-limit (* 240 1024 1024))

will there be any side-effects I should be aware of? Are these numbers
reasonable? I've tested this setup with some of the files that normally
give me problems and I can undo until the cows come home without any
obvious issues.

Many thanks!
Nick





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

* Re: Advice with undo config
       [not found] <mailman.11019.1521629334.27995.help-gnu-emacs@gnu.org>
@ 2018-03-21 11:04 ` Emanuel Berg
  2018-03-21 20:27   ` Nick Helm
       [not found]   ` <mailman.11055.1521664092.27995.help-gnu-emacs@gnu.org>
  0 siblings, 2 replies; 6+ messages in thread
From: Emanuel Berg @ 2018-03-21 11:04 UTC (permalink / raw)
  To: help-gnu-emacs

Nick Helm wrote:

> (setq undo-limit        (* 16 1024 1024)) [...]
>
> will there be any side-effects I should be
> aware of? Are these numbers reasonable?

There should not be any side-effects save for
the increased storage, which is what you want,
but is it reasonable to have >16 MB of undo
data? A better question is probably "is it
reasonable to do, and then undo, that much"?

-- 
underground experts united
http://user.it.uu.se/~embe8573


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

* Re: Advice with undo config
  2018-03-21 11:04 ` Emanuel Berg
@ 2018-03-21 20:27   ` Nick Helm
       [not found]   ` <mailman.11055.1521664092.27995.help-gnu-emacs@gnu.org>
  1 sibling, 0 replies; 6+ messages in thread
From: Nick Helm @ 2018-03-21 20:27 UTC (permalink / raw)
  To: help-gnu-emacs

On Wed, 21 Mar 2018 at 12:04:27 +0100, Emanuel Berg wrote:

> Nick Helm wrote:
>
>> (setq undo-limit        (* 16 1024 1024)) [...]
>>
>> will there be any side-effects I should be
>> aware of? Are these numbers reasonable?
>
> There should not be any side-effects save for
> the increased storage, which is what you want,

Thanks. 

> but is it reasonable to have >16 MB of undo
> data? A better question is probably "is it
> reasonable to do, and then undo, that much"?

In an ideal world, wouldn't undo be unlimited?

Some commands can bump into the default undo limits pretty
quickly – org-table-delete-column is a good example. In those
situations, the count of "do" is 2 and you've already hit the
limit. Isn't it reasonable to expect a bit more than that?





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

* Re: Advice with undo config
       [not found]   ` <mailman.11055.1521664092.27995.help-gnu-emacs@gnu.org>
@ 2018-03-21 21:28     ` Emanuel Berg
  0 siblings, 0 replies; 6+ messages in thread
From: Emanuel Berg @ 2018-03-21 21:28 UTC (permalink / raw)
  To: help-gnu-emacs

Nick Helm wrote:

>> but is it reasonable to have >16 MB of undo
>> data? A better question is probably "is it
>> reasonable to do, and then undo, that much"?
>
> In an ideal world, wouldn't undo
> be unlimited?

I don't know, but you can have virtually
unlimited undo in practice because what is
stored is just text, and on today's HDs which
can save tons of multimedia, what in past days
would amount to huge archives, there is
certainly room for all the undos anyone would
ever care for.

> Some commands can bump into the default undo
> limits pretty quickly –
> org-table-delete-column is a good example.
> In those situations, the count of "do" is 2
> and you've already hit the limit. Isn't it
> reasonable to expect a bit more than that?

Well, if one has to pile up those kind of
quantities of text data perhaps another column
is called for instead? :)

-- 
underground experts united
http://user.it.uu.se/~embe8573


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

* Re: Advice with undo config
  2018-03-21 10:48 Advice with undo config Nick Helm
@ 2018-03-22 13:44 ` Stefan Monnier
  2018-03-24  0:31   ` Nick Helm
  0 siblings, 1 reply; 6+ messages in thread
From: Stefan Monnier @ 2018-03-22 13:44 UTC (permalink / raw)
  To: help-gnu-emacs

> I keep bumping into the default undo limits

Sounds like you're hitting a bug, then.  I suggest you M-x report-emacs-bug.

> Some commands can bump into the default undo limits pretty
> quickly – org-table-delete-column is a good example.  In those
> situations, the count of "do" is 2 and you've already hit the
> limit.  Isn't it reasonable to expect a bit more than that?

Yes it is, and you shouldn't need to manually change your config
for that.


        Stefan




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

* Re: Advice with undo config
  2018-03-22 13:44 ` Stefan Monnier
@ 2018-03-24  0:31   ` Nick Helm
  0 siblings, 0 replies; 6+ messages in thread
From: Nick Helm @ 2018-03-24  0:31 UTC (permalink / raw)
  To: Stefan Monnier; +Cc: help-gnu-emacs

On Thu, 22 Mar 2018 at 09:44:50 -0400, Stefan Monnier wrote:

>> I keep bumping into the default undo limits
>
> Sounds like you're hitting a bug, then. I suggest you 
> M-x report-emacs-bug.
>
>> Some commands can bump into the default undo limits pretty
>> quickly – org-table-delete-column is a good example.  In those
>> situations, the count of "do" is 2 and you've already hit the
>> limit.  Isn't it reasonable to expect a bit more than that?
>
> Yes it is, and you shouldn't need to manually change your config for
> that.

I never thought about it like that, but you're right. I'll come up with
a good example and open a bug.

Thanks.



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

end of thread, other threads:[~2018-03-24  0:31 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-03-21 10:48 Advice with undo config Nick Helm
2018-03-22 13:44 ` Stefan Monnier
2018-03-24  0:31   ` Nick Helm
     [not found] <mailman.11019.1521629334.27995.help-gnu-emacs@gnu.org>
2018-03-21 11:04 ` Emanuel Berg
2018-03-21 20:27   ` Nick Helm
     [not found]   ` <mailman.11055.1521664092.27995.help-gnu-emacs@gnu.org>
2018-03-21 21:28     ` Emanuel Berg

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).