[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: TAGS completion with (setq-local completion-ignore-case t)
From: |
Morgan Willcock |
Subject: |
Re: TAGS completion with (setq-local completion-ignore-case t) |
Date: |
Sat, 09 Mar 2024 14:33:28 +0000 |
User-agent: |
Gnus/5.13 (Gnus v5.13) |
Eli Zaretskii <eliz@gnu.org> writes:
>> From: Morgan Willcock <morgan@ice9.digital>
>> Cc: emacs-devel@gnu.org
>> Date: Sat, 09 Mar 2024 14:06:39 +0000
>>
>> Eli Zaretskii <eliz@gnu.org> writes:
>>
>> > You need to set tags-case-fold-search, not the buffer-local value of
>> > completion-ignore-case. That's because the commands in etags.el look
>> > at tags-case-fold-search to decide whether they should ignore
>> > letter-case.
>>
>> Setting tags-case-fold-search to t (buffer-local or not) doesn't seem to
>> have any effect when completion-ignore-case is also set to t.
>>
>> emacs -Q --eval "(progn \
>> (pop-to-buffer (get-buffer-create \"test\")) \
>> (setq-local completion-ignore-case t) \
>> (setq-local tags-case-fold-search t) \
>
> Don't use setq-local, use setq. Or let-bind it, like this:
>
> (progn
> (pop-to-buffer (get-buffer-create "test"))
> (let ((tags-case-fold-search t))
> (insert "is")
> (complete-tag)
> (complete-tag)))
The code example is just to recreate the problem. This affects the
completion mechanism in the buffer that the user has direct access to
with key-bindings.
i.e. If the user types "is" and then presses C-M-i there are no
completions available.
--
Morgan Willcock
- TAGS completion with (setq-local completion-ignore-case t), Morgan Willcock, 2024/03/07
- Re: TAGS completion with (setq-local completion-ignore-case t), Eli Zaretskii, 2024/03/07
- Re: TAGS completion with (setq-local completion-ignore-case t), Morgan Willcock, 2024/03/07
- Re: TAGS completion with (setq-local completion-ignore-case t), Eli Zaretskii, 2024/03/07
- Re: TAGS completion with (setq-local completion-ignore-case t), Morgan Willcock, 2024/03/07
- Re: TAGS completion with (setq-local completion-ignore-case t), Eli Zaretskii, 2024/03/09
- Re: TAGS completion with (setq-local completion-ignore-case t), Morgan Willcock, 2024/03/09
- Re: TAGS completion with (setq-local completion-ignore-case t), Eli Zaretskii, 2024/03/09
- Re: TAGS completion with (setq-local completion-ignore-case t), Morgan Willcock, 2024/03/09
- Re: TAGS completion with (setq-local completion-ignore-case t), Eli Zaretskii, 2024/03/09
- Re: TAGS completion with (setq-local completion-ignore-case t),
Morgan Willcock <=
- Re: TAGS completion with (setq-local completion-ignore-case t), Eli Zaretskii, 2024/03/09
- Re: TAGS completion with (setq-local completion-ignore-case t), Eli Zaretskii, 2024/03/09
- Re: TAGS completion with (setq-local completion-ignore-case t), Morgan Willcock, 2024/03/09
- Re: TAGS completion with (setq-local completion-ignore-case t), Eli Zaretskii, 2024/03/09
- Re: TAGS completion with (setq-local completion-ignore-case t), Eli Zaretskii, 2024/03/09
- Re: TAGS completion with (setq-local completion-ignore-case t), Morgan Willcock, 2024/03/12