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: Thu, 11 Apr 2013 09:08:48 -0500 Message-ID: References: <87eheh89pj.fsf@gmail.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=047d7b16018d4d324204da16531a X-Trace: ger.gmane.org 1365689347 7147 80.91.229.3 (11 Apr 2013 14:09:07 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 11 Apr 2013 14:09:07 +0000 (UTC) Cc: "help-gnu-emacs@gnu.org" To: Jambunathan K Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Apr 11 16:09:11 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 1UQIBa-0001HU-2h for geh-help-gnu-emacs@m.gmane.org; Thu, 11 Apr 2013 16:09:10 +0200 Original-Received: from localhost ([::1]:54999 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UQIBZ-0006Yq-HM for geh-help-gnu-emacs@m.gmane.org; Thu, 11 Apr 2013 10:09:09 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:54540) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UQIBI-0006Ua-AV for help-gnu-emacs@gnu.org; Thu, 11 Apr 2013 10:08:58 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UQIBF-0008OO-9j for help-gnu-emacs@gnu.org; Thu, 11 Apr 2013 10:08:52 -0400 Original-Received: from mail-pd0-f171.google.com ([209.85.192.171]:59000) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UQIBF-0008OE-4A for help-gnu-emacs@gnu.org; Thu, 11 Apr 2013 10:08:49 -0400 Original-Received: by mail-pd0-f171.google.com with SMTP id z10so884120pdj.16 for ; Thu, 11 Apr 2013 07:08:48 -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=IMiiTZ8gLDGnm9TuL1pGKVjDJ766SaP15kW21plQ5uY=; b=sofEFGuEq8L/Ww3dl4FAqMaHhSVT2+ZyQHuVZ0EqUAPRl1QS6AyMEu+punv3ZsUWrz tWjbRSZVI6cM4gpHI2C8eVDN+HHy1NnZ2IHmAYXN/G7/EGXYubBvx0jo05vN1nepjKGW aHpGIhqFU2vFBiLCY+BiuIO3QogNBbivRKrzAHyaGp4Iunyo+wK08e1WIrPXHk9qOLSZ kYieHBfsnEH3sWXPEc4BU3TJI4dZxyXSDxRJ/H2DkRYBE51nzosZYrs3+pqzjNE67uz0 HFvt5rikLfEKiuUzFaoafdnlFd+uu/JTwFBgHaT5lfATDBivu31vxqtYXhTWNo+B+Y6v fEgw== X-Received: by 10.67.4.227 with SMTP id ch3mr9886223pad.59.1365689328544; Thu, 11 Apr 2013 07:08:48 -0700 (PDT) Original-Received: by 10.70.24.197 with HTTP; Thu, 11 Apr 2013 07:08:48 -0700 (PDT) In-Reply-To: <87eheh89pj.fsf@gmail.com> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [fuzzy] X-Received-From: 209.85.192.171 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:90100 Archived-At: --047d7b16018d4d324204da16531a Content-Type: text/plain; charset=ISO-8859-1 First of all those keys are stolen by paredit. Second of all the UI for this seems like overkill compared to highlight-symbol.el. It doesn't need its own window, it just should highlight matches in the current window and allow me to jump between them easily. But knowing emacs, there's probably some variable to disable opening a new window with the search results. And finally, it doesn't seem to highlight the matches in the buffer. -Steven On Thu, Apr 11, 2013 at 8:42 AM, Jambunathan K wrote: > Steven Degutis writes: > > > Often times I find that I want to jump to another occurrence of the > > word-under-point, almost always variables or functions. I end up going > > to the beginning of the word with M-b, doing isearch-forward with C-s, > > adding all the words until the full word is the search term with C-w a > > bunch of times, and finally C-s to jump around to other instances of > > it. > > If you are using Emacs from bzr, configure the variable below to run > occur for symbol at point. > > C-h v occur-read-regexp-defaults-function > > > Then jump around with > > M-s o > M-g M-n > M-g M-n > M-g M-p > > or look at occur before and jump directly to the needed location. > > > > > Is there a better way to do this? > > > > -Steven > --047d7b16018d4d324204da16531a Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
First of all those keys are stolen by paredit.

Second of all the UI for this seems like overkill compared to highl= ight-symbol.el. It doesn't need its own window, it just should highligh= t matches in the current window and allow me to jump between them easily. B= ut knowing emacs, there's probably some variable to disable opening a n= ew window with the search results.

And finally, it doesn't seem to highlight the match= es in the buffer.

-Steven


On Thu, Apr 11, = 2013 at 8:42 AM, Jambunathan K <kjambunathan@gmail.com>= wrote:
Steven Degutis <sbdegutis@gmail.com> writes:

> Often times I find that I want to jump to another occurrence of the > word-under-point, almost always variables or functions. I end up going=
> to the beginning of the word with M-b, doing isearch-forward with C-s,=
> adding all the words until the full word is the search term with C-w a=
> bunch of times, and finally C-s to jump around to other instances of > it.

If you are using Emacs from bzr, configure the variable below to run<= br> occur for symbol at point.

=A0 =A0 =A0 =A0 C-h v occur-read-regexp-defaults-function


Then jump around with

M-s o
M-g M-n
M-g M-n
M-g M-p

or look at occur before and jump directly to the needed location.

>
> Is there a better way to do this?
>
> -Steven

--047d7b16018d4d324204da16531a--