From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eric Abrahamsen Newsgroups: gmane.emacs.help Subject: Re: undo: changes outside of visible portion of buffer Date: Sat, 19 Apr 2014 16:56:39 +0800 Message-ID: <87y4z1zohk.fsf@ericabrahamsen.net> References: <87mwfh3fpd.fsf@ericabrahamsen.net> <83bnvxhftm.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1397897656 31213 80.91.229.3 (19 Apr 2014 08:54:16 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 19 Apr 2014 08:54:16 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Apr 19 10:54:09 2014 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1WbR2F-0006xf-Nq for geh-help-gnu-emacs@m.gmane.org; Sat, 19 Apr 2014 10:54:07 +0200 Original-Received: from localhost ([::1]:41350 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WbR2F-0003SY-DN for geh-help-gnu-emacs@m.gmane.org; Sat, 19 Apr 2014 04:54:07 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:43038) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WbR1x-0003K4-7f for help-gnu-emacs@gnu.org; Sat, 19 Apr 2014 04:53:54 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WbR1r-0001aP-SU for help-gnu-emacs@gnu.org; Sat, 19 Apr 2014 04:53:49 -0400 Original-Received: from plane.gmane.org ([80.91.229.3]:36743) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WbR1r-0001aF-L3 for help-gnu-emacs@gnu.org; Sat, 19 Apr 2014 04:53:43 -0400 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1WbR1q-0006Me-GU for help-gnu-emacs@gnu.org; Sat, 19 Apr 2014 10:53:42 +0200 Original-Received: from 114.248.9.30 ([114.248.9.30]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 19 Apr 2014 10:53:42 +0200 Original-Received: from eric by 114.248.9.30 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 19 Apr 2014 10:53:42 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 37 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: 114.248.9.30 User-Agent: Gnus/5.13001 (Ma Gnus v0.10) Emacs/24.3 (gnu/linux) Cancel-Lock: sha1:FuYSkrz0seRmbV9ibuI8TjEN5ec= X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 80.91.229.3 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:97223 Archived-At: Eli Zaretskii writes: >> From: Eric Abrahamsen >> 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