🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: face customization lost after restart

#440
From: newsspam5REMOVETHIS
Date: Wed, 18 Jul 2007 20:29
100 lines
5513 bytes
Tim X <timx@nospam.dev.null> writes:

> 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.

Please try to toggle the mode by M-x vm-summary-face-mode and
check if it makes a difference, I have just seen a bug where the
selected face is not set when enabling it at startup ...

Also please try the latest version of vm-summary-faces.el,
e.g. http://tinyurl.com/2erqvm ...

IMHO it might be related to some settings in your ~/.vm.

Could you try to disable vm-summary-faces, i.e. do not require it
in your ~/.vm and (setq vm-enable-addons nil).  Then enable
vm-summary-faces-mode ...

> 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).

Have you been using the VM binaries for decoding or the lisp
code?

Also in Debian they encourage the use of perl for this due to
similar problems ... maybe I should make this the default ... 

> 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?

I have now used your lines and it works for me, except for the
vm-summary-selected-face.

Robert.
Technical Details
Message-ID: <85abtt5uc0.fsf@robf.de>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.glorb.com!multikabel.net!feed20.multikabel.net!newsfeed.freenet.de!news.space.net!news.m-online.net!not-for-mail
References: <87ir8kllyr.fsf@lion.rapttech.com.au> <853azm7cci.fsf@robf.de> <87hco211ml.fsf@lion.rapttech.com.au>

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!news4.google.com!news.glorb.com!multikabel.net!feed20.multikabel.net!newsfeed.freenet.de!news.space.net!news.m-online.net!not-for-mail
From: newsspam5REMOVETHIS@robf.de
Newsgroups: gnu.emacs.vm.bug
Subject: Re: face customization lost after restart
Date: Wed, 18 Jul 2007 22:29:35 +0200
Organization: (posted via) M-net Telekommunikations GmbH
Lines: 100
Message-ID: <85abtt5uc0.fsf@robf.de>
References: <87ir8kllyr.fsf@lion.rapttech.com.au> <853azm7cci.fsf@robf.de> <87hco211ml.fsf@lion.rapttech.com.au>
NNTP-Posting-Host: ppp-82-135-86-40.dynamic.mnet-online.de
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
X-Trace: svr7.m-online.net 1184790576 7159 82.135.86.40 (18 Jul 2007 20:29:36 GMT)
X-Complaints-To: abuse@m-online.net
NNTP-Posting-Date: Wed, 18 Jul 2007 20:29:36 +0000 (UTC)
User-Agent: Gnus/5.1007 (Gnus v5.10.7) XEmacs/21.4.19 (linux)
Cancel-Lock: sha1:I4ZxntcZJSt7eL3Wy1Ph3BOQ41A=