emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Towards a cleaner build: tags


From: Lars Ingebrigtsen
Subject: Re: Towards a cleaner build: tags
Date: Thu, 20 Jun 2019 14:00:06 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux)

Lars Ingebrigtsen <address@hidden> writes:

>>> The latter is fine, but the call for find-tag is with the next-p parameter:
>>>
>>>       (if (string= tag "")
>>>           (find-tag ex-tag t)
>>>         (find-tag-other-window ex-tag))
>>>
>>> How is that done in terms of xref?
>>
>> But what does NEXT-P mean in this context? It's not like there has
>> been a previous invocation of find-tag, was there?
>
> It seems like the logic is that the first time the function is called,
> find-tag-other-window, and the next one it's calling find-tag with
> NEXT-P?

Yes, that seems to be the logic.

But does xref provide a command to jump to the next match without going
back to the *xref* window at all?  I looked through the code, and I
couldn't find it...

Oh, it's just `next-error'?  Well, that makes sense.  I'll just rewrite
the code to be xref-find-tag-other-window/next-error.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no



reply via email to

[Prev in Thread] Current Thread [Next in Thread]