# HG changeset patch # User Katsumi Yamaoka # Date 1183938096 0 # Node ID 0ab3d57d551fdbb588c524951fb2dc0e2236038d # Parent 4545583b711cc8dae2b2b4cd4c82c1e0d83b273b (file-coding-system-alist): Fix custom type. diff -r 4545583b711c -r 0ab3d57d551f lisp/ChangeLog --- a/lisp/ChangeLog Sun Jul 08 18:07:46 2007 +0000 +++ b/lisp/ChangeLog Sun Jul 08 23:41:36 2007 +0000 @@ -1,3 +1,7 @@ +2007-07-08 Katsumi Yamaoka + + * cus-start.el (file-coding-system-alist): Fix custom type. + 2007-07-08 Chong Yidong * longlines.el (longlines-wrap-region): Avoid marking buffer as diff -r 4545583b711c -r 0ab3d57d551f lisp/cus-start.el --- a/lisp/cus-start.el Sun Jul 08 18:07:46 2007 +0000 +++ b/lisp/cus-start.el Sun Jul 08 23:41:36 2007 +0000 @@ -116,15 +116,26 @@ 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) - (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 + :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)))) (selection-coding-system mule coding-system) ;; dired.c (completion-ignored-extensions dired