bug-auctex
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Bug-AUCTeX] Re: preview-1.255; Customize preview appearance


From: David Kastrup
Subject: Re: [Bug-AUCTeX] Re: preview-1.255; Customize preview appearance
Date: Fri, 20 May 2005 19:04:01 +0200
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux)

Ralf Angeli <address@hidden> writes:

> * Ralf Angeli (2005-05-15) writes:
>
>> * address@hidden (2005-05-14) writes:
>>
>>> I tried to customize the behavior of `preview-appearance' by calling `M-x
>>> customize RETURN preview-appearance RETURN', however AUCTeX failed. The
>>> following backtrace is output:
>>>
>>> Debugger entered--Lisp error: (malformed-property-list (:format "" :type) 
>>> (:type))
>>>   plist-get((:format "" :type) :convert-widget)
>>>   widget-convert((const :format "" :type))
>>
>> Great.  That's a bug in `widget-convert' present in XEmacs and Emacs
>> 21.  Maybe `preview-nonready-icon-specs' and friends should use
>> symbols instead of keywords?
>
> I thought the error could be avoided by using one of the built-in
> widgets but not even that works.  Here is an example with `plist':
>
> (progn
>   (defcustom foo
>     '((:type xpm :min 26 :file "prvwrk24.xpm" :ascent 90)
>       (:type xpm :min 22 :file "prvwrk20.xpm" :ascent 90)
>       (:type xpm :min 17 :file "prvwrk16.xpm" :ascent 90)
>       (:type xpm :min 15 :file "prvwrk14.xpm" :ascent 90)
>       (:type xpm         :file "prvwrk12.xpm" :ascent 90)
>       (:type xbm         :file "prvwrk24.xbm" :ascent 90))
>     "blah"
>     :type '(repeat (plist :options (:type :min :file :ascent))))
>   (customize-variable 'foo))
>
> On XEmacs 21.4.17 it will error out with
>
> Debugger entered--Lisp error: (malformed-property-list (:tag "Property" 
> :format "%t: %v " :size 10 :type) (:type))
>   plist-get((:tag "Property" :format "%t: %v " :size 10 :type) 
> :convert-widget)
>   widget-convert((const :tag "Property" :format "%t: %v " :size 10 :type))
> [...]
>
> So it seems that symbols instead of keywords are the only way out of
> it.  In case there are no objections or better proposals.

Objection.  This would mess up the whole correspondence with image
descriptors.  I am not even sure it could be made to work easily.

> I will change both the default values of
> `preview{,-nonready,-error}-icon-specs' and the value of
> `preview-specs-type' to use symbols.

Doesn't it work to use something like :value :min or something in
order to avoid :min on its own?  If not, I'd rather have the thing be
an sexp for customization.

-- 
David Kastrup, Kriemhildstr. 15, 44793 Bochum




reply via email to

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