🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.emacs.vm.bug
Article #437

Re: face customization lost after restart

#437
From: Tim X
Date: Wed, 18 Jul 2007 09:50
76 lines
4365 bytes
newsspam5REMOVETHIS@robf.de writes:

> Tim X <timx@nospam.dev.null> writes:
>
>> vm-8.1.0-devo-464
>> GNU Emacs 22.1.50.1 (i686-pc-linux-gnu, GTK+ Version 2.10.12) of 2007-06-21 on
>> lion
>> OS Debian Testing
>>
>> I use a dark background as my default (black). The summary faces are
>> 'invisible' for unread messages (black on black) and difficult to read for
>> others (i.e. deleted is gray50 on black etc). 
>>
>> I set these faces through customize, but the changes only last for the current
>> session. When I re-start emacs, they are back to their defaults.
>>
>> Checking my .emacs, I have the following lines -
>>
>>  '(vm-summary-selected-face ((t (:background "black" :foreground "yellow" :weight bold))))
>>  '(vm-summary-unread-face ((t (:foreground "green"))))
>>
>> so its possible vm just isn't setting the values from my .emacs file. However,
>> it does appear to be saving these values to the file. 
>>
>> I also noticed this behavior running the vm-rfaddons stuff with vm 19. In
>> particular, I have problems with urls in the body text. They are dark blue by
>> default, which doesn't stand out too well on a black background. All my
>> attempts to configure the face through customize fail in that they only last
>> that current session. This was observed with both emacs 21 and emacs 22. So it
>> would seem whatever the issue is, it may have been around for a while (i.e. its
>> not just in the new 8.x stuff, but has been brought forward from the add-ons
>> package. 
>>
>> I will try to dig deeper when I can find time. Just alerting you to the issue
>> now. 
>
> Thanks, but I cannot reproduce this, it works just fine for me.
>
> I see this note in my ~/.emacs
>
> (custom-set-faces
>   ;; custom-set-faces was added by Custom.
>   ;; If you edit it by hand, you could mess it up, so be careful.
>   ;; Your init file should contain only one such instance.
>   ;; If there is more than one, they won't work right.
>
> Could you please ensure that this is not the case for you?
>
> Robert.

No its fine and all my other face settings are working as expected. In fact,
the example lines I included were taken from that section inbetween face
settings for planner-low-priority-task-face and w3m-arrived-anchor-face.
Furthermore, I have observed the same behavior on two different systems which
have different face customization setting sections (i.e. customizations of
faces and colours are different, so its unlikely to be some weird interaction
between different packages and face customizations.)

I'll try to cut some time on the weekend to do a bit of debugging. I also
encountered another problem last night. I recieved an e-mail with an image
attachment. When I tried to view the message in VM, system load whent through
the roof (like over 65) and I had to kill emacs to regain control. I remember
this occuring sometime ago when using the vm provided mime decoders, which is
why I moved to using perl instead. However, I wanted to test VM 'out of the
box' to begin with (I only customized the face stuff because unread mail
summary lines were invisible when you have a black background under Emacs). 

When you tried customizing the face and couldn't reproduce the problem (i.e.
when you quit emacs and started it again the customzation was in effect), did
you happen to compare the lines in your customize section with the two I
posted? Just wondering if the formats were the same?

Tim

-- 
tcross (at) rapttech dot com dot au
Technical Details
Message-ID: <87hco211ml.fsf@lion.rapttech.com.au>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!sn-xt-sjc-04!sn-xt-sjc-06!sn-post-sjc-01!supernews.com!corp.supernews.com!not-for-mail
References: <87ir8kllyr.fsf@lion.rapttech.com.au> <853azm7cci.fsf@robf.de>

Show Full Headers
Complete Article Headers
X-Google-Thread: f6829,f65f80f583a5288e
X-Google-Attributes: gidf6829,public,usenet
X-Google-Language: ENGLISH,ASCII-7-bit
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!sn-xt-sjc-04!sn-xt-sjc-06!sn-post-sjc-01!supernews.com!corp.supernews.com!not-for-mail
From: Tim X <timx@nospam.dev.null>
Newsgroups: gnu.emacs.vm.bug
Subject: Re: face customization lost after restart
Date: Wed, 18 Jul 2007 19:50:58 +1000
Organization: Posted via Supernews, http://www.supernews.com
Message-ID: <87hco211ml.fsf@lion.rapttech.com.au>
References: <87ir8kllyr.fsf@lion.rapttech.com.au> <853azm7cci.fsf@robf.de>
User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.1.50 (gnu/linux)
Cancel-Lock: sha1:vhDhX0G9oQWfZXtInYYp4wm6MHM=
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
X-Complaints-To: abuse@supernews.com
Lines: 76