From: Stefan Monnier <monnier@iro.umontreal.ca>
To: "Stephen J. Turnbull" <stephen@xemacs.org>
Cc: Chad Brown <yandros@MIT.EDU>, emacs-devel@gnu.org
Subject: Re: Obsoleting end-user-functions
Date: Mon, 05 Apr 2010 09:48:01 -0400 [thread overview]
Message-ID: <jwvzl1iggpv.fsf-monnier+emacs@gnu.org> (raw)
In-Reply-To: <87r5mupr6l.fsf@uwakimon.sk.tsukuba.ac.jp> (Stephen J. Turnbull's message of "Mon, 05 Apr 2010 11:29:54 +0900")
>> [C]urrently we don't have any good way to obsolete end-user-functions,
>> since the obsolescence-info is only used by the byte-compiler
> Two easy, non-invasive ideas:
> (1) Have help functions such as describe-function present the o-info
> (and maybe apropos could have a very abbreviated notation)
Done since Emacs-22. But in my experience most users won't use C-h f on
a function they already use in their .emacs: that code will just sit
there to rot until it breaks.
> (2) Provide a help-obsolete (maybe apropos-obsolete is a better name?)
> function which lists all symbols with o-info in apropos style.
Even less likely to be used.
>> which the end-user is likely to never run on his .emacs).
> A harder, invasive idea: get rid of explicit byte-compilation, by
> default. If Emacs always byte-compiles out-of-date libraries at load
> time, the warnings would be generated.
Yes, that's one of the two possible directions I see:
- output a warning when the obsolete function is called.
[ I use that in my locally patched Emacs, but people would scream
when their obsolete function gets called in a loop and they get
an apparently endless stream of repeated warnings. ]
- apply at least the analysis&warnings part of the byte-compiler to the
.emacs when loading it.
Stefan
PS: The problem with auto-byte-compiling is that I don't want to waste
my time arguing about the old issue of "prefer an old .elc to a new .el".
next prev parent reply other threads:[~2010-04-05 13:48 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-04-03 1:23 turn-on-bug-reference-mode, turn-on-bug-reference-prog-mode type functions Dan Nicolaescu
2010-04-03 2:00 ` Stefan Monnier
2010-04-03 18:00 ` Richard Stallman
2010-04-03 18:17 ` Davis Herring
2010-04-03 19:43 ` Chad Brown
2010-04-04 14:26 ` Stefan Monnier
2010-04-04 16:19 ` Chad Brown
2010-04-04 18:53 ` Stefan Monnier
2010-04-05 2:29 ` Obsoleting end-user-functions [was: turn-on-* type functions] Stephen J. Turnbull
2010-04-05 3:11 ` Daniel Colascione
2010-04-05 7:19 ` Drew Adams
2010-04-06 6:41 ` Stephen J. Turnbull
2010-04-05 13:48 ` Stefan Monnier [this message]
2010-04-05 14:03 ` Obsoleting end-user-functions Davis Herring
2010-04-05 15:52 ` Chad Brown
2010-04-06 6:48 ` Stephen J. Turnbull
2010-04-07 3:21 ` Richard Stallman
2010-04-04 17:36 ` turn-on-bug-reference-mode, turn-on-bug-reference-prog-mode type functions Richard Stallman
2010-04-03 19:23 ` Dan Nicolaescu
2010-04-03 19:23 ` Stefan Monnier
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=jwvzl1iggpv.fsf-monnier+emacs@gnu.org \
--to=monnier@iro.umontreal.ca \
--cc=emacs-devel@gnu.org \
--cc=stephen@xemacs.org \
--cc=yandros@MIT.EDU \
/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 external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.