unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Adam Spiers <emacs-bugs@adamspiers.org>
To: Glenn Morris <rgm@gnu.org>
Cc: emacs-pretest-bug@gnu.org
Subject: Re: custom-variable-menu loses entries if defined during site-start
Date: Tue, 16 Oct 2007 17:50:07 +0100	[thread overview]
Message-ID: <20071016165007.GA32678@atlantic.linksys.moosehall> (raw)
In-Reply-To: <kywstvwyal.fsf@fencepost.gnu.org>

On Tue, Oct 09, 2007 at 09:31:14PM -0400, Glenn Morris wrote:
> Adam Spiers wrote:
> > 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. 
> 
> Perhaps cus-edit could test `init-file-user' instead of `user-init-file'.
> Looks like this is set early enough in the startup sequence.

Test that it's non-nil, you mean?  I guess that could work, though I
don't know enough about the startup sequence to know whether
`init-file-user' being non-nil implies that `custom-file' or
`user-init-file' will be available later on.

> > However, on Fedora 7, the emacs-common-22.0.990-2.fc7 rpm
> 
> This is a pretest of Emacs 22.

Whoops, so it was.

> Is there not a proper Emacs 22.1 package for Fedora 7?

Not sure if there was when I installed F7 originally, but there
certainly is now.  I upgraded, but the problem persists.

Can anyone think of a better temporary work-around than using
--no-site-file, which is obviously less than ideal?

Thanks,
Adam

      reply	other threads:[~2007-10-16 16:50 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-10-07 17:16 custom-variable-menu loses entries if defined during site-start Adam Spiers
2007-10-10  1:31 ` Glenn Morris
2007-10-16 16:50   ` Adam Spiers [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20071016165007.GA32678@atlantic.linksys.moosehall \
    --to=emacs-bugs@adamspiers.org \
    --cc=emacs-pretest-bug@gnu.org \
    --cc=rgm@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).