[Top][All Lists]

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

Re: master 6458e16: New mode outline-cycle-minor-mode with Orgmode-like

From: Stefan Monnier
Subject: Re: master 6458e16: New mode outline-cycle-minor-mode with Orgmode-like TAB cycling on headings
Date: Thu, 04 Mar 2021 13:06:42 -0500
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux)

> I haven't tried your code, but there are occasions in which
> outline-minor-mode is used to section the buffer on syntactic elements
> that are already fontified (on function declarations, for example). What
> does happen then when outline-minor-mode-highlight is t? I think these
> would be cases in which outline-minor-mode-highlight nil would be better.

I think this can be solved by giving to those "headings" outline levels
which map to "no highlighting".

>> FWIW, I think the only really good way to solve this problem is to
>> replace `indent-for-tab-command` with a new command (call it
>> `tab-dwim`?)  which can be more finely configured by major and minor
>> modes.  E.g.  by making it call `tab-dwim-function` on which modes can
>> `add-function` at will (and at various depths so they can control
>> whether it should take precedence or not over the "TAB causes
>> indentation" or "TAB causes completion", ...).>
>> The mechanism of priorities of keymaps coupled with "fallthrough"
>> (either via the "menu-item + filter" trick or via some explicitly
>> looking up the keymaps and calling the next command) isn't fine-grained
>> enough to deal with the amount of overloading that people want to use on
>> that poor TAB key.
> That would be nice to have, indeed.

OK, I should push it up my todo list.


reply via email to

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