[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Customizing key bindings (was: Re: [CVS] f7, f8 bound..)
From: |
Richard Stallman |
Subject: |
Re: Customizing key bindings (was: Re: [CVS] f7, f8 bound..) |
Date: |
Sun, 08 Sep 2002 08:54:33 -0400 |
It looks basically good now.
(defvar custom-global-keymap (let ((map (make-sparse-keymap)))
(set-keymap-parent map global-map)
map)
It looks like that is no longer used for anything. Is it obsolete?
(defmacro defkeymap (symbol map doc &rest args)
"Define SYMBOL to be a keymap with value MAP.
DOC is the keymap documentation."
;; It is better not to use backquote in this file,
;; because that makes a bootstrapping problem
;; if you need to recompile all the Lisp files using interpreted code.
(nconc (list 'custom-declare-keymap
(list 'quote symbol)
(list 'quote map)
doc)
args))
It would be better to generate a defvar plus whatever other stuff
you need.
;; remove all keys no longer in bindings
(mapc (lambda (bind)
(unless (assoc (car bind) bindings)
(custom-remove-key sym (read-kbd-macro (car bind)))))
old-bindings)
I think that comment doesn't match the code. The code removes all the
bindings in the previous list of customizations.
- Re: Customizing key bindings (was: Re: [CVS] f7, f8 bound..), (continued)
- Re: Customizing key bindings, Alex Schroeder, 2002/09/07
- Re: Customizing key bindings, Per Abrahamsen, 2002/09/07
- Re: Customizing key bindings, Alex Schroeder, 2002/09/09
- Re: Customizing key bindings, Alex Schroeder, 2002/09/09
- Re: Customizing key bindings, Alex Schroeder, 2002/09/09
- Re: Customizing key bindings, Stefan Monnier, 2002/09/09
- Re: Customizing key bindings, Per Abrahamsen, 2002/09/10
- Re: Customizing key bindings (was: Re: [CVS] f7, f8 bound..),
Richard Stallman <=
- Re: Customizing key bindings (was: Re: [CVS] f7, f8 bound..), Per Abrahamsen, 2002/09/09
- Re: Customizing key bindings (was: Re: [CVS] f7, f8 bound..), Richard Stallman, 2002/09/09
- Re: Customizing key bindings (was: Re: [CVS] f7, f8 bound..), Alex Schroeder, 2002/09/10
- Re: Customizing key bindings (was: Re: [CVS] f7, f8 bound..), Richard Stallman, 2002/09/10
- Re: Customizing key bindings (was: Re: [CVS] f7, f8 bound..), Per Abrahamsen, 2002/09/11
- Re: Customizing key bindings (was: Re: [CVS] f7, f8 bound..), Richard Stallman, 2002/09/11
- Re: Customizing key bindings (was: Re: [CVS] f7, f8 bound..), Alex Schroeder, 2002/09/09
Re: [CVS] f7, f8 bound.., Richard Stallman, 2002/09/01