[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Emacs-diffs] master 0245cc3: Improve accessibility of window divide
Re: [Emacs-diffs] master 0245cc3: Improve accessibility of window dividers. (Bug#20183)
Thu, 02 Jul 2015 20:00:26 +0200
>> You mean the defcustom for `window-divider-mode'? Then I completely
>> miss you. Where would I specify the permitted values?
> The minor mode only allows two values (enabled/disabled).
> So you'll need a second variable specifying what the "enabled" state
> should look like.
But how would a user customize switching from the `right-only' to the
`bottom-only' state? How would a user specify the preferred initial
I initially wanted to add just a simple menu entry for switching. For
that I wanted an option which allowed to select one of four permissible
states. Obviously, that option would have to be customizable via the
`customize-variable' interface as well.
Then I noticed that all items in the Show/Hide group are minor modes.
Some of them in a contorted sense - both `fringe-mode' and
`mouse-avoidance-mode' are simple defuns. I would have preferred to do
it their style, possibly using completing read. But I tried to be a
good citizen and specified `window-divider-mode' in a sense similar to
`scroll-bar-mode' - the only mode I found that was specified via
`define-minor-mode' and allowed more than two values.
Now if I'm not mistaken you seem to say that the approach I've chosen is
not TRT. But how can I know what TRT is? Neither the various modes one
can activate via the menu bar nor the manual provide useful guidance in
this regard :-(