unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Lars Ingebrigtsen <larsi@gnus.org>
To: Glenn Morris <rgm@gnu.org>
Cc: 12997@debbugs.gnu.org
Subject: bug#12997: Add some way to mark autoloads as obsolete
Date: Tue, 10 May 2022 14:22:34 +0200	[thread overview]
Message-ID: <87tu9xinlh.fsf@gnus.org> (raw)
In-Reply-To: <r9d2z16srh.fsf@fencepost.gnu.org> (Glenn Morris's message of "Sun, 25 Nov 2012 20:46:10 -0500")

Glenn Morris <rgm@gnu.org> writes:

> It would be handy if there was a way to mark autoloads obsolete.
> Then if the relevant function/variable is accessed without the
> associated package being already loaded, a warning would be produced.
> (Either from the byte-compiler or via display-warning at the end of
> loading ~/.emacs.)

I may well be misunderstanding what you mean here, but if you

;;;###autoload
(defun foo ()
  (declare (obsolete nil "25.1"))

then that obsoletion form also makes it into the loaddefs file, so this
seems like it should already work?

Or is this something that's been fixed in the decade since the bug
report was opened?

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no





  reply	other threads:[~2022-05-10 12:22 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-11-26  1:46 bug#12997: Add some way to mark autoloads as obsolete Glenn Morris
2022-05-10 12:22 ` Lars Ingebrigtsen [this message]
2022-06-09 15:05   ` Lars Ingebrigtsen
2022-06-14 17:54     ` 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=87tu9xinlh.fsf@gnus.org \
    --to=larsi@gnus.org \
    --cc=12997@debbugs.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).