emacs-devel
[Top][All Lists]
Advanced

[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.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]