From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Jambunathan K Newsgroups: gmane.emacs.help Subject: Re: Use text in emacs buffer to populate command window Date: Tue, 19 Feb 2013 00:13:06 +0530 Message-ID: <871ucdlayt.fsf@gmail.com> References: <1361211922783-278645.post@n5.nabble.com> <87a9r1lb7k.fsf@gmail.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1361213021 1132 80.91.229.3 (18 Feb 2013 18:43:41 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 18 Feb 2013 18:43:41 +0000 (UTC) Cc: Help-gnu-emacs@gnu.org To: acomber Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Feb 18 19:44:03 2013 Return-path: Envelope-to: geh-help-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 1U7Vh1-0003xj-VE for geh-help-gnu-emacs@m.gmane.org; Mon, 18 Feb 2013 19:44:00 +0100 Original-Received: from localhost ([::1]:50244 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U7Vgi-0005AI-00 for geh-help-gnu-emacs@m.gmane.org; Mon, 18 Feb 2013 13:43:40 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:35148) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U7Vga-000563-Ok for Help-gnu-emacs@gnu.org; Mon, 18 Feb 2013 13:43:35 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1U7VgZ-0007jx-DW for Help-gnu-emacs@gnu.org; Mon, 18 Feb 2013 13:43:32 -0500 Original-Received: from mail-pb0-f53.google.com ([209.85.160.53]:44952) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U7VgZ-0007jX-7v for Help-gnu-emacs@gnu.org; Mon, 18 Feb 2013 13:43:31 -0500 Original-Received: by mail-pb0-f53.google.com with SMTP id un1so1783935pbc.12 for ; Mon, 18 Feb 2013 10:43:30 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:from:to:cc:subject:in-reply-to:references:user-agent :date:message-id:mime-version:content-type; bh=0vyVJU6oHABmYq0d9hhcOiVAt4GaBc50XboSW58zAiA=; b=qgIInOskCA/whqxt7UlMuOg5mgNwQQ0MHDzJrfgn6Cma7qDwLEoTuK/L4qRwnLcGX5 Sf2/t7o1lCYVWW9xQ4vqQlYT48MkahcbTd6ZSDHt6Dt3ZWcqH/CHK+ynrLOReaedS32L M083CWNnjWPSIHff3uNP3HgQMazbTYVDQAmM7rEEZeZmOXT0/8F94jjzWOMVUL7v10gb mhBTRtRRKsjgitROBPPZpo2RFHoubBIGv3kZzSmqcqnrxyfZgjsjSE8L0imOBdII6GJs Q6OJY8n/8SxiIVEdoJfF0agAcKdrL1bWv9aoOWpCauf3SjRtb+h/R3mMwbb/MXUKjQlI rLtg== X-Received: by 10.66.27.241 with SMTP id w17mr14694403pag.59.1361213010213; Mon, 18 Feb 2013 10:43:30 -0800 (PST) Original-Received: from debian-6.05 ([101.62.54.113]) by mx.google.com with ESMTPS id c8sm15209240pbq.10.2013.02.18.10.43.27 (version=TLSv1.1 cipher=RC4-SHA bits=128/128); Mon, 18 Feb 2013 10:43:29 -0800 (PST) In-Reply-To: <87a9r1lb7k.fsf@gmail.com> (Jambunathan K.'s message of "Tue, 19 Feb 2013 00:07:51 +0530") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [fuzzy] X-Received-From: 209.85.160.53 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:89151 Archived-At: Jambunathan K writes: > acomber writes: > >> eg I use m-x highlight-regexp I want to also grab the >> text under the cursor. How do I do that? > > Have you tried M-n when you see the prompt? > > This is some command most don't know about or don't use when > prompted. (I know I shouldn't be talking for others) When Emacs prompts > for something in the minibuffer, it almost always provides NOT A SINGLE > DEFAULT BUT MULTIPLE DEFAULTS. And you can run through the other > defaults using M-n. > > When I highlight, I almost always highlight the "thing" at point. > highlight-regepx provides (car regexp-history). This option baffles and > and I cannot simply relate to how this default could be a useful > default. I think I should go to bed now. My stream of consciousness is drifting and is now flowing in to the dreams :-). Read the above paragraph as below. When I highlight, I almost always highlight the "thing" at point. highlight-regepx provides (car regexp-history) as the first default. This choice of default baffles me. (I hate Isearch and stay away from regexp search as much as possible) and I cannot simply relate to how this default could be a useful default. > > I would like to change this behaviour. This is one of my pet peeves. > It is in my list of things to do wrt highlight-regexp. In Emacs 24.4, > there is a way to highlight symbol at point in a easy way. This most > likely suffices for highlighting the word at point also. May be I will > add word at point to the defaults. --