[Github-comments] [geany/geany] LaTeX autocompletion not working for macros (#1000)

elextr notifications at xxxxx
Sun Apr 17 23:58:10 UTC 2016


On 18 April 2016 at 02:44, Marcelo Garlet Millani <notifications at github.com>
wrote:

> I disagree. The line you mentioned indeed leads to a problem, namely that
> \macroname\macroname is treated as a single word, but that is a different
> problem.
>

​AFAICT when you type `\macr` the current code searches backwards to find
the prefix to lookup in the symbols. What adding the backslash to wordchars
does is to include the backslash as part of the symbol prefix, so it is
never found in the symbols since they are stored without the backslash​.



> In my opinion, the best solution for both problems would be to patch the
> geanylatex plugin to autocomplete the word macro with macroname only if
> it is preceded by a \. Then removing the \ from wordchars where you
> mentioned would make geany correctly recognize \macroname\macro as macro,
> and the latex plugin would be able to autocomplete it.
>
​I havn't looked at the geanylatex plugin, but I don't think it does
anything for autocomplete.​




> If this solution is acceptable, I could implement it.
>
>> You are receiving this because you commented.
> Reply to this email directly or view it on GitHub
> <https://github.com/geany/geany/issues/1000#issuecomment-211054166>
>


---
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/geany/geany/issues/1000#issuecomment-211131518
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.geany.org/pipermail/github-comments/attachments/20160417/d22fde63/attachment.html>


More information about the Github-comments mailing list