Open alphapapa opened 9 months ago
If anyone's interested, please test this patch to confirm that it works as intended. Also, please test how it works without setting those variables, with the intention of reducing the patch to the minimum necessary for it to work.
For compose-buffers specifically, see also:
tab-first-completion
doesn't list t
as a value with any specific meaning. It gets used in indent-for-tab-command
like this:
((and (eq tab-always-indent 'complete)
(eql old-point (point))
(eql old-tick (buffer-chars-modified-tick))
(or (eq last-command this-command)
(let ((syn (syntax-class (syntax-after (point)))))
(pcase tab-first-completion
('nil t)
('eol (eolp))
('word (not (eql 2 syn)))
('word-or-paren (not (memq syn '(2 4 5))))
('word-or-paren-or-punct (not (memq syn '(2 4 5 1))))))))
(completion-at-point))
So t
would be "none of the above", effectively reducing that last part to just (eq last-command this-command)
-- but I'm unclear whether that's the intention?
Ah, I use org-tempo
a lot when posting code snippets (e.g. typing <s
then TAB
to get the #+begin_src ... #+end_src
delimiters), so that's a conflict.
Ah, I use
org-tempo
a lot when posting code snippets (e.g. typing<s
thenTAB
to get the#+begin_src ... #+end_src
delimiters), so that's a conflict.
I used to use that, but FYI the new C-c C-,
binding does the same thing, and I don't miss the old style anymore. If you haven't tried it, you might end up liking it.
This seems to work, but binding some of these variables may not actually be necessary: