[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: |
Alex Schroeder |
Subject: |
Re: Customizing key bindings (was: Re: [CVS] f7, f8 bound..) |
Date: |
Sat, 07 Sep 2002 11:06:56 +0200 |
User-agent: |
Gnus/5.090008 (Oort Gnus v0.08) Emacs/21.2.90 (i686-pc-linux-gnu) |
Per Abrahamsen <address@hidden> writes:
> (define-widget 'key-sequence-field 'string
> "Field for entering key bindings."
> :tag "Key sequence"
> :error "Not a well-formed key sequence"
> :validate 'key-sequence-field-validate
> :keymap key-sequence-widget-map)
>
> (defun key-sequence-widget-validate (widget value)
> (let ((value (widget-apply widget :value-get)))
> (condition-case nil
> (progn
> (read-kbd-macro value)
> nil)
> (error widget))))
Per, something about this validate stuff is not right. Even when I
rename -field-validate to -widget-validate, it does not work (wrong
number of arguments). I just commented validation out for the the
moment, and it seems that I can test things now.
Alex.
- Re: Customizing key bindings (was: Re: [CVS] f7, f8 bound..), (continued)
- Re: Customizing key bindings (was: Re: [CVS] f7, f8 bound..), Miles Bader, 2002/09/07
- Re: Customizing key bindings (was: Re: [CVS] f7, f8 bound..), Per Abrahamsen, 2002/09/07
- Re: Customizing key bindings (was: Re: [CVS] f7, f8 bound..), Robert J. Chassell, 2002/09/07
- What custom is and does, Alex Schroeder, 2002/09/07
- Re: What custom is and does, Miles Bader, 2002/09/07
- Re: What custom is and does, Per Abrahamsen, 2002/09/09
- Re: Customizing key bindings (was: Re: [CVS] f7, f8 bound..), Kai Großjohann, 2002/09/07
- Re: Customizing key bindings (was: Re: [CVS] f7, f8 bound..), Stefan Monnier, 2002/09/09
- 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 <=
- Re: Customizing key bindings (was: Re: [CVS] f7, f8 bound..), Per Abrahamsen, 2002/09/07
- Re: Customizing key bindings (was: Re: [CVS] f7, f8 bound..), Alex Schroeder, 2002/09/07
- Re: Customizing key bindings (was: Re: [CVS] f7, f8 bound..), Per Abrahamsen, 2002/09/07
- Re: Customizing key bindings, Alex Schroeder, 2002/09/07
- Re: Customizing key bindings, Alex Schroeder, 2002/09/07
- 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