From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Phil Sainty Newsgroups: gmane.emacs.bugs Subject: bug#17401: 24.4.50; Narrow to {region,page,defun} in an indirect clone buffer in the other window Date: Sun, 11 May 2014 01:06:25 +1200 Message-ID: <536E2451.3090808@orcon.net.nz> References: <53661891.40206@orcon.net.nz> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1399727313 10341 80.91.229.3 (10 May 2014 13:08:33 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 10 May 2014 13:08:33 +0000 (UTC) Cc: 17401@debbugs.gnu.org, contact@zaneashby.co.nz To: Lennart Borgman Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat May 10 15:08:26 2014 Return-path: Envelope-to: geb-bug-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 1Wj70r-0002Cu-Nw for geb-bug-gnu-emacs@m.gmane.org; Sat, 10 May 2014 15:08:25 +0200 Original-Received: from localhost ([::1]:57787 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wj70r-0000ah-9U for geb-bug-gnu-emacs@m.gmane.org; Sat, 10 May 2014 09:08:25 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:45680) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wj70f-0000aO-Lf for bug-gnu-emacs@gnu.org; Sat, 10 May 2014 09:08:21 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Wj70V-0003yp-Er for bug-gnu-emacs@gnu.org; Sat, 10 May 2014 09:08:13 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:40474) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wj70V-0003yl-Bz for bug-gnu-emacs@gnu.org; Sat, 10 May 2014 09:08:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1Wj70U-0007KT-K3 for bug-gnu-emacs@gnu.org; Sat, 10 May 2014 09:08:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Phil Sainty Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 10 May 2014 13:08:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 17401 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 17401-submit@debbugs.gnu.org id=B17401.139972723928118 (code B ref 17401); Sat, 10 May 2014 13:08:02 +0000 Original-Received: (at 17401) by debbugs.gnu.org; 10 May 2014 13:07:19 +0000 Original-Received: from localhost ([127.0.0.1]:57825 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Wj6zm-0007JO-TB for submit@debbugs.gnu.org; Sat, 10 May 2014 09:07:19 -0400 Original-Received: from nctlincom01.orcon.net.nz ([60.234.4.69]:51510) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Wj6zj-0007J7-9G for 17401@debbugs.gnu.org; Sat, 10 May 2014 09:07:16 -0400 Original-Received: from mx4.orcon.net.nz (mx4.orcon.net.nz [219.88.242.54]) by nctlincom01.orcon.net.nz (8.14.3/8.14.3/Debian-9.4) with ESMTP id s4ADCdgE005338; Sun, 11 May 2014 01:12:39 +1200 Original-Received: from 121-99-136-8.bng1.tvc.orcon.net.nz ([121.99.136.8] helo=[10.1.1.5]) by mx4.orcon.net.nz with esmtpa (Exim 4.69) (envelope-from ) id 1Wj6ze-0008G4-Tw; Sun, 11 May 2014 01:07:10 +1200 User-Agent: Mozilla/5.0 (Windows NT 5.1; rv:24.0) Gecko/20100101 Thunderbird/24.5.0 In-Reply-To: X-Bayes-Prob: 0.0194 (Score 0, tokens from: @@RPTN, default) X-CanIt-Geo: ip=121.99.136.8; country=NZ; latitude=-41.0000; longitude=174.0000; http://maps.google.com/maps?q=-41.0000,174.0000&z=6 X-CanItPRO-Stream: base:default X-Canit-Stats-ID: 06M0dcDBM - a31b9009bcb2 - 20140511 X-Scanned-By: CanIt (www . roaringpenguin . com) on 172.16.100.174 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:88862 Archived-At: On 8/05/2014 12:05, Lennart Borgman wrote: > Here is my current version (which I think perhaps Phil can > make something better of) I was initially against the idea of naming the indirect buffer according to the narrowed region, for the simple reason that the name stops making sense as soon as you widen the buffer. However, I expect that people are far less likely to widen these buffers (as opposed to simply killing them); and this naming approach would certainly be useful in the buffer list, so I think it's a good idea after all. I've also noticed there are some org-mode specific narrowing commands as well, which should probably be supported. I did consider whether we could support all existing narrowing commands automagically with some trickery, but I concluded that the only approach I could think of was too convoluted and brittle for its own good, so I think simply adding a new function alongside each existing one is still the most practical way to go. Do we want both a `narrow-to-*-indirect' and an `...-other-window' variant for each case? I think the latter works very nicely with the C-x 4 n prefix (as per the initial patch), but I can see the utility in providing both functions. -Phil