From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Chong Yidong Newsgroups: gmane.emacs.bugs Subject: bug#434: Minor Enhancement: Toggle narrowing/widen a function regionand all Date: Thu, 12 Apr 2012 14:27:09 +0800 Message-ID: <87ehrtwjlu.fsf@gnu.org> References: <4857514E.60204@miraclelinux.com> <4EB0FB40EA164DD3A15AEB7B1DFC0B5A@us.oracle.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1334212085 5688 80.91.229.3 (12 Apr 2012 06:28:05 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 12 Apr 2012 06:28:05 +0000 (UTC) Cc: 434@debbugs.gnu.org, 'Lars Magne Ingebrigtsen' , 'Kazuo YAGI' To: "Drew Adams" Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Apr 12 08:28:04 2012 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 1SIDVk-0002n2-EL for geb-bug-gnu-emacs@m.gmane.org; Thu, 12 Apr 2012 08:28:04 +0200 Original-Received: from localhost ([::1]:53310 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SIDVj-0007Ss-Oe for geb-bug-gnu-emacs@m.gmane.org; Thu, 12 Apr 2012 02:28:03 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:41627) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SIDVc-0007SS-MK for bug-gnu-emacs@gnu.org; Thu, 12 Apr 2012 02:28:02 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SIDVX-0004G6-W9 for bug-gnu-emacs@gnu.org; Thu, 12 Apr 2012 02:27:56 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:56606) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SIDVX-0004G2-Sp for bug-gnu-emacs@gnu.org; Thu, 12 Apr 2012 02:27:51 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1SIDWf-0008Dk-PV for bug-gnu-emacs@gnu.org; Thu, 12 Apr 2012 02:29:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Chong Yidong Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 12 Apr 2012 06:29:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 434 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 434-submit@debbugs.gnu.org id=B434.133421211931572 (code B ref 434); Thu, 12 Apr 2012 06:29:01 +0000 Original-Received: (at 434) by debbugs.gnu.org; 12 Apr 2012 06:28:39 +0000 Original-Received: from localhost ([127.0.0.1]:53144 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SIDWE-0008D7-H3 for submit@debbugs.gnu.org; Thu, 12 Apr 2012 02:28:38 -0400 Original-Received: from fencepost.gnu.org ([208.118.235.10]:35558) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SIDWC-0008Cz-0Y for 434@debbugs.gnu.org; Thu, 12 Apr 2012 02:28:32 -0400 Original-Received: from [155.69.18.84] (port=53990 helo=ulysses) by fencepost.gnu.org with esmtpsa (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1SIDUz-0006Hy-63; Thu, 12 Apr 2012 02:27:17 -0400 In-Reply-To: <4EB0FB40EA164DD3A15AEB7B1DFC0B5A@us.oracle.com> (Drew Adams's message of "Wed, 11 Apr 2012 10:55:07 -0700") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.95 (gnu/linux) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) 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:58869 Archived-At: "Drew Adams" writes: >> Narrowing to the current function to search around in it (especially >> when refactoring) is something that I often do "manually", so having >> a handy keystroke for it would be nice, I think. >> >> `C-x n f', for instance, to toggle narrowing to the current function. >> >> Opinions? > > YAGNI. `narrow-to-defun' is `C-x n d'. We don't need a toggle for > each narrowing command. And certainly not another key binding. Agreed.