From unknown Mon Jun 23 11:27:18 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#20204 <20204@debbugs.gnu.org> To: bug#20204 <20204@debbugs.gnu.org> Subject: Status: 24.4; (smie-backward-sexp-command) throws (wrong-type-argument number-or-marker-p nil) Reply-To: bug#20204 <20204@debbugs.gnu.org> Date: Mon, 23 Jun 2025 18:27:18 +0000 retitle 20204 24.4; (smie-backward-sexp-command) throws (wrong-type-argumen= t number-or-marker-p nil) reassign 20204 emacs submitter 20204 Cl=C3=A9ment Pit--Claudel severity 20204 normal thanks From debbugs-submit-bounces@debbugs.gnu.org Wed Mar 25 23:38:38 2015 Received: (at submit) by debbugs.gnu.org; 26 Mar 2015 03:38:38 +0000 Received: from localhost ([127.0.0.1]:36883 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Yaycv-0002XC-5N for submit@debbugs.gnu.org; Wed, 25 Mar 2015 23:38:37 -0400 Received: from eggs.gnu.org ([208.118.235.92]:57210) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YawuL-0008HA-Fr for submit@debbugs.gnu.org; Wed, 25 Mar 2015 21:48:29 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YawuF-0002XW-7Y for submit@debbugs.gnu.org; Wed, 25 Mar 2015 21:48:24 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50,FREEMAIL_FROM autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:39330) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YawuF-0002XS-4e for submit@debbugs.gnu.org; Wed, 25 Mar 2015 21:48:23 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:58925) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YawuE-0001x3-3b for bug-gnu-emacs@gnu.org; Wed, 25 Mar 2015 21:48:23 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YawuA-0002WQ-Td for bug-gnu-emacs@gnu.org; Wed, 25 Mar 2015 21:48:22 -0400 Received: from mout.kundenserver.de ([212.227.126.131]:57038) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YawuA-0002W6-JY for bug-gnu-emacs@gnu.org; Wed, 25 Mar 2015 21:48:18 -0400 Received: from [192.168.1.43] ([109.24.225.43]) by mrelayeu.kundenserver.de (mreue003) with ESMTPSA (Nemesis) id 0M8MDe-1ZMste2dLm-00vy9c for ; Thu, 26 Mar 2015 02:48:16 +0100 Message-ID: <5513655F.4070401@live.com> Date: Thu, 26 Mar 2015 02:48:15 +0100 From: =?UTF-8?B?Q2zDqW1lbnQgUGl0LS1DbGF1ZGVs?= User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.5.0 MIME-Version: 1.0 To: bug-gnu-emacs@gnu.org Subject: 24.4; (smie-backward-sexp-command) throws (wrong-type-argument number-or-marker-p nil) Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="pkaftXSgFhsO6PlQro411E5xqnPpjU9un" X-Provags-ID: V03:K0:kF6nngP2BXInlaodIFzIGio2AlIguolZDd5JKTWUqkMO9nzAvLk 3f3RDdEHfYwLsiUT0ahsI9sTEtGv2ootNIMK9iBBUZmdRbVPwaTed+wRQwjkFvTcWicbqwi uBcgxzkVeauCNmph/Y6FMjHk4jZGgwoUEVrerOXGQVp+nO7SPB/7zeeqLY4CNQaQLQDMWZG d6tAoZuZYxpXAGXuggWHQ== X-UI-Out-Filterresults: notjunk:1; X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [generic] X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -4.3 (----) X-Debbugs-Envelope-To: submit X-Mailman-Approved-At: Wed, 25 Mar 2015 23:38:35 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -4.3 (----) This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --pkaftXSgFhsO6PlQro411E5xqnPpjU9un Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Evaluating the following forms after launching `emacs -Q' yields `(wrong-= type-argument number-or-marker-p nil)': (require 'smie) (smie-backward-sexp-command) This is due to `smie-backward-sexp-command' not checking whether `n' is `= nil' before passing `(- n)' to `smie-forward-sexp-command'. -- Cl=C3=A9ment. In GNU Emacs 24.4.1 (x86_64-unknown-linux-gnu, GTK+ Version 3.10.8) of 2015-01-25 on my-laptop Windowing system distributor `The X.Org Foundation', version 11.0.1150100= 0 System Description: Linux Mint 17.1 Rebecca Important settings: value of $LC_TIME: en_DK.UTF-8 value of $LANG: en_US.UTF-8 value of $XMODIFIERS: @im=3Dibus locale-coding-system: utf-8-unix Major mode: Lisp Interaction Minor modes in effect: tooltip-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 transient-mark-mode: t Load-path shadows: None found. Features: (shadow sort gnus-util mail-extr emacsbug message format-spec rfc822 mml mml-sec mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mail-utils debug help-mode easymenu help-fns smie time-date tooltip electric uniquify ediff-hook vc-hooks lisp-float-type mwheel x-win x-dnd tool-bar dnd fontset image regexp-opt fringe tabulated-list newcomment lisp-mode prog-mode register page menu-bar rfn-eshadow timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core frame cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese case-table epa-hook jka-cmpr-hook help simple abbrev minibuffer nadvice loaddefs button faces cus-face macroexp files text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote make-network-process dbusbind gfilenotify dynamic-setting system-font-setting font-render-setting move-toolbar gtk x-toolkit x multi-tty emacs) Memory information: ((conses 16 73625 7003) (symbols 48 17900 0) (miscs 40 47 163) (strings 32 10002 4475) (string-bytes 1 278134) (vectors 16 9330) (vector-slots 8 389150 12295) (floats 8 65 248) (intervals 56 202 1) (buffers 960 13) (heap 1024 22193 868)) --pkaftXSgFhsO6PlQro411E5xqnPpjU9un Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.22 (GNU/Linux) iQIcBAEBAgAGBQJVE2VfAAoJEPqg+cTm90wjZLoQAKsxOJcBE7v++DjUEjLj6OuT GnyWmyJWFX3gNwqBv9v+bC3k4x4KKnCh+S1VeAMZr9Wz5ZWoGKpAHpSu6Rxx+s/d +lRQJLO0CdycuDDmg4lSgAwvUiiAONTeOyIFuh37N7QGJ9/5bNUnQR8zDos0Rroc FKbvbFw2ehd3NofesUjFOMhXpeng/akr9JgvOv/Bx/NQx6f961QaYdmEQvsnjXcP xKk6eaZTFmNzIZJwdWJT1ENomcNBKAc7Z/RsZE9tL9O/7/lh9AsvZiUVuGkd6BZs 4RbuxVyPtpQ7bQBYbWsltvxZYmxtfVM6iZcmGzw4o+vJWYGnNjVgHSM2rOihsOWP +QzK3C0zWmJfpYaHAfIM8ec+6JHclFbAvlmUdGRPlrcB1Yd4fNbcnLAVmV9Xl7CB GHHCGYxJOe+wkPnsdCOBWxYGto149Pnb3Zakju3MbJR6HsRM6mesSqo1Cm5vzOiM KRnjl0tQLtL5GzHJ5fFf922OtrDnZqYOJg81lZO1QHtiA/g9na87utQZQW/qBbpj XINRxKVnx1egjH0AkNdOcDwq9Fsejaug3cWghZ9cuLAhYxDLwsrDxWil79zfKe6S T1UTo2SdqK4cl5Q53mqbRw2hHg+zi/zQY3FJBrQn50+RLYRYvfuRutnaXcT5dW4H sVgjckM8zLRq9x9+iTTi =AA8Y -----END PGP SIGNATURE----- --pkaftXSgFhsO6PlQro411E5xqnPpjU9un-- From debbugs-submit-bounces@debbugs.gnu.org Thu Mar 26 09:37:51 2015 Received: (at 20204) by debbugs.gnu.org; 26 Mar 2015 13:37:51 +0000 Received: from localhost ([127.0.0.1]:37089 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Yb7yp-0002EZ-Ci for submit@debbugs.gnu.org; Thu, 26 Mar 2015 09:37:51 -0400 Received: from ironport2-out.teksavvy.com ([206.248.154.181]:38705) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Yb7yl-0002EK-KT for 20204@debbugs.gnu.org; Thu, 26 Mar 2015 09:37:48 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AnEFAGvvdVRBbthL/2dsb2JhbAA3gVOfQYIugQiBdQEBBAFWIwULCzQHCxQYDSSIE6IRjGQJAwODPgODcASoOw X-IPAS-Result: AnEFAGvvdVRBbthL/2dsb2JhbAA3gVOfQYIugQiBdQEBBAFWIwULCzQHCxQYDSSIE6IRjGQJAwODPgODcASoOw X-IronPort-AV: E=Sophos;i="5.01,1,1400040000"; d="scan'208";a="114643327" Received: from 65-110-216-75.cpe.pppoe.ca (HELO pastel.home) ([65.110.216.75]) by ironport2-out.teksavvy.com with ESMTP/TLS/DHE-RSA-AES256-SHA; 26 Mar 2015 09:37:41 -0400 Received: by pastel.home (Postfix, from userid 20848) id 9BD072441; Thu, 26 Mar 2015 09:37:41 -0400 (EDT) From: Stefan Monnier To: =?windows-1252?Q?Cl=E9ment?= Pit--Claudel Subject: Re: bug#20204: 24.4; (smie-backward-sexp-command) throws (wrong-type-argument number-or-marker-p nil) Message-ID: References: <5513655F.4070401@live.com> Date: Thu, 26 Mar 2015 09:37:41 -0400 In-Reply-To: <5513655F.4070401@live.com> (=?windows-1252?Q?=22Cl=E9ment?= Pit--Claudel"'s message of "Thu, 26 Mar 2015 02:48:15 +0100") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 0.3 (/) X-Debbugs-Envelope-To: 20204 Cc: 20204@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.3 (/) Version: 24.5 > This is due to `smie-backward-sexp-command' not checking whether `n' > is `nil' before passing `(- n)' to `smie-forward-sexp-command'. Indeed. I installed the patch below which just doesn't let you skip the argument. Stefan --- a/lisp/emacs-lisp/smie.el +++ b/lisp/emacs-lisp/smie.el @@ -834,12 +834,12 @@ Possible return values: ;;; Miscellaneous commands using the precedence parser. -(defun smie-backward-sexp-command (&optional n) +(defun smie-backward-sexp-command (n) "Move backward through N logical elements." (interactive "^p") (smie-forward-sexp-command (- n))) -(defun smie-forward-sexp-command (&optional n) +(defun smie-forward-sexp-command (n) "Move forward through N logical elements." (interactive "^p") (let ((forw (> n 0)) From debbugs-submit-bounces@debbugs.gnu.org Thu Mar 26 09:38:19 2015 Received: (at 20204-done) by debbugs.gnu.org; 26 Mar 2015 13:38:20 +0000 Received: from localhost ([127.0.0.1]:37093 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Yb7zH-0002Fh-NB for submit@debbugs.gnu.org; Thu, 26 Mar 2015 09:38:19 -0400 Received: from ironport2-out.teksavvy.com ([206.248.154.181]:51648) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Yb7zF-0002FU-R1 for 20204-done@debbugs.gnu.org; Thu, 26 Mar 2015 09:38:18 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AgUFAGvvdVRBbthL/2dsb2JhbAA3gVOhb4EIgXUBAQQBViMFCws0BwsUGA0kiBOiEYxkBwIBAgECgz4Dg3AEqDs X-IPAS-Result: AgUFAGvvdVRBbthL/2dsb2JhbAA3gVOhb4EIgXUBAQQBViMFCws0BwsUGA0kiBOiEYxkBwIBAgECgz4Dg3AEqDs X-IronPort-AV: E=Sophos;i="5.01,1,1400040000"; d="scan'208";a="114643387" Received: from 65-110-216-75.cpe.pppoe.ca (HELO pastel.home) ([65.110.216.75]) by ironport2-out.teksavvy.com with ESMTP/TLS/DHE-RSA-AES256-SHA; 26 Mar 2015 09:38:12 -0400 Received: by pastel.home (Postfix, from userid 20848) id 3ABDD2441; Thu, 26 Mar 2015 09:38:12 -0400 (EDT) From: Stefan Monnier To: =?windows-1252?Q?Cl=E9ment?= Pit--Claudel Subject: Re: bug#20204: 24.4; (smie-backward-sexp-command) throws (wrong-type-argument number-or-marker-p nil) Message-ID: References: <5513655F.4070401@live.com> Date: Thu, 26 Mar 2015 09:38:11 -0400 In-Reply-To: <5513655F.4070401@live.com> (=?windows-1252?Q?=22Cl=E9ment?= Pit--Claudel"'s message of "Thu, 26 Mar 2015 02:48:15 +0100") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 0.3 (/) X-Debbugs-Envelope-To: 20204-done Cc: 20204-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.3 (/) Version:24.5 > Evaluating the following forms after launching `emacs -Q' yields `(wrong-type-argument number-or-marker-p nil)': > (require 'smie) > (smie-backward-sexp-command) Fixed, Stefan From unknown Mon Jun 23 11:27:18 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Fri, 24 Apr 2015 11:24:03 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator