unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: Uwe Brauer <oub@mat.ucm.es>
Cc: emacs-devel@gnu.org
Subject: Re: 29.2: (void-function batch-update-autoloads)
Date: Sun, 25 Aug 2024 21:24:19 +0300	[thread overview]
Message-ID: <861q2clauk.fsf@gnu.org> (raw)
In-Reply-To: <871q2csh9l.fsf@mat.ucm.es> (emacs-devel@gnu.org)

> Date: Sun, 25 Aug 2024 18:23:50 +0200
> From:  Uwe Brauer via "Emacs development discussions." <emacs-devel@gnu.org>
> 
> > You can still use that function, if you want, after loading its
> > package from lisp/obsolete.  If you want to migrate to the new
> > facility, the function to use is loaddefs-generate--emacs-batch,
> > defined in the new file lisp/emacs-lisp/loaddefs-gen.el.  
> 
> Thanks, but it still does not work, the relevant line of the Makefile now reads
> ,----
> | 
> | EMACS=/usr/local/bin/emacs
> | EMACSFLAGS=-batch --no-site-file --eval '(setq debug-on-error t)'
> | 
> | autoloads: 
> | 	$(EMACS) $(EMACSFLAGS) $(addprefix -L ,$(LOADPATH)) --eval '(setq generated-autoload-file "$(abspath $(LOADDEFS))")' -f loaddefs-generate--emacs-batch $(abspath $(LOADDIRS))
> `----

I don't know where did you take this from.  In Emacs 29.2,
lisp/Makefile says something very different:

  autoloads: $(lisp)/emacs-lisp/loaddefs-gen.elc gen-lisp
	  $(AM_V_GEN)$(emacs) \
	      -l $(lisp)/emacs-lisp/loaddefs-gen.elc \
	      -f loaddefs-generate--emacs-batch ${SUBDIRS_ALMOST}

> Using 29.2, but I receive still, 
> (void-function loaddefs-generate--emacs-batch)

And what is the textbook solution in Emacs for void-function errors?

> >> [1]  (I know it has a lot of benefits to change function and variable
> >> names, but for those who don't participate in such discussion such
> >> changes cause a bit of inconveniences  to say the least)
> 
> > You are being unfair to us.  We never remove stuff entirely before
> > keeping it deprecated enough years to let everyone adapt. 
> 
> I have to admit, and that might be a very personal defect of mine, I do
> not pay much attention to the question of a function/variable being
> deprecated, since it just works, and I am sure I am not alone with this attitude.

That's not what I meant.  What I meant was that you are not expected
to assume that a function that "disappeared" was summarily removed
from Emacs without any consideration for those who might still need
it.  That function is still available, it was only moved to
lisp/obsolete/, that's all.

> That being said I just wished, that there would be a more centralised
> file or directory, where obsolete functions and variables were listed.

The lisp/obsolete/ directory is home for all such functions and
variables.



  reply	other threads:[~2024-08-25 18:24 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-08-25  8:52 29.2: (void-function batch-update-autoloads) Uwe Brauer via Emacs development discussions.
2024-08-25 11:30 ` Eli Zaretskii
2024-08-25 16:23   ` Uwe Brauer via Emacs development discussions.
2024-08-25 18:24     ` Eli Zaretskii [this message]
2024-08-26 12:35       ` Uwe Brauer
2024-08-26 12:47         ` Eli Zaretskii
2024-08-26 13:19         ` Arash Esbati
2024-08-26 13:21           ` Uwe Brauer

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=861q2clauk.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=emacs-devel@gnu.org \
    --cc=oub@mat.ucm.es \
    /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).