GNU bug report logs - #66410
28.2; Symbol’s function definition is void: command-query

Previous Next

Package: emacs;

Reported by: Paul Stansell <paulstansell <at> gmail.com>

Date: Sun, 8 Oct 2023 19:27:02 UTC

Severity: normal

Found in version 28.2

Done: Stefan Kangas <stefankangas <at> gmail.com>

Bug is archived. No further changes may be made.

Full log


Message #13 received at 66410-done <at> debbugs.gnu.org (full text, mbox):

From: Stefan Kangas <stefankangas <at> gmail.com>
To: Stephen Berman <stephen.berman <at> gmx.net>,
 Paul Stansell <paulstansell <at> gmail.com>
Cc: 66410-done <at> debbugs.gnu.org
Subject: Re: bug#66410: 28.2; Symbol’s function definition is void: command-query
Date: Sun, 8 Oct 2023 20:17:39 +0000
Stephen Berman <stephen.berman <at> gmx.net> writes:

> (defun command-query (command query &optional verbose)
>   "Make executing COMMAND issue QUERY to the user.
> This will, by default, use `y-or-n-p', but if VERBOSE,
> `yes-or-no-p' is used instead."
>   (put command 'disabled
>        (list 'query (not (not verbose)) query)))
>
> so you could add it to your init file before the above use of it.  (But
> if you later update to Emacs 29.1 or later, you should then remove the
> definition from your init file.)

I'd use this:

(when (< emacs-major-version 29)
  (defun command-query (command query &optional verbose)
    "Make executing COMMAND issue QUERY to the user.
This will, by default, use `y-or-n-p', but if VERBOSE,
`yes-or-no-p' is used instead."
    (put command 'disabled
         (list 'query (not (not verbose)) query))))

I don't see a bug here, so I'm closing this now.  Thanks.




This bug report was last modified 1 year and 222 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.