From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Drew Adams" Newsgroups: gmane.emacs.devel Subject: RE: widen-one-level [was: Emacs's handling of line numbers] Date: Mon, 19 Apr 2010 13:22:15 -0700 Message-ID: References: <837ho6czb6.fsf@gnu.org><8339yucbsg.fsf@gnu.org><83wrw5bxkc.fsf@gnu.org><90D3EB66AA37491881EB2B26100925C2@us.oracle.com><7DAA22BBC7FD45D9996D3EE994E01C16@us.oracle.com> <34381.128.165.0.81.1271633447.squirrel@webmail.lanl.gov> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1271708559 19197 80.91.229.12 (19 Apr 2010 20:22:39 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 19 Apr 2010 20:22:39 +0000 (UTC) Cc: lekktu@gmail.com, eliz@gnu.org, monnier@iro.umontreal.ca, mark.lillibridge@hp.com, emacs-devel@gnu.org To: , Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Apr 19 22:22:37 2010 connect(): No such file or directory Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1O3xUK-0004IP-PK for ged-emacs-devel@m.gmane.org; Mon, 19 Apr 2010 22:22:37 +0200 Original-Received: from localhost ([127.0.0.1]:39296 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1O3xUJ-0006xz-TS for ged-emacs-devel@m.gmane.org; Mon, 19 Apr 2010 16:22:35 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1O3xUC-0006u6-R3 for emacs-devel@gnu.org; Mon, 19 Apr 2010 16:22:28 -0400 Original-Received: from [140.186.70.92] (port=55032 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1O3xUB-0006qY-0M for emacs-devel@gnu.org; Mon, 19 Apr 2010 16:22:27 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1O3xUA-0003uh-03 for emacs-devel@gnu.org; Mon, 19 Apr 2010 16:22:26 -0400 Original-Received: from rcsinet10.oracle.com ([148.87.113.121]:43765) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1O3xU7-0003to-J8; Mon, 19 Apr 2010 16:22:23 -0400 Original-Received: from acsinet15.oracle.com (acsinet15.oracle.com [141.146.126.227]) by rcsinet10.oracle.com (Switch-3.4.2/Switch-3.4.1) with ESMTP id o3JKMJsn002650 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Mon, 19 Apr 2010 20:22:20 GMT Original-Received: from acsmt353.oracle.com (acsmt353.oracle.com [141.146.40.153]) by acsinet15.oracle.com (Switch-3.4.2/Switch-3.4.1) with ESMTP id o3JK58gT013027; Mon, 19 Apr 2010 20:22:18 GMT Original-Received: from abhmt015.oracle.com by acsmt353.oracle.com with ESMTP id 188810691271708535; Mon, 19 Apr 2010 13:22:15 -0700 Original-Received: from dradamslap1 (/130.35.178.194) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Mon, 19 Apr 2010 13:22:14 -0700 X-Mailer: Microsoft Office Outlook 11 In-Reply-To: X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5579 Thread-Index: Acrf+n+nrYWmvTKqRVi2qpHPIj1ZSwAAc9kQ X-Auth-Type: Internal IP X-Source-IP: acsinet15.oracle.com [141.146.126.227] X-CT-RefId: str=0001.0A090201.4BCCBB7D.008D:SCFMA922111,ss=1,fgs=0 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:123891 Archived-At: > If we add a stack of buffer boundaries, we need an easy way to pop > out of all levels. The natural thing is that ESC ESC ESC > should do it. Try the code I pointed to: http://www.emacswiki.org/emacs/wide-n.el You have these ways to widen completely: 1. C-x n w (ordinary `widen') 2. C-u C-x n x (equivalent to `widen') 3. C-0 C-x n x (widen and empty the ring) #1 and #2 leave the ring as it was. #3 empties the ring. You can cycle among restrictions by repeating `x': `C-x n x x x x...'. You can use a numeric prefix arg (e.g. `C-3 C-x n x') to restore a particular restriction from the ring. A negative prefix arg does that too, but it also pops off all entries up to the target one. IOW, if you use a negative prefix arg, you get stack behavior: `C-x n n' pushes, and `C-- C-x n x' pops'.