all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "Drew Adams" <drew.adams@oracle.com>
To: "'Lars Magne Ingebrigtsen'" <larsi@gnus.org>,
	"'Kazuo YAGI'" <kyagi@miraclelinux.com>
Cc: 434@debbugs.gnu.org
Subject: bug#434: Minor Enhancement: Toggle narrowing/widen a function regionand all
Date: Wed, 11 Apr 2012 10:55:07 -0700	[thread overview]
Message-ID: <4EB0FB40EA164DD3A15AEB7B1DFC0B5A@us.oracle.com> (raw)
In-Reply-To: <m3iph6o4b3.fsf@stories.gnus.org>

> 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.

This is the kind of thing that any user can do, if desired.  There are lots of
commands that some users might want to bind.  It is trivial for a user to do so.
No need for Emacs to do this by default.  One opinion.






  reply	other threads:[~2012-04-11 17:55 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-06-17  5:53 bug#434: Minor Enhancement: Toggle narrowing/widen a function region and all Kazuo YAGI
2012-04-11 12:12 ` Lars Magne Ingebrigtsen
2012-04-11 17:55   ` Drew Adams [this message]
2012-04-12  6:27     ` bug#434: Minor Enhancement: Toggle narrowing/widen a function regionand all Chong Yidong
2012-04-12 12:28     ` Lars Magne Ingebrigtsen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4EB0FB40EA164DD3A15AEB7B1DFC0B5A@us.oracle.com \
    --to=drew.adams@oracle.com \
    --cc=434@debbugs.gnu.org \
    --cc=kyagi@miraclelinux.com \
    --cc=larsi@gnus.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.