From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Giorgos Keramidas Newsgroups: gmane.emacs.help Subject: Re: How do I highlight word at point? Date: Sun, 19 Oct 2008 18:14:00 +0300 Organization: SunSITE.dk - Supporting Open source Message-ID: <87skqsmxc7.fsf@kobe.laptop> 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 1224437987 24825 80.91.229.12 (19 Oct 2008 17:39:47 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 19 Oct 2008 17:39:47 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Oct 19 19:37:25 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 1KraPb-0000Gn-IA for geh-help-gnu-emacs@m.gmane.org; Sun, 19 Oct 2008 17:41:47 +0200 Original-Received: from localhost ([127.0.0.1]:41250 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KraOW-0003Xc-GN for geh-help-gnu-emacs@m.gmane.org; Sun, 19 Oct 2008 11:40:40 -0400 Original-Path: news.stanford.edu!headwall.stanford.edu!newshub.sdsu.edu!newsfeed.freenet.de!news-out1.kabelfoon.nl!newsfeed.kabelfoon.nl!bandi.nntp.kabelfoon.nl!news.banetele.no!dotsrc.org!filter.dotsrc.org!news.dotsrc.org!not-for-mail Original-Newsgroups: gnu.emacs.help User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (berkeley-unix) Cancel-Lock: sha1:uZAQVaUJhbXfJpQHSWxMdG3UJGg= Original-Lines: 39 Original-NNTP-Posting-Host: 77.49.146.226 Original-X-Trace: news.sunsite.dk DXC=^=kEDiFBIVi`; IS0i7S8TaYSB=nbEKnkkf2; 89Q0P2=bL^MjgbH?lJH1Tkjle3\6:Hb8U:h6LBJdkXg5Zi Original-X-Complaints-To: staff@sunsite.dk Original-Xref: news.stanford.edu gnu.emacs.help:163587 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:58926 Archived-At: On Sun, 19 Oct 2008 14:09:09 +0200, 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 ;) It should be easy to find out: Gnus. It's shown in the User-Agent header of my posts, and I'm actually quite fond of it. I wasn't referring to *my* environment, which is mostly `ok' for all my email and news needs. There are news readers that go out of their way to _hide_ the header though. It's a very common form of courtesy to spare the reader the trouble of going back and forth, by typing fully legible, complete sentences in the body of email & news messages. >> 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 ? M-b is backward-word, but I should have written a more clear explanation of what I was aiming for. Yes, `M-@' is bound to `mark-word'. The important detail is that the `mark-word' function selects the part of the word that is _after_ the current location of the point. So if the current `point' is already at the start of a word, then `M-@' will do the right thing. When the point is in the middle of a word, however, you can move the point to the start of the current word with `M-b' and then use `M-@' to mark the full word.