unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Eric Abrahamsen <eric@ericabrahamsen.net>
To: help-gnu-emacs@gnu.org
Subject: Re: undo: changes outside of visible portion of buffer
Date: Sat, 19 Apr 2014 16:56:39 +0800	[thread overview]
Message-ID: <87y4z1zohk.fsf@ericabrahamsen.net> (raw)
In-Reply-To: 83bnvxhftm.fsf@gnu.org

Eli Zaretskii <eliz@gnu.org> writes:

>> From: Eric Abrahamsen <eric@ericabrahamsen.net>
>> Date: Sat, 19 Apr 2014 16:07:26 +0800
>> 
>> I'm trying to undo a fairly large chunk of text deletion, and emacs is
>> telling me:
>> 
>> undo-more: Changes to be undone are outside visible portion of buffer
>> 
>> I get this no matter where I scroll in the buffer -- it's only about
>> three screenfuls. I had undo-tree-mode active when I did the deletion,
>> but I get the same error whether it's active or no.
>> 
>> I'd like this text back, and I don't care if it's not visible! I can't
>> find any switches that might allow me to circumvent the error -- what
>> options do I have here?
>
> I think "visible" here means the narrowed region, not visible on
> display.  Do you have any kind of narrowing in that buffer?  If so,
> try "M-x widen RET".

After I sent the message I had the same idea, and tried "widen", but it
didn't do anything. It was an emacs-lisp buffer, other minor modes in
effect were Magit auto revert, Paredit, ElDoc, Auto Complete, and Undo
Tree. I don't ever use narrowing manually, and I don't think any of
those minor modes would have done it automatically, so I don't know what
was going on. I think you must be right, though, that the error was
referring to narrowing.

After looking at the undo code, I did eventually get the text back (or
most of it) from pending-undo-list, though.

Hmm, I couldn't retrieve the five or six most recent lines -- I wonder
if I accidentally narrowed something before I typed those...

E




  reply	other threads:[~2014-04-19  8:56 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-04-19  8:07 undo: changes outside of visible portion of buffer Eric Abrahamsen
2014-04-19  8:41 ` Eli Zaretskii
2014-04-19  8:56   ` Eric Abrahamsen [this message]
2014-04-19 11:35     ` Eli Zaretskii
2014-04-19 13:40       ` Eric Abrahamsen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87y4z1zohk.fsf@ericabrahamsen.net \
    --to=eric@ericabrahamsen.net \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).