From 70c2811c5d55788bebd439ef7af2f6fa11be029f Mon Sep 17 00:00:00 2001 From: Katsumi Yamaoka Date: Mon, 9 Jul 2007 01:27:15 +0000 Subject: (file-coding-system-alist): Fix previous commit. --- lisp/cus-start.el | 32 ++++++++++++-------------------- 1 file changed, 12 insertions(+), 20 deletions(-) (limited to 'lisp/cus-start.el') diff --git a/lisp/cus-start.el b/lisp/cus-start.el index 9eb1b5292a9..d48a0f248eb 100644 --- a/lisp/cus-start.el +++ b/lisp/cus-start.el @@ -116,26 +116,18 @@ Leaving \"Default\" unchecked is equivalent with specifying a default of mule (alist :key-type (regexp :tag "File regexp") - :value-type - (choice - :value (undecided . undecided) - (cons :tag "Encoding/decoding pair" - :value (undecided . undecided) - (coding-system :tag "Decoding") - (coding-system :tag "Encoding")) - (coding-system - :tag "Single coding system" - :value undecided - :validate - (lambda (widget) - (unless (or (coding-system-p (widget-value widget)) - (functionp (widget-value widget))) - (widget-put - widget - :error (format "Invalid coding system: %S" - (widget-value widget))) - widget))) - (function :value ignore)))) + :value-type (choice + :value (undecided . undecided) + (cons :tag "Encoding/decoding pair" + :value (undecided . undecided) + (coding-system :tag "Decoding") + (coding-system :tag "Encoding")) + (coding-system + :tag "Single coding system" + :value undecided + :match (lambda (widget value) + (and value (not (functionp value))))) + (function :value ignore)))) (selection-coding-system mule coding-system) ;; dired.c (completion-ignored-extensions dired -- cgit v1.2.1