[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Enhancements to "minor-mode-map-alist" functionality.
From: |
Kim F. Storm |
Subject: |
Re: Enhancements to "minor-mode-map-alist" functionality. |
Date: |
23 Apr 2002 12:58:06 +0200 |
User-agent: |
Gnus/5.09 (Gnus v5.9.0) Emacs/21.2.50 |
Richard Stallman <address@hidden> writes:
> > If you need to condition some of these maps on some symbol's being
> > false, then we could make the minimal extension so far proposed, which
> > is to allow minor-mode-map-alist (or another new alist) to have
> > conditions which are more complex than just a symbol. But you do see
> > if you can easily get away without that.
>
> If we don't allow some form of simple logical expression [e.g. the
> functions I listed in a previous mail],
>
> What are the three conditions that you want to test for?
> Let's see what features they require.
>
Here are the keymap conditionals used by cua:
(and mark-active
cua-enable-cua-keys
(or (eq cua-enable-cua-keys t)
(not cua--explicit-region-start))
(not executing-kbd-macro)
(not cua--prefix-override-timer))
(and mark-active
(timerp cua--prefix-override-timer))
(or (eq cua-enable-cua-keys t)
cua--last-region-shifted)
(and cua--global-mark-active
(not (window-minibuffer-p)))
The last one calls `windows-minibuffer-p' -- that's probably
not considered as `trivial' ?
--
Kim F. Storm <address@hidden> http://www.cua.dk
- Re: Enhancements to "minor-mode-map-alist" functionality., (continued)
- Re: Enhancements to "minor-mode-map-alist" functionality., Richard Stallman, 2002/04/19
- Re: Enhancements to "minor-mode-map-alist" functionality., Kim F. Storm, 2002/04/19
- Re: Enhancements to "minor-mode-map-alist" functionality., Richard Stallman, 2002/04/20
- Re: Enhancements to "minor-mode-map-alist" functionality., Kim F. Storm, 2002/04/21
- Re: Enhancements to "minor-mode-map-alist" functionality., Richard Stallman, 2002/04/22
- Re: Enhancements to "minor-mode-map-alist" functionality., Kim F. Storm, 2002/04/22
- Re: Enhancements to "minor-mode-map-alist" functionality., Richard Stallman, 2002/04/22
- Re: Enhancements to "minor-mode-map-alist" functionality.,
Kim F. Storm <=
- Re: Enhancements to "minor-mode-map-alist" functionality., Richard Stallman, 2002/04/22
- Re: Enhancements to "minor-mode-map-alist" functionality., Kim F. Storm, 2002/04/23
- Re: Enhancements to "minor-mode-map-alist" functionality., Richard Stallman, 2002/04/24
- Re: Enhancements to "minor-mode-map-alist" functionality., Kim F. Storm, 2002/04/26
- Re: Enhancements to "minor-mode-map-alist" functionality., Richard Stallman, 2002/04/27
- Re: Enhancements to "minor-mode-map-alist" functionality., Kai Großjohann, 2002/04/29
- Re: Enhancements to "minor-mode-map-alist" functionality., Richard Stallman, 2002/04/30
- Re: Enhancements to "minor-mode-map-alist" functionality., Kim F. Storm, 2002/04/30
- Re: Enhancements to "minor-mode-map-alist" functionality., Kim F. Storm, 2002/04/14
- Re: Enhancements to "minor-mode-map-alist" functionality., Stefan Monnier, 2002/04/12