emacs-devel
[Top][All Lists]
Advanced

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

custom-variable-menu loses entries if defined during site-start


From: Adam Spiers
Subject: custom-variable-menu loses entries if defined during site-start
Date: Sun, 7 Oct 2007 18:16:53 +0100
User-agent: Mutt/1.5.14 (2007-02-12)

Hi there,

I *think* this is probably an emacs bug, but if it's a distro bug
please let me know and I'll report it to the Fedora folk.

I noticed that since upgrading to emacs 22, when changing variables in
a Custom buffer, individual variables no longer offered the "Save for
Future Sessions" action in the State menu, even when custom-file and
user-init-file are set correctly.  I tracked it down to this change:

  
http://cvs.savannah.gnu.org/viewvc/emacs/lisp/cus-edit.el?root=emacs&view=diff&r1=1.250&r2=1.251

In particular, in the defvar of custom-variable-menu:

   ("Save for Future Sessions" custom-variable-save             

is changed to

   ,@(when (or custom-file user-init-file)
       '(("Save for Future Sessions" custom-variable-save

This works fine if cus-edit.el is loaded after custom-file and/or
user-init-file are initialized during startup.  However, on Fedora 7,
the emacs-common-22.0.990-2.fc7 rpm installs the file:

  /usr/share/emacs/site-lisp/site-start.el

which invokes a file installed by the emacs-muse-3.02.93-5.fc7 rpm:

  /usr/share/emacs/site-lisp/site-start.d/muse-init.el

which invokes:

  /usr/share/emacs/site-lisp/muse/muse-project.el

which contains:

  (require 'cus-edit)

This all happens before the user's .emacs is loaded, therefore neither
custom-file nor user-init-file are defined, and the menu choices end up
being erroneously omitted.

If emacs is invoked with --no-site-file, then the menu choices
reappear.

What is the correct approach for fixing this?  

Thanks a lot!
Adam


In GNU Emacs 22.0.990.1 (i386-koji-linux-gnu, GTK+ Version 2.10.11)
 of 2007-05-23 on xenbuilder3.fedora.phx.redhat.com
configured using `configure  '--build=i386-koji-linux-gnu' 
'--host=i386-koji-linux-gnu' '--target=i386-redhat-linux-gnu' 
'--program-prefix=' '--prefix=/usr' '--exec-prefix=/usr' '--bindir=/usr/bin' 
'--sbindir=/usr/sbin' '--sysconfdir=/etc' '--datadir=/usr/share' 
'--includedir=/usr/include' '--libdir=/usr/lib' '--libexecdir=/usr/libexec' 
'--localstatedir=/var' '--sharedstatedir=/usr/com' '--mandir=/usr/share/man' 
'--infodir=/usr/share/info' '--with-pop' '--with-sound' '--with-gtk' 
'build_alias=i386-koji-linux-gnu' 'host_alias=i386-koji-linux-gnu' 
'target_alias=i386-redhat-linux-gnu' 'CFLAGS=-DMAIL_USE_LOCKF 
-DSYSTEM_PURESIZE_EXTRA=16777216 -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 
-fexceptions --param=ssp-buffer-size=4 -m32 -march=i386 -mtune=generic 
-fasynchronous-unwind-tables''

Important settings:
  value of $LC_ALL: nil
  value of $LC_COLLATE: nil
  value of $LC_CTYPE: nil
  value of $LC_MESSAGES: nil
  value of $LC_MONETARY: nil
  value of $LC_NUMERIC: nil
  value of $LC_TIME: nil
  value of $LANG: nil
  locale-coding-system: nil
  default-enable-multibyte-characters: t

Major mode: Info

Minor modes in effect:
  eldoc-mode: t
  display-time-mode: t
  show-paren-mode: t
  menu-bar-mode: t
  file-name-shadow-mode: t
  global-font-lock-mode: t
  font-lock-mode: t
  unify-8859-on-encoding-mode: t
  utf-translate-cjk-mode: t
  auto-compression-mode: t
  column-number-mode: t
  line-number-mode: t
  transient-mark-mode: t




reply via email to

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