X-Loop: help-debbugs@HIDDEN Subject: bug#78156: 31.0.50; 3.2 Install a Function Definition Resent-From: badli al rashid <theothernighttheotherday@HIDDEN> Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> Resent-CC: bug-gnu-emacs@HIDDEN Resent-Date: Wed, 30 Apr 2025 06:03:02 +0000 Resent-Message-ID: <handler.78156.B.174599292725417 <at> debbugs.gnu.org> Resent-Sender: help-debbugs@HIDDEN X-GNU-PR-Message: report 78156 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: 78156 <at> debbugs.gnu.org X-Debbugs-Original-To: bug-gnu-emacs@HIDDEN Received: via spool by submit <at> debbugs.gnu.org id=B.174599292725417 (code B ref -1); Wed, 30 Apr 2025 06:03:02 +0000 Received: (at submit) by debbugs.gnu.org; 30 Apr 2025 06:02:07 +0000 Received: from localhost ([127.0.0.1]:38685 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1uA0WE-0006bs-HG for submit <at> debbugs.gnu.org; Wed, 30 Apr 2025 02:02:07 -0400 Received: from lists.gnu.org ([2001:470:142::17]:60672) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from <theothernighttheotherday@HIDDEN>) id 1uA0WB-0006bC-KK for submit <at> debbugs.gnu.org; Wed, 30 Apr 2025 02:02:04 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <theothernighttheotherday@HIDDEN>) id 1uA0Vy-0000rB-K0 for bug-gnu-emacs@HIDDEN; Wed, 30 Apr 2025 02:01:52 -0400 Received: from mail-wm1-x330.google.com ([2a00:1450:4864:20::330]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from <theothernighttheotherday@HIDDEN>) id 1uA0Vv-0001Ys-TP for bug-gnu-emacs@HIDDEN; Wed, 30 Apr 2025 02:01:50 -0400 Received: by mail-wm1-x330.google.com with SMTP id 5b1f17b1804b1-43cfebc343dso46755375e9.2 for <bug-gnu-emacs@HIDDEN>; Tue, 29 Apr 2025 23:01:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1745992902; x=1746597702; darn=gnu.org; h=to:subject:message-id:date:from:mime-version:from:to:cc:subject :date:message-id:reply-to; bh=G3X9fJWpLWEeesaqL6Q42XUSZV+toFz836YCs6XvRg0=; b=lz0VE9rx0eZXzzytLNYcO/MSOYY3lioYhMiR4LQUORpJxnuExkoaJJu6/wjKdqBula 8ibAm4yUREWrGqc/CNQ3uBzcW22sAXD6rYTG5uS3PEWqKsa7xwsGteBujl8XklSCtJiv mVxphihY0Ua6SFJyXqgdD2TVZy8dLfi8o1jcV3EHZLL5TRBkMVGyC0uzLTtMSNco7ny+ agaE8CuGtr8IPWC5zLvYMD/SO5Nz5zoL5qdagJdaBohsDlS/PhVCYymMjCqR4KH0FyCT A+rhkPupGsIA6txKIyfPCZEcESy8lUnFU3F2MlsB3weQXNJZhXOdNbc15cbZYY6Mbg1o unsQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1745992902; x=1746597702; h=to:subject:message-id:date:from:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=G3X9fJWpLWEeesaqL6Q42XUSZV+toFz836YCs6XvRg0=; b=rlaWpQSuUi7fwCmRDymhyROMMFFlKZZGFyXF0mqKUT3cQ6pB5XjM/DazyeDH9/7Hk8 zB/Mt9IdaDozIHYmcNxc5nDBsyD7uSAIOovNVhOzoVu8sVFDreiDkm7Dmht6gGd5DQHD xd8P3XG2MmYTNbJ8L59Cb6j91PT9wbCWtAdaDxLZCzoqUd83qXZgHgtlutkl8Ik0V/eN atoSbw+4fNJ4aF9yV0q4AI6jnisHLaH5V1UMW6ezyRUVRpep1S/hAkmUPh5HWE6L3dva l8LT2MZgZhhHDndElxhed2GF4p2Lrfx7rd2veYiAOyTo7ZaFIsxGFvrpbOQB6eozSYuV GY9w== X-Gm-Message-State: AOJu0YzLmWdF68SUgyW9TL1UwfPTitB7SoXPx0hG78U8fgcnI0dl5MRE btLbAQxviSuHPszdFSezSUrW4hg7Vuq/LFj/NjiFbmCg05uOEe9mKZ4DB8rRsZfHP9nDq8GI+TM i2OEsxMogPe21ZGBNFVt1SwFfc6f8yw== X-Gm-Gg: ASbGnctSg7sxnRmKWleLVT2rSBQgBe2gqMz0t1c5klNz/yDeKP59m+JfIQcI/oyG2QA 0yRmsNGjXLYL7dSSz1bOO8LNUayUrmAFP2He8TyMx2NNQQJJo/q7f+lyf1kVqJbSQKZF3d/7LLB d3lp4VFHEZQJ34pCyFboHo X-Google-Smtp-Source: AGHT+IED+ZWGcTFAO8Q45q0h2epRJIPjB6321oSAs5lnZxt68O2eDylAMhFPQ8i+taaXdpeTrN2T62cp2MbxnfqAwJ0= X-Received: by 2002:a5d:6488:0:b0:3a0:8c3d:d7ed with SMTP id ffacd0b85a97d-3a08f7a27d4mr1395891f8f.30.1745992902430; Tue, 29 Apr 2025 23:01:42 -0700 (PDT) MIME-Version: 1.0 From: badli al rashid <theothernighttheotherday@HIDDEN> Date: Wed, 30 Apr 2025 14:01:30 +0800 X-Gm-Features: ATxdqUERHhA4KjlSn-QZp4PwnRwGZSMNM7J_eAiR7OSyBljQb7i-snhZmExJm7E Message-ID: <CAJinB_CrLdFX61FG5Zt7yRKgZ76kR9B09_zO_MkXk76Y7Xj_WA@HIDDEN> Content-Type: multipart/alternative; boundary="000000000000baef270633f8a682" Received-SPF: pass client-ip=2a00:1450:4864:20::330; envelope-from=theothernighttheotherday@HIDDEN; helo=mail-wm1-x330.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: 1.0 (+) X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -0.0 (/) --000000000000baef270633f8a682 Content-Type: text/plain; charset="UTF-8" --text follows this line-- From the elisp intro book, 3.2 Install a Function Definition. An error occur when installing / running (C-x C-e) the function below (defun multiply-by-seven (number) "Multiply NUMBER by seven." (* 7 number)) Debugger entered--Lisp error: (void-variable number) (* 7 number) (progn (* 7 number)) eval((progn (* 7 number)) t) elisp--eval-last-sexp(nil) #f(compiled-function () #<bytecode 0x18675df5af7f>)() handler-bind-1(#f(compiled-function () #<bytecode 0x18675df5af7f>) (error) eval-expression--debug) eval-last-sexp(nil) funcall-interactively(eval-last-sexp nil) call-interactively(eval-last-sexp nil nil) command-execute(eval-last-sexp) recursive-edit() debug(error (void-variable definition.) :backtrace-base eval-expression--debug) eval-expression--debug((void-variable definition.)) (progn definition.) eval((progn definition.) t) elisp--eval-last-sexp(nil) #f(compiled-function () #<bytecode 0x18675df5af7f>)() handler-bind-1(#f(compiled-function () #<bytecode 0x18675df5af7f>) (error) eval-expression--debug) eval-last-sexp(nil) funcall-interactively(eval-last-sexp nil) call-interactively(eval-last-sexp nil nil) command-execute(eval-last-sexp) recursive-edit() debug(error (void-variable number) :backtrace-base eval-expression--debug) eval-expression--debug((void-variable number)) (* 7 number) (progn (* 7 number)) eval((progn (* 7 number)) t) elisp--eval-last-sexp(nil) #f(compiled-function () #<bytecode 0x18675df5af7f>)() handler-bind-1(#f(compiled-function () #<bytecode 0x18675df5af7f>) (error) eval-expression--debug) eval-last-sexp(nil) funcall-interactively(eval-last-sexp nil) call-interactively(eval-last-sexp nil nil) command-execute(eval-last-sexp) In GNU Emacs 31.0.50 (build 1, aarch64-unknown-linux-android21) of 2025-04-29 built on xeon Repository revision: 825ea052ad5638c056037c4cac92c9e666dc3820 Windowing system distributor 'Xiaomi', version 34.0.0 System Description: Redmi/sunstone_global/sunstone:14/UKQ1.240624.001/OS2.0.1.0.UMQMIXM:user/release-keys Configured using: 'configure --with-png=yes --with-webp=yes --with-gif=yes --with-jpeg=yes --with-xml2=yes --with-sqlite3=yes --with-gnutls=yes --with-tiff=yes --with-selinux=yes --with-modules=yes --with-tree-sitter=yes --with-imagemagick=no --with-lcms2=yes --with-mailutils= --with-pop=no-by-default --with-harfbuzz=yes --with-threads=yes --with-rsvg=yes --enable-check-lisp-object-type= --cache-file=config_cache.1 'CFLAGS=-O2 -Werror=implicit-function-declaration'' Configured features: GIF GLIB GMP GNUTLS HARFBUZZ JPEG LIBSELINUX LIBXML2 MODULES NOTIFY INOTIFY PDUMPER PNG RSVG SECCOMP SQLITE3 THREADS TIFF TREE_SITTER WEBP ZLIB Important settings: value of $LANG: en_GB.UTF8 locale-coding-system: utf-8-unix Major mode: Debugger 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 modifier-bar-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 minibuffer-regexp-mode: t buffer-read-only: t column-number-mode: t line-number-mode: t indent-tabs-mode: t transient-mark-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t Load-path shadows: ~/Documents/packages/rainbow/rainbow-delimiters hides /data/data/org.gnu.emacs/files/.emacs.d/elpa/rainbow-delimiters-2.1.5/rainbow-delimiters Features: (shadow sort mail-extr emacsbug lisp-mnt message yank-media puny dired dired-loaddefs rfc822 mml mml-sec epa derived epg rfc6068 epg-config gnus-util text-property-search mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mail-utils ielm pp comint ansi-osc ansi-color ring kmacro thingatpt vc-git diff-mode track-changes files-x vc-dispatcher elec-pair face-remap help-fns radix-tree cl-print debug backtrace help-mode find-func time-date mule-util info display-line-numbers init finder-inf rainbow-delimiters easy-mmode rainbow-delimiters-autoloads package browse-url xdg url url-proxy url-privacy url-expand url-methods url-history url-cookie generate-lisp-file url-domsuf url-util mailcap url-handlers url-parse auth-source cl-seq eieio eieio-core cl-macs icons password-cache json subr-x map byte-opt gv bytecomp byte-compile url-vars cl-loaddefs cl-lib rmc iso-transl tooltip cus-start cconv eldoc paren electric uniquify ediff-hook vc-hooks lisp-float-type elisp-mode mwheel android-win term/common-win touch-screen ls-lisp 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 nadvice seq simple cl-generic indonesian philippine 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 abbrev obarray oclosure cl-preloaded button loaddefs theme-loaddefs faces cus-face macroexp files window text-properties overlay sha1 md5 base64 format env code-pages mule custom widget keymap hashtable-print-readable backquote threads inotify dynamic-setting android multi-tty move-toolbar make-network-process tty-child-frames emacs) Memory information: ((conses 16 125782 40750) (symbols 48 10611 0) (strings 32 34048 1974) (string-bytes 1 800690) (vectors 16 20310) (vector-slots 8 196436 9107) (floats 8 51 153) (intervals 56 4321 0) (buffers 992 18)) Sent from Gmail --000000000000baef270633f8a682 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable <div dir=3D"auto"><div><div dir=3D"auto"><br></div><div dir=3D"auto"><br></= div><div dir=3D"auto">--text follows this line--</div><div dir=3D"auto">Fro= m the elisp intro book,=C2=A03.2 Install a Function Definition.</div><div d= ir=3D"auto">An error occur when installing / running (C-x C-e) the function= below</div><div dir=3D"auto"><br></div><div dir=3D"auto"><div dir=3D"auto"= >=C2=A0 =C2=A0 =C2=A0(defun multiply-by-seven (number)</div><div dir=3D"aut= o">=C2=A0 =C2=A0 =C2=A0 =C2=A0"Multiply NUMBER by seven."</div><d= iv dir=3D"auto">=C2=A0 =C2=A0 =C2=A0 =C2=A0(* 7 number))</div><div dir=3D"a= uto"><br></div></div><div dir=3D"auto"><br></div><div dir=3D"auto">Debugger= entered--Lisp error: (void-variable number)</div><div dir=3D"auto">=C2=A0 = (* 7 number)</div><div dir=3D"auto">=C2=A0 (progn (* 7 number))</div><div d= ir=3D"auto">=C2=A0 eval((progn (* 7 number)) t)</div><div dir=3D"auto">=C2= =A0 elisp--eval-last-sexp(nil)</div><div dir=3D"auto">=C2=A0 #f(compiled-fu= nction () #<bytecode 0x18675df5af7f>)()</div><div dir=3D"auto">=C2=A0= handler-bind-1(#f(compiled-function () #<bytecode 0x18675df5af7f>) (= error) eval-expression--debug)</div><div dir=3D"auto">=C2=A0 eval-last-sexp= (nil)</div><div dir=3D"auto">=C2=A0 funcall-interactively(eval-last-sexp ni= l)</div><div dir=3D"auto">=C2=A0 call-interactively(eval-last-sexp nil nil)= </div><div dir=3D"auto">=C2=A0 command-execute(eval-last-sexp)</div><div di= r=3D"auto">=C2=A0 recursive-edit()</div><div dir=3D"auto">=C2=A0 debug(erro= r (void-variable definition.) :backtrace-base eval-expression--debug)</div>= <div dir=3D"auto">=C2=A0 eval-expression--debug((void-variable definition.)= )</div><div dir=3D"auto">=C2=A0 (progn definition.)</div><div dir=3D"auto">= =C2=A0 eval((progn definition.) t)</div><div dir=3D"auto">=C2=A0 elisp--eva= l-last-sexp(nil)</div><div dir=3D"auto">=C2=A0 #f(compiled-function () #<= ;bytecode 0x18675df5af7f>)()</div><div dir=3D"auto">=C2=A0 handler-bind-= 1(#f(compiled-function () #<bytecode 0x18675df5af7f>) (error) eval-ex= pression--debug)</div><div dir=3D"auto">=C2=A0 eval-last-sexp(nil)</div><di= v dir=3D"auto">=C2=A0 funcall-interactively(eval-last-sexp nil)</div><div d= ir=3D"auto">=C2=A0 call-interactively(eval-last-sexp nil nil)</div><div dir= =3D"auto">=C2=A0 command-execute(eval-last-sexp)</div><div dir=3D"auto">=C2= =A0 recursive-edit()</div><div dir=3D"auto">=C2=A0 debug(error (void-variab= le number) :backtrace-base eval-expression--debug)</div><div dir=3D"auto">= =C2=A0 eval-expression--debug((void-variable number))</div><div dir=3D"auto= ">=C2=A0 (* 7 number)</div><div dir=3D"auto">=C2=A0 (progn (* 7 number))</d= iv><div dir=3D"auto">=C2=A0 eval((progn (* 7 number)) t)</div><div dir=3D"a= uto">=C2=A0 elisp--eval-last-sexp(nil)</div><div dir=3D"auto">=C2=A0 #f(com= piled-function () #<bytecode 0x18675df5af7f>)()</div><div dir=3D"auto= ">=C2=A0 handler-bind-1(#f(compiled-function () #<bytecode 0x18675df5af7= f>) (error) eval-expression--debug)</div><div dir=3D"auto">=C2=A0 eval-l= ast-sexp(nil)</div><div dir=3D"auto">=C2=A0 funcall-interactively(eval-last= -sexp nil)</div><div dir=3D"auto">=C2=A0 call-interactively(eval-last-sexp = nil nil)</div><div dir=3D"auto">=C2=A0 command-execute(eval-last-sexp)</div= ><div dir=3D"auto"><br></div><div dir=3D"auto"><br></div><div dir=3D"auto">= In GNU Emacs 31.0.50 (build 1, aarch64-unknown-linux-android21) of</div><di= v dir=3D"auto">=C2=A02025-04-29 built on xeon</div><div dir=3D"auto">Reposi= tory revision: 825ea052ad5638c056037c4cac92c9e666dc3820</div><div dir=3D"au= to">Windowing system distributor 'Xiaomi', version 34.0.0</div><div= dir=3D"auto">System Description: Redmi/sunstone_global/sunstone:14/UKQ1.24= 0624.001/OS2.0.1.0.UMQMIXM:user/release-keys</div><div dir=3D"auto"><br></d= iv><div dir=3D"auto">Configured using:</div><div dir=3D"auto">=C2=A0'co= nfigure --with-png=3Dyes --with-webp=3Dyes --with-gif=3Dyes</div><div dir= =3D"auto">=C2=A0--with-jpeg=3Dyes --with-xml2=3Dyes --with-sqlite3=3Dyes --= with-gnutls=3Dyes</div><div dir=3D"auto">=C2=A0--with-tiff=3Dyes --with-sel= inux=3Dyes --with-modules=3Dyes</div><div dir=3D"auto">=C2=A0--with-tree-si= tter=3Dyes --with-imagemagick=3Dno --with-lcms2=3Dyes</div><div dir=3D"auto= ">=C2=A0--with-mailutils=3D --with-pop=3Dno-by-default --with-harfbuzz=3Dye= s</div><div dir=3D"auto">=C2=A0--with-threads=3Dyes --with-rsvg=3Dyes --ena= ble-check-lisp-object-type=3D</div><div dir=3D"auto">=C2=A0--cache-file=3Dc= onfig_cache.1 'CFLAGS=3D-O2</div><div dir=3D"auto">=C2=A0-Werror=3Dimpl= icit-function-declaration''</div><div dir=3D"auto"><br></div><div d= ir=3D"auto">Configured features:</div><div dir=3D"auto">GIF GLIB GMP GNUTLS= HARFBUZZ JPEG LIBSELINUX LIBXML2 MODULES NOTIFY</div><div dir=3D"auto">INO= TIFY PDUMPER PNG RSVG SECCOMP SQLITE3 THREADS TIFF TREE_SITTER WEBP</div><d= iv dir=3D"auto">ZLIB</div><div dir=3D"auto"><br></div><div dir=3D"auto">Imp= ortant settings:</div><div dir=3D"auto">=C2=A0 value of $LANG: en_GB.UTF8</= div><div dir=3D"auto">=C2=A0 locale-coding-system: utf-8-unix</div><div dir= =3D"auto"><br></div><div dir=3D"auto">Major mode: Debugger</div><div dir=3D= "auto"><br></div><div dir=3D"auto">Minor modes in effect:</div><div dir=3D"= auto">=C2=A0 tooltip-mode: t</div><div dir=3D"auto">=C2=A0 global-eldoc-mod= e: t</div><div dir=3D"auto">=C2=A0 eldoc-mode: t</div><div dir=3D"auto">=C2= =A0 show-paren-mode: t</div><div dir=3D"auto">=C2=A0 electric-indent-mode: = t</div><div dir=3D"auto">=C2=A0 mouse-wheel-mode: t</div><div dir=3D"auto">= =C2=A0 modifier-bar-mode: t</div><div dir=3D"auto">=C2=A0 tool-bar-mode: t<= /div><div dir=3D"auto">=C2=A0 menu-bar-mode: t</div><div dir=3D"auto">=C2= =A0 file-name-shadow-mode: t</div><div dir=3D"auto">=C2=A0 global-font-lock= -mode: t</div><div dir=3D"auto">=C2=A0 font-lock-mode: t</div><div dir=3D"a= uto">=C2=A0 blink-cursor-mode: t</div><div dir=3D"auto">=C2=A0 minibuffer-r= egexp-mode: t</div><div dir=3D"auto">=C2=A0 buffer-read-only: t</div><div d= ir=3D"auto">=C2=A0 column-number-mode: t</div><div dir=3D"auto">=C2=A0 line= -number-mode: t</div><div dir=3D"auto">=C2=A0 indent-tabs-mode: t</div><div= dir=3D"auto">=C2=A0 transient-mark-mode: t</div><div dir=3D"auto">=C2=A0 a= uto-composition-mode: t</div><div dir=3D"auto">=C2=A0 auto-encryption-mode:= t</div><div dir=3D"auto">=C2=A0 auto-compression-mode: t</div><div dir=3D"= auto"><br></div><div dir=3D"auto">Load-path shadows:</div><div dir=3D"auto"= >~/Documents/packages/rainbow/rainbow-delimiters hides /data/data/org.gnu.e= macs/files/.emacs.d/elpa/rainbow-delimiters-2.1.5/rainbow-delimiters</div><= div dir=3D"auto"><br></div><div dir=3D"auto">Features:</div><div dir=3D"aut= o">(shadow sort mail-extr emacsbug lisp-mnt message yank-media puny dired</= div><div dir=3D"auto">dired-loaddefs rfc822 mml mml-sec epa derived epg rfc= 6068 epg-config</div><div dir=3D"auto">gnus-util text-property-search mm-de= code mm-bodies mm-encode mail-parse</div><div dir=3D"auto">rfc2231 mailabbr= ev gmm-utils mailheader sendmail rfc2047 rfc2045</div><div dir=3D"auto">iet= f-drums mm-util mail-prsvr mail-utils ielm pp comint ansi-osc</div><div dir= =3D"auto">ansi-color ring kmacro thingatpt vc-git diff-mode track-changes f= iles-x</div><div dir=3D"auto">vc-dispatcher elec-pair face-remap help-fns r= adix-tree cl-print debug</div><div dir=3D"auto">backtrace help-mode find-fu= nc time-date mule-util info</div><div dir=3D"auto">display-line-numbers ini= t finder-inf rainbow-delimiters easy-mmode</div><div dir=3D"auto">rainbow-d= elimiters-autoloads package browse-url xdg url url-proxy</div><div dir=3D"a= uto">url-privacy url-expand url-methods url-history url-cookie</div><div di= r=3D"auto">generate-lisp-file url-domsuf url-util mailcap url-handlers url-= parse</div><div dir=3D"auto">auth-source cl-seq eieio eieio-core cl-macs ic= ons password-cache json</div><div dir=3D"auto">subr-x map byte-opt gv bytec= omp byte-compile url-vars cl-loaddefs cl-lib</div><div dir=3D"auto">rmc iso= -transl tooltip cus-start cconv eldoc paren electric uniquify</div><div dir= =3D"auto">ediff-hook vc-hooks lisp-float-type elisp-mode mwheel android-win= </div><div dir=3D"auto">term/common-win touch-screen ls-lisp tool-bar dnd f= ontset image</div><div dir=3D"auto">regexp-opt fringe tabulated-list replac= e newcomment text-mode lisp-mode</div><div dir=3D"auto">prog-mode register = page tab-bar menu-bar rfn-eshadow isearch easymenu</div><div dir=3D"auto">t= imer select scroll-bar mouse jit-lock font-lock syntax font-core</div><div = dir=3D"auto">term/tty-colors frame minibuffer nadvice seq simple cl-generic= </div><div dir=3D"auto">indonesian philippine cham georgian utf-8-lang misc= -lang vietnamese</div><div dir=3D"auto">tibetan thai tai-viet lao korean ja= panese eucjp-ms cp51932 hebrew greek</div><div dir=3D"auto">romanian slovak= czech european ethiopic indian cyrillic chinese</div><div dir=3D"auto">com= posite emoji-zwj charscript charprop case-table epa-hook</div><div dir=3D"a= uto">jka-cmpr-hook help abbrev obarray oclosure cl-preloaded button loaddef= s</div><div dir=3D"auto">theme-loaddefs faces cus-face macroexp files windo= w text-properties</div><div dir=3D"auto">overlay sha1 md5 base64 format env= code-pages mule custom widget keymap</div><div dir=3D"auto">hashtable-prin= t-readable backquote threads inotify dynamic-setting</div><div dir=3D"auto"= >android multi-tty move-toolbar make-network-process tty-child-frames</div>= <div dir=3D"auto">emacs)</div><div dir=3D"auto"><br></div><div dir=3D"auto"= >Memory information:</div><div dir=3D"auto">((conses 16 125782 40750) (symb= ols 48 10611 0) (strings 32 34048 1974)</div><div dir=3D"auto">=C2=A0(strin= g-bytes 1 800690) (vectors 16 20310)</div><div dir=3D"auto">=C2=A0(vector-s= lots 8 196436 9107) (floats 8 51 153) (intervals 56 4321 0)</div><div dir= =3D"auto">=C2=A0(buffers 992 18))</div></div><div dir=3D"auto"><br></div><d= iv><br></div><div data-smartmail=3D"gmail_signature">Sent from Gmail</div><= /div> --000000000000baef270633f8a682--
Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.505 (Entity 5.505) Content-Type: text/plain; charset=utf-8 X-Loop: help-debbugs@HIDDEN From: help-debbugs@HIDDEN (GNU bug Tracking System) To: badli al rashid <theothernighttheotherday@HIDDEN> Subject: bug#78156: Acknowledgement (31.0.50; 3.2 Install a Function Definition) Message-ID: <handler.78156.B.174599292725417.ack <at> debbugs.gnu.org> References: <CAJinB_CrLdFX61FG5Zt7yRKgZ76kR9B09_zO_MkXk76Y7Xj_WA@HIDDEN> X-Gnu-PR-Message: ack 78156 X-Gnu-PR-Package: emacs Reply-To: 78156 <at> debbugs.gnu.org Date: Wed, 30 Apr 2025 06:03:02 +0000 Thank you for filing a new bug report with debbugs.gnu.org. This is an automatically generated reply to let you know your message has been received. Your message is being forwarded to the package maintainers and other interested parties for their attention; they will reply in due course. Your message has been sent to the package maintainer(s): bug-gnu-emacs@HIDDEN If you wish to submit further information on this problem, please send it to 78156 <at> debbugs.gnu.org. Please do not send mail to help-debbugs@HIDDEN unless you wish to report a problem with the Bug-tracking system. --=20 78156: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D78156 GNU Bug Tracking System Contact help-debbugs@HIDDEN with problems
X-Loop: help-debbugs@HIDDEN Subject: bug#78156: 31.0.50; 3.2 Install a Function Definition Resent-From: Eli Zaretskii <eliz@HIDDEN> Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> Resent-CC: bug-gnu-emacs@HIDDEN Resent-Date: Wed, 30 Apr 2025 06:33:02 +0000 Resent-Message-ID: <handler.78156.B78156.174599472631957 <at> debbugs.gnu.org> Resent-Sender: help-debbugs@HIDDEN X-GNU-PR-Message: followup 78156 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: badli al rashid <theothernighttheotherday@HIDDEN> Cc: 78156 <at> debbugs.gnu.org Received: via spool by 78156-submit <at> debbugs.gnu.org id=B78156.174599472631957 (code B ref 78156); Wed, 30 Apr 2025 06:33:02 +0000 Received: (at 78156) by debbugs.gnu.org; 30 Apr 2025 06:32:06 +0000 Received: from localhost ([127.0.0.1]:38841 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1uA0zG-0008JL-9j for submit <at> debbugs.gnu.org; Wed, 30 Apr 2025 02:32:06 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:39584) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from <eliz@HIDDEN>) id 1uA0zE-0008Iq-Br for 78156 <at> debbugs.gnu.org; Wed, 30 Apr 2025 02:32:04 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <eliz@HIDDEN>) id 1uA0z8-0005tO-Vn; Wed, 30 Apr 2025 02:31:59 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=ut+KacHN4XSw3CptLHGsaWLuf1oj2IOQ0MB0P3WKxyc=; b=OPc6fzMQbGYR XRtilvXQEvJhYk0KN9M8cHrL0Kc2hy5FNVFIr8vnUtHVPXq60AJupf3V0p1RE2v+PKcDEI7xNaTum 74/Go9nzsBb2QVZZyPieqWcfKwTDI2hRFcyWpz9VMO41f8LCzfLjVl1QvBoqEK3z6Sm/N2dYTbyXN jlzoSL73xaUn0Xfqq3W4LEu88SIday83p/+xvcXVhoAZjvsZPVOC3uNyctx0eYGSW2H58g8VKqW2T LhXtKRgGhJkLcDk1kmLxMVgwLuYR0mGI9kGte1eZytwVAT97nULC3BYPTm1qijE79tCCzPi7JeRlW +BN5A24KgSyuclBr/mwI8A==; Date: Wed, 30 Apr 2025 09:31:17 +0300 Message-Id: <86wmb2nosq.fsf@HIDDEN> From: Eli Zaretskii <eliz@HIDDEN> In-Reply-To: <CAJinB_CrLdFX61FG5Zt7yRKgZ76kR9B09_zO_MkXk76Y7Xj_WA@HIDDEN> (message from badli al rashid on Wed, 30 Apr 2025 14:01:30 +0800) References: <CAJinB_CrLdFX61FG5Zt7yRKgZ76kR9B09_zO_MkXk76Y7Xj_WA@HIDDEN> X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -3.3 (---) > From: badli al rashid <theothernighttheotherday@HIDDEN> > Date: Wed, 30 Apr 2025 14:01:30 +0800 > > From the elisp intro book, 3.2 Install a Function Definition. > An error occur when installing / running (C-x C-e) the function below > > (defun multiply-by-seven (number) > "Multiply NUMBER by seven." > (* 7 number)) > > Debugger entered--Lisp error: (void-variable number) > (* 7 number) > (progn (* 7 number)) > eval((progn (* 7 number)) t) > elisp--eval-last-sexp(nil) > #f(compiled-function () #<bytecode 0x18675df5af7f>)() > handler-bind-1(#f(compiled-function () #<bytecode 0x18675df5af7f>) (error) eval-expression--debug) > eval-last-sexp(nil) > funcall-interactively(eval-last-sexp nil) > call-interactively(eval-last-sexp nil nil) > command-execute(eval-last-sexp) > recursive-edit() > debug(error (void-variable definition.) :backtrace-base eval-expression--debug) > eval-expression--debug((void-variable definition.)) > (progn definition.) > eval((progn definition.) t) > elisp--eval-last-sexp(nil) > #f(compiled-function () #<bytecode 0x18675df5af7f>)() > handler-bind-1(#f(compiled-function () #<bytecode 0x18675df5af7f>) (error) eval-expression--debug) > eval-last-sexp(nil) > funcall-interactively(eval-last-sexp nil) > call-interactively(eval-last-sexp nil nil) > command-execute(eval-last-sexp) > recursive-edit() > debug(error (void-variable number) :backtrace-base eval-expression--debug) > eval-expression--debug((void-variable number)) > (* 7 number) > (progn (* 7 number)) > eval((progn (* 7 number)) t) > elisp--eval-last-sexp(nil) > #f(compiled-function () #<bytecode 0x18675df5af7f>)() > handler-bind-1(#f(compiled-function () #<bytecode 0x18675df5af7f>) (error) eval-expression--debug) > eval-last-sexp(nil) > funcall-interactively(eval-last-sexp nil) > call-interactively(eval-last-sexp nil nil) > command-execute(eval-last-sexp) Please describe what you did, because I cannot reproduce the problem. My steps were: . emacs -Q . insert the function's definition into the *scratch* buffer . C-x C-e on the closing parenthesis of the function to install the function in Emacs . type (multiply-by-seven 10) into *scratch* buffer . type C-x C-e after that . the result (70) is shown in the echo area, as expected So I see no bug here. From the backtrace you show, I'm guessing that you evaluated something like (multiply-by-seven number) without making 'number' a variable with some numerical value.
Received: (at control) by debbugs.gnu.org; 30 Apr 2025 06:38:09 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Wed Apr 30 02:38:09 2025 Received: from localhost ([127.0.0.1]:38869 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1uA157-0000AW-HM for submit <at> debbugs.gnu.org; Wed, 30 Apr 2025 02:38:09 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:41370) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from <eliz@HIDDEN>) id 1uA151-00009j-DM; Wed, 30 Apr 2025 02:38:04 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <eliz@HIDDEN>) id 1uA14t-0006Wf-Nj; Wed, 30 Apr 2025 02:37:57 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=GplPf74fg3QK4nSSyMhs3zm4AAZOiKLV/K8Sri6UeQs=; b=cYSOOTVMfyPg rtpCU8szx23ulHTiYu3FhZu83y37L/5kwCyaRV5q1+sCrX9LIPUYEZw4f9IMSnzUg1m56jK1OVQb0 yS5SjFYMUnsXL8QkXIG7lNUauHKQSln8uy9gQlBEmG9eMdbF3hMvLY6dYWFquUZ38tqtfOtQg+qRM n4RBeWqiEkPfz3dojzubhkf7LeEan1diJep/ZTpAvOJ/sfoOCLZGhJEvTDOvB7kqbfppwdhEKp4Ii mRpZo6yzK6REZw4YjL2PXKLflfZvtI7cqepYaZE/xB+zsDL5ZNcdlI1QHTfm0wc3CV04Aw+pNHC7I MRYY5n81RWHWAD5f/jieOA==; Date: Wed, 30 Apr 2025 09:37:45 +0300 Message-Id: <86v7qmnohy.fsf@HIDDEN> From: Eli Zaretskii <eliz@HIDDEN> To: badli al rashid <theothernighttheotherday@HIDDEN> In-Reply-To: <CAJinB_Do3Gdc-F_pk6EkY=S6hqH-w_S0LtDgf+eKsz0AZWCe8w@HIDDEN> (message from badli al rashid on Wed, 30 Apr 2025 14:13:54 +0800) Subject: Re: bug#78157: 31.0.50; 3.2 Install a Function Definition References: <CAJinB_Do3Gdc-F_pk6EkY=S6hqH-w_S0LtDgf+eKsz0AZWCe8w@HIDDEN> X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: control Cc: 78157 <at> debbugs.gnu.org X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -3.3 (---) merge 78157 78156 thanks > From: badli al rashid <theothernighttheotherday@HIDDEN> > Date: Wed, 30 Apr 2025 14:13:54 +0800 > > error when installing the second version of the function from elisp > introduction to programming > > (defun multiply-by-seven (number) ; Second version. > "Multiply NUMBER by seven." > (+ number number number number number number number)) I'm quite sure this is the same problem as in the previous bug#78156 which you reported. Moreover, given this: > Debugger entered--Lisp error: (void-variable number) > (* 7 number) > (progn (* 7 number)) > eval((progn (* 7 number)) t) it looks like you didn't even install the new definition of the multiply-by-seven function, because Emacs is still using the old definition. These are all user mistakes typical for a newcomer to Emacs Lisp. There's nothing wrong with reporting these issues and asking for help and advice, but this list is not the proper forum for that. Given your level of knowledge of Emacs Lisp, may I suggest that you instead post to the help-gnu-emacs@HIDDEN mailing list, whose purpose is explicitly to help newcomers to Emacs? If the discussion on that list indicates that there's a real bug in Emacs or its documentation, please submit a bug report with all the details using report-emacs-bug. Thanks.
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997 nCipher Corporation Ltd,
1994-97 Ian Jackson.