ada-mode-users
[Top][All Lists]
Advanced

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

Re: [Ada-mode-users] [patch] ada-goto-declaration when point is on an op


From: Stephen Leake
Subject: Re: [Ada-mode-users] [patch] ada-goto-declaration when point is on an operator
Date: Mon, 30 Jan 2017 16:14:57 -0600
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1.91 (windows-nt)

Ludovic Brenta <address@hidden> writes:

> Stephen Leake wrote:
>> Ludovic Brenta <address@hidden> writes:
>>> This micro-patch fixes by enclosing the operators in word
>>> delimiters,
>>> \\< and \\>.
>>
>> Thanks, applied.
>
> Thanks.
>
>>> It is still not perfect, as "_" is a word delimiter, so
>>> "This_Or_That"
>>> will still jump to "or" if point is in the "Or". Suggestions for
>>> improvement welcome.
>>
>> I always change '_' to have word syntax, which will fix this. I don't
>> think we can make that the default, though.
>
> Interesting, I wasn't aware that was possible. I'd like to apply it in
> an ada-mode-hook
> for our team. How do you achive that?

(modify-syntax-entry ?_ "w" ada-mode-syntax-table)

-- 
-- Stephe



reply via email to

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