Subject: 28.2; Symbol’s function definition is void: command-query
From: Paul Stansell <[email-masked]>
To: [email-masked]
Date: Sun, 8 Oct 2023 17:29:51 +0100
List-Id: <debbugs-submit.debbugs.gnu.org>

Hello,

The following command is given as an example on
https://www.gnu.org/software/emacs/manual/html_node/emacs/Disabling.html

  (command-query
   'end-of-buffer
   "Do you really want to go to the end of the buffer?")

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
Windowing system distributor 'The X.Org Foundation', version 11.0.12101007
System Description: Ubuntu 23.04

Configured using:
 'configure --build x86_64-linux-gnu --prefix=/usr
 --sharedstatedir=/var/lib --libexecdir=/usr/libexec
 --localstatedir=/var/lib --infodir=/usr/share/info
 --mandir=/usr/share/man --with-libsystemd --with-pop=yes
 --enable-locallisppath=/etc/emacs:/usr/local/share/emacs/28.2/site-lisp:/usr/local/share/emacs/site-lisp:/usr/share/emacs/28.2/site-lisp:/usr/share/emacs/site-lisp
 --with-sound=alsa --without-gconf --with-mailutils
 --with-native-compilation --build x86_64-linux-gnu --prefix=/usr
 --sharedstatedir=/var/lib --libexecdir=/usr/libexec
 --localstatedir=/var/lib --infodir=/usr/share/info
 --mandir=/usr/share/man --with-libsystemd --with-pop=yes
 --enable-locallisppath=/etc/emacs:/usr/local/share/emacs/28.2/site-lisp:/usr/local/share/emacs/site-lisp:/usr/share/emacs/28.2/site-lisp:/usr/share/emacs/site-lisp
 --with-sound=alsa --without-gconf --with-mailutils
 --with-native-compilation --with-cairo --with-x=yes
 --with-x-toolkit=gtk3 --with-toolkit-scroll-bars 'CFLAGS=-g -O2
 -ffile-prefix-map=/build/emacs-ezKr5Y/emacs-28.2+1=.
-fstack-protector-strong
 -Wformat -Werror=format-security
 -fdebug-prefix-map=/build/emacs-ezKr5Y/emacs-28.2+1=/usr/src/emacs-1:28.2+1-13ubuntu3
 -Wall' 'CPPFLAGS=-Wdate-time -D_FORTIFY_SOURCE=2'
 'LDFLAGS=-Wl,-Bsymbolic-functions -Wl,-z,relro''

Configured features:
ACL CAIRO DBUS FREETYPE GIF GLIB GMP GNUTLS GPM GSETTINGS HARFBUZZ JPEG
JSON LCMS2 LIBOTF LIBSELINUX LIBSYSTEMD LIBXML2 M17N_FLT MODULES
NATIVE_COMP NOTIFY INOTIFY PDUMPER PNG RSVG SECCOMP SOUND THREADS TIFF
TOOLKIT_SCROLL_BARS X11 XDBE XIM XPM GTK3 ZLIB

Important settings:
  value of $LC_ALL: en_GB.utf8
  value of $LC_TIME: C
  value of $LANG: en_GB.UTF-8
  value of $XMODIFIERS: @im=ibus
  locale-coding-system: utf-8-unix

Major mode: Lisp Interaction

Minor modes in effect:
  tooltip-mode: t
  global-eldoc-mode: t
  eldoc-mode: t
  show-paren-mode: t
  electric-indent-mode: t
  mouse-wheel-mode: t
  tool-bar-mode: t
  menu-bar-mode: t
  file-name-shadow-mode: t
  global-font-lock-mode: t
  font-lock-mode: t
  blink-cursor-mode: t
  auto-composition-mode: t
  auto-encryption-mode: t
  auto-compression-mode: t
  line-number-mode: t
  indent-tabs-mode: t
  transient-mark-mode: t

Load-path shadows:
/home/ps/.emacs.d/org-mode-git/lisp/org-crypt hides
/usr/share/emacs/28.2/lisp/org/org-crypt
/home/ps/.emacs.d/org-mode-git/lisp/org-macs hides
/usr/share/emacs/28.2/lisp/org/org-macs
/home/ps/.emacs.d/org-mode-git/lisp/ob-sed hides
/usr/share/emacs/28.2/lisp/org/ob-sed
/home/ps/.emacs.d/org-mode-git/lisp/ob-scheme hides
/usr/share/emacs/28.2/lisp/org/ob-scheme
/home/ps/.emacs.d/org-mode-git/lisp/org-refile hides
/usr/share/emacs/28.2/lisp/org/org-refile
/home/ps/.emacs.d/org-mode-git/lisp/oc-natbib hides
/usr/share/emacs/28.2/lisp/org/oc-natbib
/home/ps/.emacs.d/org-mode-git/lisp/org-attach hides
/usr/share/emacs/28.2/lisp/org/org-attach
/home/ps/.emacs.d/org-mode-git/lisp/ob-lisp hides
/usr/share/emacs/28.2/lisp/org/ob-lisp
/home/ps/.emacs.d/org-mode-git/lisp/org-list hides
/usr/share/emacs/28.2/lisp/org/org-list
/home/ps/.emacs.d/org-mode-git/lisp/ol-w3m hides
/usr/share/emacs/28.2/lisp/org/ol-w3m
/home/ps/.emacs.d/org-mode-git/lisp/ob-python hides
/usr/share/emacs/28.2/lisp/org/ob-python
/home/ps/.emacs.d/org-mode-git/lisp/ob-groovy hides
/usr/share/emacs/28.2/lisp/org/ob-groovy
/home/ps/.emacs.d/org-mode-git/lisp/ol-eww hides
/usr/share/emacs/28.2/lisp/org/ol-eww
/home/ps/.emacs.d/org-mode-git/lisp/ob-dot hides
/usr/share/emacs/28.2/lisp/org/ob-dot
/home/ps/.emacs.d/org-mode-git/lisp/ox-icalendar hides
/usr/share/emacs/28.2/lisp/org/ox-icalendar
/home/ps/.emacs.d/org-mode-git/lisp/ol hides
/usr/share/emacs/28.2/lisp/org/ol
/home/ps/.emacs.d/org-mode-git/lisp/ob-fortran hides
/usr/share/emacs/28.2/lisp/org/ob-fortran
/home/ps/.emacs.d/org-mode-git/lisp/org-loaddefs hides
/usr/share/emacs/28.2/lisp/org/org-loaddefs
/home/ps/.emacs.d/org-mode-git/lisp/ob-perl hides
/usr/share/emacs/28.2/lisp/org/ob-perl
/home/ps/.emacs.d/org-mode-git/lisp/org-clock hides
/usr/share/emacs/28.2/lisp/org/org-clock
/home/ps/.emacs.d/org-mode-git/lisp/org-capture hides
/usr/share/emacs/28.2/lisp/org/org-capture
/home/ps/.emacs.d/org-mode-git/lisp/ob-julia hides
/usr/share/emacs/28.2/lisp/org/ob-julia
/home/ps/.emacs.d/org-mode-git/lisp/org-keys hides
/usr/share/emacs/28.2/lisp/org/org-keys
/home/ps/.emacs.d/org-mode-git/lisp/org-num hides
/usr/share/emacs/28.2/lisp/org/org-num
/home/ps/.emacs.d/org-mode-git/lisp/ol-info hides
/usr/share/emacs/28.2/lisp/org/ol-info
/home/ps/.emacs.d/org-mode-git/lisp/ob-tangle hides
/usr/share/emacs/28.2/lisp/org/ob-tangle
/home/ps/.emacs.d/org-mode-git/lisp/ob-octave hides
/usr/share/emacs/28.2/lisp/org/ob-octave
/home/ps/.emacs.d/org-mode-git/lisp/ob-gnuplot hides
/usr/share/emacs/28.2/lisp/org/ob-gnuplot
/home/ps/.emacs.d/org-mode-git/lisp/ol-mhe hides
/usr/share/emacs/28.2/lisp/org/ol-mhe
/home/ps/.emacs.d/org-mode-git/lisp/oc-biblatex hides
/usr/share/emacs/28.2/lisp/org/oc-biblatex
/home/ps/.emacs.d/org-mode-git/lisp/ob-sql hides
/usr/share/emacs/28.2/lisp/org/ob-sql
/home/ps/.emacs.d/org-mode-git/lisp/org-indent hides
/usr/share/emacs/28.2/lisp/org/org-indent
/home/ps/.emacs.d/org-mode-git/lisp/ob-clojure hides
/usr/share/emacs/28.2/lisp/org/ob-clojure
/home/ps/.emacs.d/org-mode-git/lisp/ox-texinfo hides
/usr/share/emacs/28.2/lisp/org/ox-texinfo
/home/ps/.emacs.d/org-mode-git/lisp/org-agenda hides
/usr/share/emacs/28.2/lisp/org/org-agenda
/home/ps/.emacs.d/org-mode-git/lisp/ol-doi hides
/usr/share/emacs/28.2/lisp/org/ol-doi
/home/ps/.emacs.d/org-mode-git/lisp/ob-forth hides
/usr/share/emacs/28.2/lisp/org/ob-forth
/home/ps/.emacs.d/org-mode-git/lisp/org-macro hides
/usr/share/emacs/28.2/lisp/org/org-macro
/home/ps/.emacs.d/org-mode-git/lisp/org-habit hides
/usr/share/emacs/28.2/lisp/org/org-habit
/home/ps/.emacs.d/org-mode-git/lisp/ob-calc hides
/usr/share/emacs/28.2/lisp/org/ob-calc
/home/ps/.emacs.d/org-mode-git/lisp/org-element hides
/usr/share/emacs/28.2/lisp/org/org-element
/home/ps/.emacs.d/org-mode-git/lisp/ob-makefile hides
/usr/share/emacs/28.2/lisp/org/ob-makefile
/home/ps/.emacs.d/org-mode-git/lisp/ob-latex hides
/usr/share/emacs/28.2/lisp/org/ob-latex
/home/ps/.emacs.d/org-mode-git/lisp/ol-irc hides
/usr/share/emacs/28.2/lisp/org/ol-irc
/home/ps/.emacs.d/org-mode-git/lisp/org-protocol hides
/usr/share/emacs/28.2/lisp/org/org-protocol
/home/ps/.emacs.d/org-mode-git/lisp/ob-js hides
/usr/share/emacs/28.2/lisp/org/ob-js
/home/ps/.emacs.d/org-mode-git/lisp/org-mouse hides
/usr/share/emacs/28.2/lisp/org/org-mouse
/home/ps/.emacs.d/org-mode-git/lisp/org-table hides
/usr/share/emacs/28.2/lisp/org/org-table
/home/ps/.emacs.d/org-mode-git/lisp/oc-csl hides
/usr/share/emacs/28.2/lisp/org/oc-csl
/home/ps/.emacs.d/org-mode-git/lisp/ol-bibtex hides
/usr/share/emacs/28.2/lisp/org/ol-bibtex
/home/ps/.emacs.d/org-mode-git/lisp/org hides
/usr/share/emacs/28.2/lisp/org/org
/home/ps/.emacs.d/org-mode-git/lisp/org-colview hides
/usr/share/emacs/28.2/lisp/org/org-colview
/home/ps/.emacs.d/org-mode-git/lisp/oc hides
/usr/share/emacs/28.2/lisp/org/oc
/home/ps/.emacs.d/org-mode-git/lisp/ob-C hides
/usr/share/emacs/28.2/lisp/org/ob-C
/home/ps/.emacs.d/org-mode-git/lisp/ob-org hides
/usr/share/emacs/28.2/lisp/org/ob-org
/home/ps/.emacs.d/org-mode-git/lisp/ob-haskell hides
/usr/share/emacs/28.2/lisp/org/ob-haskell
/home/ps/.emacs.d/org-mode-git/lisp/ob-processing hides
/usr/share/emacs/28.2/lisp/org/ob-processing
/home/ps/.emacs.d/org-mode-git/lisp/ob-ruby hides
/usr/share/emacs/28.2/lisp/org/ob-ruby
/home/ps/.emacs.d/org-mode-git/lisp/ob-eval hides
/usr/share/emacs/28.2/lisp/org/ob-eval
/home/ps/.emacs.d/org-mode-git/lisp/org-version hides
/usr/share/emacs/28.2/lisp/org/org-version
/home/ps/.emacs.d/org-mode-git/lisp/org-plot hides
/usr/share/emacs/28.2/lisp/org/org-plot
/home/ps/.emacs.d/org-mode-git/lisp/ol-man hides
/usr/share/emacs/28.2/lisp/org/ol-man
/home/ps/.emacs.d/org-mode-git/lisp/ob-comint hides
/usr/share/emacs/28.2/lisp/org/ob-comint
/home/ps/.emacs.d/org-mode-git/lisp/ob-ocaml hides
/usr/share/emacs/28.2/lisp/org/ob-ocaml
/home/ps/.emacs.d/org-mode-git/lisp/org-ctags hides
/usr/share/emacs/28.2/lisp/org/org-ctags
/home/ps/.emacs.d/org-mode-git/lisp/org-footnote hides
/usr/share/emacs/28.2/lisp/org/org-footnote
/home/ps/.emacs.d/org-mode-git/lisp/ol-docview hides
/usr/share/emacs/28.2/lisp/org/ol-docview
/home/ps/.emacs.d/org-mode-git/lisp/ox-publish hides
/usr/share/emacs/28.2/lisp/org/ox-publish
/home/ps/.emacs.d/org-mode-git/lisp/ol-gnus hides
/usr/share/emacs/28.2/lisp/org/ol-gnus
/home/ps/.emacs.d/org-mode-git/lisp/oc-basic hides
/usr/share/emacs/28.2/lisp/org/oc-basic
/home/ps/.emacs.d/org-mode-git/lisp/ob-maxima hides
/usr/share/emacs/28.2/lisp/org/ob-maxima
/home/ps/.emacs.d/org-mode-git/lisp/ob-ditaa hides
/usr/share/emacs/28.2/lisp/org/ob-ditaa
/home/ps/.emacs.d/org-mode-git/lisp/ol-eshell hides
/usr/share/emacs/28.2/lisp/org/ol-eshell
/home/ps/.emacs.d/org-mode-git/lisp/ob hides
/usr/share/emacs/28.2/lisp/org/ob
/home/ps/.emacs.d/org-mode-git/lisp/org-lint hides
/usr/share/emacs/28.2/lisp/org/org-lint
/home/ps/.emacs.d/org-mode-git/lisp/ob-java hides
/usr/share/emacs/28.2/lisp/org/ob-java
/home/ps/.emacs.d/org-mode-git/lisp/ox-koma-letter hides
/usr/share/emacs/28.2/lisp/org/ox-koma-letter
/home/ps/.emacs.d/org-mode-git/lisp/org-faces hides
/usr/share/emacs/28.2/lisp/org/org-faces
/home/ps/.emacs.d/org-mode-git/lisp/ob-eshell hides
/usr/share/emacs/28.2/lisp/org/ob-eshell
/home/ps/.emacs.d/org-mode-git/lisp/org-compat hides
/usr/share/emacs/28.2/lisp/org/org-compat
/home/ps/.emacs.d/org-mode-git/lisp/org-tempo hides
/usr/share/emacs/28.2/lisp/org/org-tempo
/home/ps/.emacs.d/org-mode-git/lisp/ob-exp hides
/usr/share/emacs/28.2/lisp/org/ob-exp
/home/ps/.emacs.d/org-mode-git/lisp/ox-html hides
/usr/share/emacs/28.2/lisp/org/ox-html
/home/ps/.emacs.d/org-mode-git/lisp/ox-org hides
/usr/share/emacs/28.2/lisp/org/ox-org
/home/ps/.emacs.d/org-mode-git/lisp/ob-lua hides
/usr/share/emacs/28.2/lisp/org/ob-lua
/home/ps/.emacs.d/org-mode-git/lisp/ob-screen hides
/usr/share/emacs/28.2/lisp/org/ob-screen
/home/ps/.emacs.d/org-mode-git/lisp/org-src hides
/usr/share/emacs/28.2/lisp/org/org-src
/home/ps/.emacs.d/org-mode-git/lisp/org-mobile hides
/usr/share/emacs/28.2/lisp/org/org-mobile
/home/ps/.emacs.d/org-mode-git/lisp/ob-sqlite hides
/usr/share/emacs/28.2/lisp/org/ob-sqlite
/home/ps/.emacs.d/org-mode-git/lisp/ob-sass hides
/usr/share/emacs/28.2/lisp/org/ob-sass
/home/ps/.emacs.d/org-mode-git/lisp/ox-odt hides
/usr/share/emacs/28.2/lisp/org/ox-odt
/home/ps/.emacs.d/org-mode-git/lisp/ob-plantuml hides
/usr/share/emacs/28.2/lisp/org/ob-plantuml
/home/ps/.emacs.d/org-mode-git/lisp/ob-shell hides
/usr/share/emacs/28.2/lisp/org/ob-shell
/home/ps/.emacs.d/org-mode-git/lisp/ob-css hides
/usr/share/emacs/28.2/lisp/org/ob-css
/home/ps/.emacs.d/org-mode-git/lisp/ox-man hides
/usr/share/emacs/28.2/lisp/org/ox-man
/home/ps/.emacs.d/org-mode-git/lisp/ob-matlab hides
/usr/share/emacs/28.2/lisp/org/ob-matlab
/home/ps/.emacs.d/org-mode-git/lisp/ob-lilypond hides
/usr/share/emacs/28.2/lisp/org/ob-lilypond
/home/ps/.emacs.d/org-mode-git/lisp/org-entities hides
/usr/share/emacs/28.2/lisp/org/org-entities
/home/ps/.emacs.d/org-mode-git/lisp/ox-beamer hides
/usr/share/emacs/28.2/lisp/org/ox-beamer
/home/ps/.emacs.d/org-mode-git/lisp/org-pcomplete hides
/usr/share/emacs/28.2/lisp/org/org-pcomplete
/home/ps/.emacs.d/org-mode-git/lisp/ob-lob hides
/usr/share/emacs/28.2/lisp/org/ob-lob
/home/ps/.emacs.d/org-mode-git/lisp/org-datetree hides
/usr/share/emacs/28.2/lisp/org/org-datetree
/home/ps/.emacs.d/org-mode-git/lisp/ob-R hides
/usr/share/emacs/28.2/lisp/org/ob-R
/home/ps/.emacs.d/org-mode-git/lisp/org-inlinetask hides
/usr/share/emacs/28.2/lisp/org/org-inlinetask
/home/ps/.emacs.d/org-mode-git/lisp/ox-ascii hides
/usr/share/emacs/28.2/lisp/org/ox-ascii
/home/ps/.emacs.d/org-mode-git/lisp/ob-awk hides
/usr/share/emacs/28.2/lisp/org/ob-awk
/home/ps/.emacs.d/org-mode-git/lisp/org-feed hides
/usr/share/emacs/28.2/lisp/org/org-feed
/home/ps/.emacs.d/org-mode-git/lisp/ob-ref hides
/usr/share/emacs/28.2/lisp/org/ob-ref
/home/ps/.emacs.d/org-mode-git/lisp/org-archive hides
/usr/share/emacs/28.2/lisp/org/org-archive
/home/ps/.emacs.d/org-mode-git/lisp/org-duration hides
/usr/share/emacs/28.2/lisp/org/org-duration
/home/ps/.emacs.d/org-mode-git/lisp/org-timer hides
/usr/share/emacs/28.2/lisp/org/org-timer
/home/ps/.emacs.d/org-mode-git/lisp/ob-table hides
/usr/share/emacs/28.2/lisp/org/ob-table
/home/ps/.emacs.d/org-mode-git/lisp/ox hides
/usr/share/emacs/28.2/lisp/org/ox
/home/ps/.emacs.d/org-mode-git/lisp/ol-bbdb hides
/usr/share/emacs/28.2/lisp/org/ol-bbdb
/home/ps/.emacs.d/org-mode-git/lisp/ox-md hides
/usr/share/emacs/28.2/lisp/org/ox-md
/home/ps/.emacs.d/org-mode-git/lisp/org-goto hides
/usr/share/emacs/28.2/lisp/org/org-goto
/home/ps/.emacs.d/org-mode-git/lisp/ob-emacs-lisp hides
/usr/share/emacs/28.2/lisp/org/ob-emacs-lisp
/home/ps/.emacs.d/org-mode-git/lisp/org-id hides
/usr/share/emacs/28.2/lisp/org/org-id
/home/ps/.emacs.d/org-mode-git/lisp/ol-rmail hides
/usr/share/emacs/28.2/lisp/org/ol-rmail
/home/ps/.emacs.d/org-mode-git/lisp/org-attach-git hides
/usr/share/emacs/28.2/lisp/org/org-attach-git
/home/ps/.emacs.d/org-mode-git/lisp/ob-core hides
/usr/share/emacs/28.2/lisp/org/ob-core
/home/ps/.emacs.d/org-mode-git/lisp/ox-latex hides
/usr/share/emacs/28.2/lisp/org/ox-latex

Features:
(shadow sort mail-extr emacsbug message rmc puny dired dired-loaddefs
rfc822 mml mml-sec epa derived epg rfc6068 epg-config gnus-util rmail
rmail-loaddefs auth-source cl-seq eieio eieio-core cl-macs
eieio-loaddefs password-cache json map text-property-search time-date
subr-x seq byte-opt gv bytecomp byte-compile cconv mm-decode mm-bodies
mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader cl-loaddefs
cl-lib sendmail rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mail-utils
org-loaddefs iso-transl tooltip eldoc paren electric uniquify ediff-hook
vc-hooks lisp-float-type elisp-mode mwheel term/x-win x-win
term/common-win x-dnd tool-bar dnd fontset image regexp-opt fringe
tabulated-list replace newcomment text-mode lisp-mode prog-mode register
page tab-bar menu-bar rfn-eshadow isearch easymenu timer select
scroll-bar mouse jit-lock font-lock syntax font-core term/tty-colors
frame minibuffer cl-generic cham georgian utf-8-lang misc-lang
vietnamese tibetan thai tai-viet lao korean japanese eucjp-ms cp51932
hebrew greek romanian slovak czech european ethiopic indian cyrillic
chinese composite emoji-zwj charscript charprop case-table epa-hook
jka-cmpr-hook help simple abbrev obarray cl-preloaded nadvice button
loaddefs faces cus-face macroexp files window text-properties overlay
sha1 md5 base64 format env code-pages mule custom widget
hashtable-print-readable backquote threads dbusbind inotify lcms2
dynamic-setting system-font-setting font-render-setting cairo
move-toolbar gtk x-toolkit x multi-tty make-network-process
native-compile emacs)

Memory information:
((conses 16 70327 7391)
 (symbols 48 6916 2)
 (strings 32 20465 2320)
 (string-bytes 1 785075)
 (vectors 16 13801)
 (vector-slots 8 295382 12814)
 (floats 8 23 31)
 (intervals 56 291 0)
 (buffers 992 12))