From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Lars Magne Ingebrigtsen Newsgroups: gmane.emacs.bugs Subject: bug#434: Minor Enhancement: Toggle narrowing/widen a function region and all Date: Wed, 11 Apr 2012 14:12:32 +0200 Message-ID: References: <4857514E.60204@miraclelinux.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1334146397 16162 80.91.229.3 (11 Apr 2012 12:13:17 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 11 Apr 2012 12:13:17 +0000 (UTC) Cc: 434@debbugs.gnu.org To: Kazuo YAGI Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Apr 11 14:13:16 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 1SHwQE-0007a5-NU for geb-bug-gnu-emacs@m.gmane.org; Wed, 11 Apr 2012 14:13:14 +0200 Original-Received: from localhost ([::1]:43989 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SHwQD-0008B1-S9 for geb-bug-gnu-emacs@m.gmane.org; Wed, 11 Apr 2012 08:13:13 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:57959) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SHwQ3-00084C-W8 for bug-gnu-emacs@gnu.org; Wed, 11 Apr 2012 08:13:12 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SHwPw-0008Dz-3l for bug-gnu-emacs@gnu.org; Wed, 11 Apr 2012 08:13:03 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:54038) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SHwPv-0008Do-Vv for bug-gnu-emacs@gnu.org; Wed, 11 Apr 2012 08:12:56 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1SHwR0-0007dU-6M for bug-gnu-emacs@gnu.org; Wed, 11 Apr 2012 08:14:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Lars Magne Ingebrigtsen Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 11 Apr 2012 12:14:02 +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.133414643529332 (code B ref 434); Wed, 11 Apr 2012 12:14:02 +0000 Original-Received: (at 434) by debbugs.gnu.org; 11 Apr 2012 12:13:55 +0000 Original-Received: from localhost ([127.0.0.1]:50576 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SHwQq-0007cz-PF for submit@debbugs.gnu.org; Wed, 11 Apr 2012 08:13:54 -0400 Original-Received: from hermes.netfonds.no ([80.91.224.195]:55307) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SHwQn-0007cp-MZ for 434@debbugs.gnu.org; Wed, 11 Apr 2012 08:13:51 -0400 Original-Received: from cm-84.215.51.58.getinternet.no ([84.215.51.58] helo=stories.gnus.org) by hermes.netfonds.no with esmtpsa (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.72) (envelope-from ) id 1SHwPY-0001lk-MG; Wed, 11 Apr 2012 14:12:32 +0200 X-Now-Playing: Zazou, Bikaye & Cy1's _Noir et Blanc_: "Mangungu" In-Reply-To: <4857514E.60204@miraclelinux.com> (Kazuo YAGI's message of "Tue, 17 Jun 2008 14:53:18 +0900") User-Agent: Gnus/5.130004 (Ma Gnus v0.4) Emacs/24.1.50 (gnu/linux) X-MailScanner-ID: 1SHwPY-0001lk-MG MailScanner-NULL-Check: 1334751152.89085@9zUCzMWVZ3NnidFuf7sqfg 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:58786 Archived-At: Kazuo YAGI writes: > This is to let you toggle narrowing/widen a function region and all > when editing a source code. > > This works with C-s, M-%. M-x replace-string, M-x occur, etc ... > > I think it make us easy to search/replace a word within a function. > And it is for not to jump over a function if you want to edit it only. I think it's an interesting idea. 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? -- (domestic pets only, the antidote for overdose, milk.) bloggy blog http://lars.ingebrigtsen.no/