unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Chad Brown <yandros@MIT.EDU>
To: Stefan Monnier <monnier@iro.umontreal.ca>
Cc: "Stephen J. Turnbull" <stephen@xemacs.org>, emacs-devel@gnu.org
Subject: Re: Obsoleting end-user-functions
Date: Mon, 5 Apr 2010 08:52:28 -0700	[thread overview]
Message-ID: <59FAD0EB-1304-428A-B804-F317B920C068@mit.edu> (raw)
In-Reply-To: <jwvzl1iggpv.fsf-monnier+emacs@gnu.org>

On Apr 5, 2010, at 6:48 AM, Stefan Monnier wrote:

>>> [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.

This seems like a potential place to take advantage of cedet or cedet-like
function marking, in the future.  It won't stop people who never look at their
.emacs files, but if editing your .emacs file caused some functions to be
highlighted in some glaring face, and on mouseover/cursor entry caused
a popup with `OBSOLETE FUNCTION' across the top and a note/link on 
what to use instead, you might have a functional mid-point between just
accepting the function and having it error/signal.

It does seem likely to only catch a small number of users who aren't 
following emacs closely enough to notice when functions are obsoleted
but yet are still changing their .emacs now and then.

Just a thought,
*Chad



  parent reply	other threads:[~2010-04-05 15:52 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               ` Obsoleting end-user-functions Stefan Monnier
2010-04-05 14:03                 ` Davis Herring
2010-04-05 15:52                 ` Chad Brown [this message]
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

  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=59FAD0EB-1304-428A-B804-F317B920C068@mit.edu \
    --to=yandros@mit.edu \
    --cc=emacs-devel@gnu.org \
    --cc=monnier@iro.umontreal.ca \
    --cc=stephen@xemacs.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).