From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Nikolaj Schumacher Newsgroups: gmane.emacs.help Subject: Re: How do I highlight word at point? Date: Sun, 19 Oct 2008 18:19:56 +0200 Message-ID: References: <1224382569.209484@nntp.acecape.com> <87vdvpmgn2.fsf@kobe.laptop> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1224491119 8299 80.91.229.12 (20 Oct 2008 08:25:19 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 20 Oct 2008 08:25:19 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: Francis Moreau Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Oct 20 10:26:14 2008 connect(): Connection refused Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1Krb3V-0001Wd-4p for geh-help-gnu-emacs@m.gmane.org; Sun, 19 Oct 2008 18:23:01 +0200 Original-Received: from localhost ([127.0.0.1]:49401 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Krb2Q-0008Ec-1M for geh-help-gnu-emacs@m.gmane.org; Sun, 19 Oct 2008 12:21:54 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Krb0Y-0007pU-TR for help-gnu-emacs@gnu.org; Sun, 19 Oct 2008 12:19:58 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Krb0Y-0007pA-B0 for help-gnu-emacs@gnu.org; Sun, 19 Oct 2008 12:19:58 -0400 Original-Received: from [199.232.76.173] (port=48732 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Krb0Y-0007p5-0y for help-gnu-emacs@gnu.org; Sun, 19 Oct 2008 12:19:58 -0400 Original-Received: from dd18200.kasserver.com ([85.13.138.168]:47203) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Krb0X-0004rT-Ov for help-gnu-emacs@gnu.org; Sun, 19 Oct 2008 12:19:57 -0400 Original-Received: from thursday (BAH0e26.bah.pppool.de [77.135.14.38]) by dd18200.kasserver.com (Postfix) with ESMTP id 2DADC18C2BF7A; Sun, 19 Oct 2008 18:20:01 +0200 (CEST) In-Reply-To: (Francis Moreau's message of "Sun\, 19 Oct 2008 14\:09\:09 +0200") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.3 (darwin) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:58935 Archived-At: Francis Moreau wrote: > Giorgos Keramidas writes: > >> Please include the full question in the body of the post too in future >> posts. It makes things much easier to read in some environments :-) > > eh ? what kind of environment are you using ? > > It looks like it's high time to update ;) In Gnus you can just step through unread articles with SPC. Normally the subject is pretty unimportant, so it doubles the "work", if you have to look up and read the subject. Especially when >>> The title pretty much said it. :) has the same amount of characters as the question. So it didn't save any time or space to not put the question there. >> I think what you asked may be done by typing `M-b M-@'. >> > > M-b is bind to 'backward-word'. > > Which function 'M-b M-@' is bind in your "special" environment ? In the /standard/ environment this does `backward-word' then `mark-word', which puts the region around the current word. But maybe the OP wanted to highlight occurrences of the word, not move the region. I've written code for that here: http://nschum.de/src/emacs/highlight-symbol/ regards, Nikolaj Schumacher