From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Steven Degutis Newsgroups: gmane.emacs.help Subject: Re: Is there an easier way to jump to the same word? Date: Fri, 12 Apr 2013 19:22:20 -0500 Message-ID: References: <87mwt5wl0m.fsf@bzg.ath.cx> <871uaf5lju.fsf@bzg.ath.cx> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=047d7b15a94751833704da33039d X-Trace: ger.gmane.org 1365812557 20852 80.91.229.3 (13 Apr 2013 00:22:37 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 13 Apr 2013 00:22:37 +0000 (UTC) Cc: "help-gnu-emacs@gnu.org" To: Bastien Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Apr 13 02:22:40 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 1UQoEq-0006nM-Pb for geh-help-gnu-emacs@m.gmane.org; Sat, 13 Apr 2013 02:22:40 +0200 Original-Received: from localhost ([::1]:52746 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UQoEq-0004PC-Cq for geh-help-gnu-emacs@m.gmane.org; Fri, 12 Apr 2013 20:22:40 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:39623) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UQoEc-0004P2-5E for help-gnu-emacs@gnu.org; Fri, 12 Apr 2013 20:22:28 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UQoEX-0000PH-Jc for help-gnu-emacs@gnu.org; Fri, 12 Apr 2013 20:22:26 -0400 Original-Received: from mail-da0-x232.google.com ([2607:f8b0:400e:c00::232]:39859) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UQoEX-0000P1-Du for help-gnu-emacs@gnu.org; Fri, 12 Apr 2013 20:22:21 -0400 Original-Received: by mail-da0-f50.google.com with SMTP id t1so1345084dae.37 for ; Fri, 12 Apr 2013 17:22:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:in-reply-to:references:date:message-id :subject:from:to:cc:content-type; bh=kVGgcyV15c026HAtiwmA3sOjxWY8aNegRnJ/cOxNvEY=; b=We1kDE/JcCs5MiaDTDvig6IXQfj0rwRCPSCevyZdr+IGEVuD397ZO90R4EEkxoIRYs 7OnxoTuBoPbgDxiS7vCsmvvT59PVqKCAL6ggs4GwD2kn2lnigWpCymf13B+DXU5/rOsW dvLORUo4KsvEAcdkRHeOQ1rGxQnmh3N79xnHdkhhxTG/kWvgp5KVBJWoeeP3I0C1cgtG BSEJCZQNCVK41TaFK/Pzw+s+ovo9mx5/7Q8QLBsJt9cyKMCAsQ9FZ1ifKtUNBPNMtX6X 5P4qM3LVKjslIDz7o86hiuOL7f1TO9xKe+VfeFctD0OteSgZI56Y6PDGhX/oBIDwD/kH 9dFQ== X-Received: by 10.68.141.48 with SMTP id rl16mr17575609pbb.89.1365812540656; Fri, 12 Apr 2013 17:22:20 -0700 (PDT) Original-Received: by 10.70.24.197 with HTTP; Fri, 12 Apr 2013 17:22:20 -0700 (PDT) In-Reply-To: <871uaf5lju.fsf@bzg.ath.cx> X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2607:f8b0:400e:c00::232 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:90140 Archived-At: --047d7b15a94751833704da33039d Content-Type: text/plain; charset=ISO-8859-1 Actually it looks like highlight-symbol.el is nearly perfect. The only problem with it is that it doesn't render background colors properly on matches when hl-line-mode is also used. -Steven On Fri, Apr 12, 2013 at 7:19 PM, Bastien wrote: > Hi Steven, > > Steven Degutis writes: > > > Are these functions defining word boundaries? What are the \\< and \ > > \> used for? Using (current-word) should probably be sufficient, no? > > (current-word t t) would better suits my own needs actually. > > > Also, I didn't realize this until after I tried Chris's solution, but > > I also need it to highlight other occurrences of (current-word) in > > the buffer. > > In that case, I think your first recipe (C-s C-w C-s) is the shortest > solution. > > HTH, > > -- > Bastien > --047d7b15a94751833704da33039d Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
Actually it looks like highlight-symbol.el is nearly perfe= ct. The only problem with it is that it doesn't render background color= s properly on matches when hl-line-mode is also used.

-Steven


On Fri, Apr 12, 2013 at 7:19 PM, Bastien <bzg@altern.org>= wrote:
Hi Steven,

Steven Degutis <sbdegutis@gmail.c= om> writes:

> Are these functions defining word boundaries? = What are the \\< and \
> \> used for? Using (current-word) should probably be sufficient, no= ?

(current-word t t) would better suits my own needs actually.

> Also, I didn't realize this until after I tried Chris's soluti= on, but
> I also need it to highlight other occurrences of (current-word) in
> the buffer.

In that case, I think your first recipe (C-s C-w C-s) is the shortest=
solution.

HTH,

--
=A0Bastien

--047d7b15a94751833704da33039d--