unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#66410: 28.2; Symbol’s function definition is void: command-query
@ 2023-10-08 16:29 Paul Stansell
  2023-10-08 19:49 ` Stephen Berman
  0 siblings, 1 reply; 4+ messages in thread
From: Paul Stansell @ 2023-10-08 16:29 UTC (permalink / raw)
  To: 66410

[-- Attachment #1: Type: text/plain, Size: 15877 bytes --]

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))

[-- Attachment #2: Type: text/html, Size: 16901 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* bug#66410: 28.2; Symbol’s function definition is void: command-query
  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
  2023-10-08 20:17   ` Stefan Kangas
  0 siblings, 1 reply; 4+ messages in thread
From: Stephen Berman @ 2023-10-08 19:49 UTC (permalink / raw)
  To: Paul Stansell; +Cc: 66410

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





^ permalink raw reply	[flat|nested] 4+ messages in thread

* bug#66410: 28.2; Symbol’s function definition is void: command-query
  2023-10-08 19:49 ` Stephen Berman
@ 2023-10-08 20:17   ` Stefan Kangas
  2023-10-08 20:29     ` Paul Stansell
  0 siblings, 1 reply; 4+ messages in thread
From: Stefan Kangas @ 2023-10-08 20:17 UTC (permalink / raw)
  To: Stephen Berman, Paul Stansell; +Cc: 66410-done

Stephen Berman <stephen.berman@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.





^ permalink raw reply	[flat|nested] 4+ messages in thread

* bug#66410: 28.2; Symbol’s function definition is void: command-query
  2023-10-08 20:17   ` Stefan Kangas
@ 2023-10-08 20:29     ` Paul Stansell
  0 siblings, 0 replies; 4+ messages in thread
From: Paul Stansell @ 2023-10-08 20:29 UTC (permalink / raw)
  To: Stefan Kangas; +Cc: Stephen Berman, 66410-done

[-- Attachment #1: Type: text/plain, Size: 164 bytes --]

Hello Stefan and Stephen,

I'm very sorry that I didn't notice the version differences.  Thanks very
much for your advice on how I can get the functionality.

Paul

[-- Attachment #2: Type: text/html, Size: 255 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2023-10-08 20:29 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
2023-10-08 20:17   ` Stefan Kangas
2023-10-08 20:29     ` Paul Stansell

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).