From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Andreas Politz Newsgroups: gmane.emacs.devel Subject: Re: xref-find-matches and stuff Date: Thu, 16 Jul 2015 20:59:27 +0200 Message-ID: <87egk83p4g.fsf@hochschule-trier.de> References: <5546DD4A.2080709@yandex.ru> <83y4l4s4er.fsf@gnu.org> <5547D636.10402@yandex.ru> <83fv7brq1n.fsf@gnu.org> <87io9nta36.fsf@hochschule-trier.de> <55A53030.6030002@yandex.ru> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1437073864 15479 80.91.229.3 (16 Jul 2015 19:11:04 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 16 Jul 2015 19:11:04 +0000 (UTC) Cc: Eli Zaretskii , eller.helmut@gmail.com, emacs-devel@gnu.org To: Dmitry Gutov Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Jul 16 21:10:54 2015 Return-path: Envelope-to: ged-emacs-devel@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 1ZFoYY-0006kg-Gg for ged-emacs-devel@m.gmane.org; Thu, 16 Jul 2015 21:10:54 +0200 Original-Received: from localhost ([::1]:41580 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZFoYX-0007YR-Of for ged-emacs-devel@m.gmane.org; Thu, 16 Jul 2015 15:10:53 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:56939) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZFoNl-0005XL-GP for emacs-devel@gnu.org; Thu, 16 Jul 2015 14:59:46 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZFoNk-0005t1-Ib for emacs-devel@gnu.org; Thu, 16 Jul 2015 14:59:45 -0400 Original-Received: from gateway-b.fh-trier.de ([143.93.54.182]:43280) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZFoNf-0005om-Lr; Thu, 16 Jul 2015 14:59:39 -0400 X-Virus-Scanned: by Amavisd-new + McAfee uvscan + ClamAV [Rechenzentrum Hochschule Trier] Original-Received: from luca (x4d0bac96.dyn.telefonica.de [77.11.172.150]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) (Authenticated sender: politza) by gateway-b.fh-trier.de (Postfix) with ESMTPSA id 311CB17B4B5; Thu, 16 Jul 2015 20:59:28 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha1; c=simple/simple; d=hochschule-trier.de; s=default; t=1437073168; bh=Cja7rQj1g+w/7o0RhJ5KeCh6LGc=; h=From:To:Cc:Subject:References:Date:In-Reply-To:Message-ID: MIME-Version:Content-Type; b=DhsGWJyXb7nHNguGOCamYV3jsjUtE9D9ajd6qUWtM6NbmlfmlHe8pRuKAgltlzN6Q b5/3Iz4YzQNjFublTnTwNpAiIul3Xc4CX8HmaObSLyr9la9JyCgYAsQyowCJiTdTEr CvfHkhWnCfTknz78XFvcA76o+JNalBDUX+qysMjU= Original-Received: from politza by luca with local (Exim 4.84) (envelope-from ) id 1ZFoNT-0005nT-F1; Thu, 16 Jul 2015 20:59:27 +0200 In-Reply-To: <55A53030.6030002@yandex.ru> (Dmitry Gutov's message of "Tue, 14 Jul 2015 18:52:16 +0300") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 143.93.54.182 X-Mailman-Approved-At: Thu, 16 Jul 2015 15:10:46 -0400 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:187909 Archived-At: Dmitry Gutov writes: > You mean a new, different hook? It seems to me that having a hook run after jumping somewhere is pretty standard behaviour, e.g. occur-mode-find-occurrence-hook, find-tag-hook, next-error-hook, imenu-after-jump-hook. It also seems to me that not all people are going to like the pulse highlighting and maybe want something different, e.g. recenter the window. Thus turning this pulsing into a custom :options value for the to be created hook would solve this problem as well. > [...] But even now, you can just advise one of the two relevant > functions (xref-push-marker-stack or xref-pop-marker-stack). That's always true. -ap