Article View: gnu.emacs.vm.bug
Article #444Re: face customization lost after restart
From: Tim X
Date: Thu, 19 Jul 2007 10:15
Date: Thu, 19 Jul 2007 10:15
114 lines
6099 bytes
6099 bytes
newsspam5REMOVETHIS@robf.de writes: > 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. > thanks Robert. I will check the things you mention and report back after the weekend. I recently created a full test box on an old computer I had hear, which allows me to really test things out and blow away configurations, package combinations etc without screwing with my 'production' desktop, so I should be able to create a very basic environment and build things up from there to try and identify problem areas. Tim -- tcross (at) rapttech dot com dot au
Technical Details
Message-ID:
<87zm1szokz.fsf@lion.rapttech.com.au>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!feeder3.cambrium.nl!feeder4.cambrium.nl!feeder1.cambrium.nl!feed.tweaknews.nl!138.199.65.86.MISMATCH!sn-xt-ams-06!sn-xt-ams-03!sn-ams!sn-feed-ams-03!sn-post-ams-01!sn-post-sjc-02!sn-post-sjc-01!supernews.com!corp.supernews.com!not-for-mailReferences:
<87ir8kllyr.fsf@lion.rapttech.com.au> <853azm7cci.fsf@robf.de> <87hco211ml.fsf@lion.rapttech.com.au> <85abtt5uc0.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!feeder3.cambrium.nl!feeder4.cambrium.nl!feeder1.cambrium.nl!feed.tweaknews.nl!138.199.65.86.MISMATCH!sn-xt-ams-06!sn-xt-ams-03!sn-ams!sn-feed-ams-03!sn-post-ams-01!sn-post-sjc-02!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: Thu, 19 Jul 2007 20:15:40 +1000 Organization: Posted via Supernews, http://www.supernews.com Message-ID: <87zm1szokz.fsf@lion.rapttech.com.au> References: <87ir8kllyr.fsf@lion.rapttech.com.au> <853azm7cci.fsf@robf.de> <87hco211ml.fsf@lion.rapttech.com.au> <85abtt5uc0.fsf@robf.de> User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.1.50 (gnu/linux) Cancel-Lock: sha1:S1hPBFzWO4FePV0bjJ5p5a0djis= MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Complaints-To: abuse@supernews.com Lines: 114