diff options
author | K. Handa <handa@gnu.org> | 2015-09-02 18:28:54 +0900 |
---|---|---|
committer | K. Handa <handa@gnu.org> | 2015-09-02 18:28:54 +0900 |
commit | e7b62736aade24620c8ba6fa6bd467d017f16ee0 (patch) | |
tree | d00a2203437a168b2414c6b73afc00a88d90b4b1 /lisp/wid-edit.el | |
parent | ae08d073d7e2738580341534adc3c5924dc76860 (diff) | |
parent | 30866274e21c5f0a1c5f60cfe290743e7d482349 (diff) | |
download | emacs-e7b62736aade24620c8ba6fa6bd467d017f16ee0.tar.gz emacs-e7b62736aade24620c8ba6fa6bd467d017f16ee0.tar.bz2 emacs-e7b62736aade24620c8ba6fa6bd467d017f16ee0.zip |
Merge branch 'master' of git.sv.gnu.org:/srv/git/emacs
Diffstat (limited to 'lisp/wid-edit.el')
-rw-r--r-- | lisp/wid-edit.el | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lisp/wid-edit.el b/lisp/wid-edit.el index 0c8f4af58e1..b64de4759d7 100644 --- a/lisp/wid-edit.el +++ b/lisp/wid-edit.el @@ -3477,10 +3477,10 @@ themselves. A list, for example, is defined as either nil, or a cons cell whose cdr itself is a list. The obvious way to translate this into a widget type would be - (define-widget 'my-list 'choice + (define-widget \\='my-list \\='choice \"A list of sexps.\" :tag \"Sexp list\" - :args '((const nil) (cons :value (nil) sexp my-list))) + :args \\='((const nil) (cons :value (nil) sexp my-list))) Here we attempt to define my-list as a choice of either the constant nil, or a cons-cell containing a sexp and my-lisp. This will not work @@ -3489,10 +3489,10 @@ because the `choice' widget does not allow recursion. Using the `lazy' widget you can overcome this problem, as in this example: - (define-widget 'sexp-list 'lazy + (define-widget \\='sexp-list \\='lazy \"A list of sexps.\" :tag \"Sexp list\" - :type '(choice (const nil) (cons :value (nil) sexp sexp-list)))" + :type \\='(choice (const nil) (cons :value (nil) sexp sexp-list)))" :format "%{%t%}: %v" ;; We don't convert :type because we want to allow recursive ;; data structures. This is slow, so we should not create speed |