From: Stephen Berman <stephen.berman@gmx.net>
To: Paul Stansell <paulstansell@gmail.com>
Cc: 66410@debbugs.gnu.org
Subject: bug#66410: 28.2; Symbol’s function definition is void: command-query
Date: Sun, 08 Oct 2023 21:49:16 +0200 [thread overview]
Message-ID: <87zg0sgair.fsf@gmx.net> (raw)
In-Reply-To: <CAMJKaZx3F_AFfN+75Dhudz_aiuePV5aHqPEaj-=dcNCPZYerWw@mail.gmail.com> (Paul Stansell's message of "Sun, 8 Oct 2023 17:29:51 +0100")
On Sun, 8 Oct 2023 17:29:51 +0100 Paul Stansell <paulstansell@gmail.com> wrote:
> Hello,
>
> The following command is given as an example on
> https://www.gnu.org/software/emacs/manual/html_node/emacs/Disabling.html
This online manual is for Emacs version 29.1 (as you can see if you
click the "Contents" link at the top of that page),
> (command-query
> 'end-of-buffer
> "Do you really want to go to the end of the buffer?")
and `command-query' was first added to Emacs in version 29.1,
> However, when I try it in my emacs init.el get this error
>
> load-with-code-conversion: Symbol's function definition is void: command-query
>
> Thanks,
>
> Paul
>
> In GNU Emacs 28.2 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.37, cairo version 1.16.0)
> of 2023-03-16, modified by Debian built on lcy02-amd64-035
but you are evidently using Emacs 28.2, that's why it doesn't know
`command-query'. But the definition is short:
(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.)
Steve Berman
next prev parent reply other threads:[~2023-10-08 19:49 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-10-08 16:29 bug#66410: 28.2; Symbol’s function definition is void: command-query Paul Stansell
2023-10-08 19:49 ` Stephen Berman [this message]
2023-10-08 20:17 ` Stefan Kangas
2023-10-08 20:29 ` Paul Stansell
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=87zg0sgair.fsf@gmx.net \
--to=stephen.berman@gmx.net \
--cc=66410@debbugs.gnu.org \
--cc=paulstansell@gmail.com \
/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.