[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [AUCTeX-devel] extended reftex-search-document
From: |
Lars Madsen |
Subject: |
Re: [AUCTeX-devel] extended reftex-search-document |
Date: |
Tue, 2 Dec 2014 15:52:14 +0000 |
I'll have a look at that.
I'm getting exactly that user error all processed thing
/Lars Madsen
Institut for Matematik / Department of Mathematics
Aarhus Universitet / Aarhus University
Mere info: http://au.dk/address@hidden / More information:
http://au.dk/en/address@hidden
________________________________________
From: Tassilo Horn address@hidden
Sent: 02 December 2014 16:38
To: Lars Madsen
Cc: address@hidden
Subject: Re: [AUCTeX-devel] extended reftex-search-document
Lars Madsen <address@hidden> writes:
> hmm, it sort of works, at least no errors
>
> But If I just add
>
> sdfa s asdf sadf : sadfadfsdaf
>
> to a file and then search for space-colon, then it does not always find it
Not sure what's the problem. I actually don't use tags-search and know
only what I've found out when answering your questions. When doing so,
I sometimes also had the problem that I got a user-error "All files
processed" although there were new matches after point or later files.
A good thing to help debugging is setting `tags-loop-scan' to a form
`(my-tags-loop-scan-fn ,regex)
where `my-tags-loop-scan-fn' is something like
--8<---------------cut here---------------start------------->8---
(defun my-tags-loop-scan-fn (regexp)
(and (re-search-forward regexp nil t)
(let ((comment-start-skip "\\(\\(^\\|[^\\
]\\)\\(\\\\\\\\\\)*\\)\\(%+[ ]*\\)"))
(not (texmathp)))))
--8<---------------cut here---------------end--------------->8---
Then you can edebug `my-tags-loop-scan-fn' to see what etags is doing.
Bye,
Tassilo