GNU bug report logs -
#48609
Eglot and tab-always-indent conflict in python-mode
Previous Next
Full log
Message #14 received at 48609 <at> debbugs.gnu.org (full text, mbox):
Doug Davis <ddavis <at> ddavis.io> writes:
> Hi João & Pankaj,
>
> João Távora <joaotavora <at> gmail.com> writes:
>
>> Pankaj Jangid <pankaj <at> codeisgreat.org> writes:
>>
>>> If ‘eglot’ is running and ‘tab-always-indent’ is set to ’complete. Then
>>> in python-mode, TAB doesn’t cycle point column positions. For example,
>>> in the following code if you are at end of line 2 and then you press RET
>>> then TAB doesn’t move the point to left margin. Without ‘eglot’ this
>>> works fine.
>>>
>>> #+begin_src python
>>> def greet(s):
>>> print(f"Hello {s}!")
>>> #+end_src
>>
>> Hello Pankaj,
>>
>> I cannot reproduce this. Here's what I ran:
>>
>> $ emacs --version | head -1
>> GNU Emacs 26.3
>> $ emacs -Q -f package-initialize -L ~/path/to/eglot/eglot -l eglot \
>> ~/path/to/a/python/file.py -f eglot
>
> Just driving by, hopefully this is helpful; it looks like company may be
> the missing ingredient.
No, it wasn't, but indeed, there was a missing ingredient. I had
forgotten to set tab-always-indent to 'complete.
With this recipe, I can reproduce the bug:
$ emacs -Q -f package-initialize -L ~/path/to/eglot/eglot -l eglot \
~/path/to/a/python/file.py \
--eval '(setq tab-always-indent (quote complete))' -f eglot
Don't know what's up, though. Going to have a better look.
João
This bug report was last modified 4 years and 80 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.