From: Katsumi Yamaoka <yamaoka@jpl.org>
To: "Lennart Borgman \(gmail\)" <lennart.borgman@gmail.com>
Cc: bug-gnu-emacs@gnu.org
Subject: Re: Bad value in file-coding-system-alist
Date: Tue, 10 Jul 2007 15:05:37 +0900 [thread overview]
Message-ID: <b4md4z0hjym.fsf@jpl.org> (raw)
In-Reply-To: mailman.3234.1184010349.32220.bug-gnu-emacs@gnu.org
>>>>> Lennart Borgman (gmail) wrote:
> Are you sure this is the right fix? Is not this a general problem with
> Custom?
>> *** cus-start.el~ Thu Apr 12 03:05:31 2007
>> --- cus-start.el Mon Jul 9 01:33:47 2007
[...]
>> ! (coding-system
>> ! :tag "Single coding system"
>> ! :value undecided
>> ! :match (lambda (widget value)
>> ! (and value (not (functionp value)))))
Do you think the `coding-system' widget defined in wid-edit.el
should test whether the value is a coding system? If so, is it
really harmless? If it is done, we cannot use a coding system
that is defined afterward for the default value of an option for
example. Eval the following form and try customizing the
`foo-coding-system' variable.
--8<---------------cut here---------------start------------->8---
(require 'wid-edit)
(plist-put (cdr (get 'coding-system 'widget-type))
:match (lambda (widget value) (coding-system-p value)))
(defcustom foo-coding-system 'bar
"doc"
:type 'coding-system)
--8<---------------cut here---------------end--------------->8---
You will see that the value appears with the sexp form because
of the `mismatch' error. I think restricting too much is not a
good idea. Or is this not what you'd like to say?
next prev parent reply other threads:[~2007-07-10 6:05 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-07-04 16:43 Bad value in file-coding-system-alist Lennart Borgman (gmail)
2007-07-06 8:25 ` Lennart Borgman (gmail)
2007-07-06 8:39 ` Lennart Borgman (gmail)
[not found] ` <mailman.3116.1183710309.32220.bug-gnu-emacs@gnu.org>
2007-07-06 11:33 ` Katsumi Yamaoka
2007-07-06 14:41 ` Lennart Borgman (gmail)
[not found] ` <mailman.3136.1183732892.32220.bug-gnu-emacs@gnu.org>
2007-07-07 1:43 ` Katsumi Yamaoka
2007-07-09 0:20 ` Katsumi Yamaoka
[not found] ` <mailman.3199.1183940449.32220.bug-gnu-emacs@gnu.org>
2007-07-09 1:34 ` Katsumi Yamaoka
2007-07-09 19:45 ` Lennart Borgman (gmail)
[not found] ` <mailman.3234.1184010349.32220.bug-gnu-emacs@gnu.org>
2007-07-10 6:05 ` Katsumi Yamaoka [this message]
[not found] <mailman.3064.1183567427.32220.bug-gnu-emacs@gnu.org>
2007-07-05 5:12 ` Katsumi Yamaoka
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=b4md4z0hjym.fsf@jpl.org \
--to=yamaoka@jpl.org \
--cc=bug-gnu-emacs@gnu.org \
--cc=lennart.borgman@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.