From: Stefan Monnier <monnier@iro.umontreal.ca>
To: emacs-devel@gnu.org
Cc: Martin Rudalics <rudalics@gmx.at>
Subject: Re: [Emacs-diffs] master 0245cc3: Improve accessibility of window dividers. (Bug#20183)
Date: Thu, 02 Jul 2015 09:55:49 -0400 [thread overview]
Message-ID: <jwvy4iywtv1.fsf-monnier+emacsdiffs@gnu.org> (raw)
In-Reply-To: <E1ZAYYS-00081G-Fb@vcs.savannah.gnu.org> (Martin Rudalics's message of "Thu, 02 Jul 2015 07:05:04 +0000")
> +(defgroup window-divider nil
[...]
> +(defcustom window-divider-mode nil
[..]
> + :group 'window-divider
This :group is redundant since it refers to the last created group.
> +(define-minor-mode window-divider-mode
[...]
> + :group 'window-divider
> + :global t
> + :variable (window-divider-mode
> + . (lambda (value)
> + (frame--window-divider-mode-set-and-apply
> + (and value
> + (or frame--window-divider-previous-mode
> + (default-value 'window-divider-mode)
> + 'right-only))))))
I'd rather not abuse the (GETTER . SETTER) here. This is only really
needed for those cases where the value of the mode is neither kept in
a global var nor a buffer-local var (e.g. it's kept in a window or frame
parameter instead).
So, we should drop :variable, which will also let us drop the
separate defcustom.
Stefan
next parent reply other threads:[~2015-07-02 13:55 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <20150702070503.30720.41171@vcs.savannah.gnu.org>
[not found] ` <E1ZAYYS-00081G-Fb@vcs.savannah.gnu.org>
2015-07-02 13:55 ` Stefan Monnier [this message]
2015-07-02 16:05 ` [Emacs-diffs] master 0245cc3: Improve accessibility of window dividers. (Bug#20183) martin rudalics
2015-07-02 16:28 ` Stefan Monnier
2015-07-02 18:00 ` martin rudalics
2015-07-03 1:50 ` Stefan Monnier
2015-07-03 13:20 ` martin rudalics
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=jwvy4iywtv1.fsf-monnier+emacsdiffs@gnu.org \
--to=monnier@iro.umontreal.ca \
--cc=emacs-devel@gnu.org \
--cc=rudalics@gmx.at \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.