From: Glenn Morris <rgm@gnu.org>
To: Stefan Monnier <monnier@iro.umontreal.ca>
Cc: Nick Roberts <nickrob@snap.net.nz>, emacs-devel@gnu.org
Subject: Re: define-obsolete-variable-alias problem
Date: Thu, 10 Apr 2008 23:53:16 -0400 [thread overview]
Message-ID: <cd3aptjbdf.fsf@fencepost.gnu.org> (raw)
In-Reply-To: jwvzls1dvh9.fsf-monnier+emacs@gnu.org
Stefan Monnier wrote:
>> Isn't this really a problem with defvaralias?
>
> Yes.
>
>> Perhaps we could test there if new-alias is bound and if so assign the
>> value to base-variable.
>
> Indeed except if base-variable already exist, we can't do that.
OK, I think I've installed that.
However if it is to work for the case I posted,
define-obsolete-variable-alias must be placed _before_ an associated
defcustom. A quick glance in some random .el files shows that often it
is not. I know I usually write them the other way round. Time to move
a bunch of them?
next prev parent reply other threads:[~2008-04-11 3:53 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-04-09 19:16 define-obsolete-variable-alias problem Glenn Morris
2008-04-10 4:54 ` Nick Roberts
2008-04-11 1:36 ` Stefan Monnier
2008-04-11 3:53 ` Glenn Morris [this message]
2008-04-11 4:12 ` Glenn Morris
2008-04-11 17:29 ` Stefan Monnier
2008-04-11 18:03 ` Glenn Morris
2008-04-11 19:16 ` Stefan Monnier
2008-04-11 20:14 ` Glenn Morris
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=cd3aptjbdf.fsf@fencepost.gnu.org \
--to=rgm@gnu.org \
--cc=emacs-devel@gnu.org \
--cc=monnier@iro.umontreal.ca \
--cc=nickrob@snap.net.nz \
/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).