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: C-n and C-a Date: Sun, 1 Feb 2009 18:25:35 -0800 Message-ID: <003501c984dd$88342f50$0200a8c0@us.oracle.com> References: <87wscdfxfs.fsf@jurta.org><8763jx1fvb.fsf@justinbogner.com> <873aez5tp8.fsf@jurta.org><000601c983f4$387e7400$0200a8c0@us.oracle.com> <87ab95mwn5.fsf@jurta.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1233541563 3612 80.91.229.12 (2 Feb 2009 02:26:03 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 2 Feb 2009 02:26:03 +0000 (UTC) Cc: mail@justinbogner.com, emacs-devel@gnu.org To: "'Juri Linkov'" Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Feb 02 03:27:17 2009 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.50) id 1LToWj-0000mj-OZ for ged-emacs-devel@m.gmane.org; Mon, 02 Feb 2009 03:27:10 +0100 Original-Received: from localhost ([127.0.0.1]:60660 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LToVR-0001QQ-7H for ged-emacs-devel@m.gmane.org; Sun, 01 Feb 2009 21:25:49 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LToVM-0001QK-Je for emacs-devel@gnu.org; Sun, 01 Feb 2009 21:25:44 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LToVK-0001Q8-6A for emacs-devel@gnu.org; Sun, 01 Feb 2009 21:25:43 -0500 Original-Received: from [199.232.76.173] (port=47387 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LToVJ-0001Q5-W8 for emacs-devel@gnu.org; Sun, 01 Feb 2009 21:25:42 -0500 Original-Received: from rcsinet13.oracle.com ([148.87.113.125]:57068 helo=rgminet13.oracle.com) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1LToVJ-0006Fg-LN for emacs-devel@gnu.org; Sun, 01 Feb 2009 21:25:41 -0500 Original-Received: from acsinet13.oracle.com (acsinet13.oracle.com [141.146.126.235]) by rgminet13.oracle.com (Switch-3.3.1/Switch-3.3.1) with ESMTP id n122QWCe001590 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Mon, 2 Feb 2009 02:26:34 GMT Original-Received: from acsmt706.oracle.com (acsmt706.oracle.com [141.146.40.84]) by acsinet13.oracle.com (Switch-3.3.1/Switch-3.3.1) with ESMTP id n122PZYQ010932; Mon, 2 Feb 2009 02:25:36 GMT Original-Received: from dradamslap1 (/24.5.128.33) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Mon, 02 Feb 2009 02:25:34 +0000 X-Mailer: Microsoft Office Outlook 11 In-Reply-To: <87ab95mwn5.fsf@jurta.org> X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3350 Thread-Index: AcmE2uNr5IYiLe76SGyccmP1YRE+NQAATIoQ X-Source-IP: acsmt706.oracle.com [141.146.40.84] X-Auth-Type: Internal IP X-CT-RefId: str=0001.0A010206.498659A1.0018:SCFSTAT928724,ss=1,fgs=0 X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 1) 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:108552 Archived-At: > >> I propose `C-x n v' (similar to the related key `C-x C-n' plus `v' > >> that stands for "visual") or `C-x l v' (with the mnemonics of > >> "line visual"). > > > > 3. C-x n is the narrowing/widening prefix. This seems > > unrelated to narrowing. > > > > C-x n d narrow-to-defun > > C-x n n narrow-to-region > > C-x n p narrow-to-page > > C-x n w widen > > ... (future) > > Can you invent more narrowing commands? > If not, then why not to use the same prefix > for commands that would have some mnemonics > associated with it? Dunno, but sure, I imagine that other things could be narrowed (outlines? code trees? function/type/object definition parts?). Yes, we have `narrow-to-region' as a general workhorse, but one could conceive of a narrowed portion composed of multiple, non-contiguous portions of some document. Both the narrowing and the widening actions could conceivably be as complex and particular as you like. We could even provide for function binding to do that. And Leo already pointed out `org-narrow-to-tree' as another example. But I'm not familiar with any others, and I have no others in mind. If the question is whether there conceivably are such opportunities, I'd say yes. If the question is whether I have any in mind, the answer is no (but is that relevant?). > > 4. C-x l is count-lines-page. > > Do you often use count-lines-page? Do I? No. But there are a lot of things I don't use often that I'm sure you would not want to remove from Emacs. You really don't want that to be the criterion. ;-) I don't have an opinion about whether `count-lines-page' deserves a binding, or deserves this binding.