From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: storm@cua.dk (Kim F. Storm) Newsgroups: gmane.emacs.devel Subject: Re: Tiny change to find-tag-default. Date: Sat, 22 Jul 2006 00:21:35 +0200 Message-ID: References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1153520631 21793 80.91.229.2 (21 Jul 2006 22:23:51 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 21 Jul 2006 22:23:51 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Jul 22 00:23:47 2006 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1G43PG-0006Vo-TK for ged-emacs-devel@m.gmane.org; Sat, 22 Jul 2006 00:23:39 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1G43PG-0004Dz-Dl for ged-emacs-devel@m.gmane.org; Fri, 21 Jul 2006 18:23:38 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1G43P5-0004Dt-AL for emacs-devel@gnu.org; Fri, 21 Jul 2006 18:23:27 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1G43P3-0004Dh-Mx for emacs-devel@gnu.org; Fri, 21 Jul 2006 18:23:26 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1G43P3-0004De-Ie for emacs-devel@gnu.org; Fri, 21 Jul 2006 18:23:25 -0400 Original-Received: from [195.41.46.235] (helo=pfepa.post.tele.dk) by monty-python.gnu.org with esmtp (Exim 4.52) id 1G43PY-0001LK-Nn for emacs-devel@gnu.org; Fri, 21 Jul 2006 18:23:56 -0400 Original-Received: from kfs-l.imdomain.dk.cua.dk (0x503e2644.bynxx3.adsl-dhcp.tele.dk [80.62.38.68]) by pfepa.post.tele.dk (Postfix) with SMTP id C2875FAC036; Sat, 22 Jul 2006 00:23:16 +0200 (CEST) Original-To: "Drew Adams" In-Reply-To: (Drew Adams's message of "Fri, 21 Jul 2006 07:18:48 -0700") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux) 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:57453 Archived-At: "Drew Adams" writes: > Suppose I'm looking at a text, and want to grep for a phrase > (e.g. just two words) in that text, I highlight the text to search for > (set mark, go to end of text) and do M-x lgrep. ... > I don't think it makes sense to do this w/o transient-mark-mode, > but that's why we have temporary transient-mark-mode marking. > > That behavior ounds good to me. What about doing the same for `grep' and the > other similar commands? If the change is made to find-tag-default, the change will apply to grep and find-grep too. > > OTOH, if done in `find-tag-default', this would also affect things like > function-called-at-point and variable-at-point. I don't know if that would > be a good feature or not. At least it still gives predictable behavior (and in most cases it doesn't matter, as the find-tag-default is only used as a last resort fallback). -- Kim F. Storm http://www.cua.dk