From unknown Wed Jun 18 23:05:04 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#14565 <14565@debbugs.gnu.org> To: bug#14565 <14565@debbugs.gnu.org> Subject: Status: 24.3.50; Error with byte-compiled function using backward-char Reply-To: bug#14565 <14565@debbugs.gnu.org> Date: Thu, 19 Jun 2025 06:05:04 +0000 retitle 14565 24.3.50; Error with byte-compiled function using backward-char reassign 14565 emacs submitter 14565 Stephen Berman severity 14565 normal thanks From debbugs-submit-bounces@debbugs.gnu.org Thu Jun 06 10:27:01 2013 Received: (at submit) by debbugs.gnu.org; 6 Jun 2013 14:27:01 +0000 Received: from localhost ([127.0.0.1]:54395 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1Ukb9V-0002WD-Eg for submit@debbugs.gnu.org; Thu, 06 Jun 2013 10:27:00 -0400 Received: from eggs.gnu.org ([208.118.235.92]:52052) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1Ukb9O-0002Ve-Jm for submit@debbugs.gnu.org; Thu, 06 Jun 2013 10:26:51 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Ukb76-0003Pz-WD for submit@debbugs.gnu.org; Thu, 06 Jun 2013 10:24:36 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:41380) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ukb76-0003Pu-T9 for submit@debbugs.gnu.org; Thu, 06 Jun 2013 10:24:28 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:53734) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ukb72-0000Bj-Vt for bug-gnu-emacs@gnu.org; Thu, 06 Jun 2013 10:24:28 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Ukb6z-0003Oj-Tk for bug-gnu-emacs@gnu.org; Thu, 06 Jun 2013 10:24:24 -0400 Received: from mout.gmx.net ([212.227.17.22]:53508) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ukb6z-0003OW-KZ for bug-gnu-emacs@gnu.org; Thu, 06 Jun 2013 10:24:21 -0400 Received: from mailout-de.gmx.net ([10.1.76.19]) by mrigmx.server.lan (mrigmx002) with ESMTP (Nemesis) id 0Lkmp0-1UCMkx2n3M-00aYZZ for ; Thu, 06 Jun 2013 16:24:19 +0200 Received: (qmail invoked by alias); 06 Jun 2013 14:24:19 -0000 Received: from i59F5678C.versanet.de (EHLO rosalinde.fritz.box) [89.245.103.140] by mail.gmx.net (mp019) with SMTP; 06 Jun 2013 16:24:19 +0200 X-Authenticated: #20778731 X-Provags-ID: V01U2FsdGVkX1/pob9kzhrpkWEJ//nT6wsnuBYIhSafwsbZ4qjHEz BoDJMiPv/0/8mG From: Stephen Berman To: bug-gnu-emacs@gnu.org Subject: 24.3.50; Error with byte-compiled function using backward-char Date: Thu, 06 Jun 2013 16:24:17 +0200 Message-ID: <87txlbz59q.fsf@rosalinde.fritz.box> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Y-GMX-Trusted: 0 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.4.x-2.6.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: -6.9 (------) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -6.9 (------) When I evaluate and invoke each of the following functions, they both work as expected: (defun my-test-1 () (forward-char nil)) (defun my-test-2 () (backward-char nil)) But if I byte-compile them, only my-test-1 works; my-test-2 raises a Lisp error: (wrong-type-argument number-or-marker-p nil) Here are the byte codes: (byte-code "\300\301\302\"\207" [defalias my-test-1 #[nil "\300u\207" [nil] 1]] 3) (byte-code "\300\301\302\"\207" [defalias my-test-2 #[nil "\300[u\207" [nil] 1]] 3) and here is the disassembled code: byte code for my-test-1: args: nil 0 constant nil 1 forward-char 2 return byte code for my-test-2: args: nil 0 constant nil 1 negate 2 forward-char 3 return In GNU Emacs 24.3.50.1 (x86_64-suse-linux-gnu, GTK+ Version 3.4.4) of 2013-06-05 on rosalinde Bzr revision: 112853 sdl.web@gmail.com-20130605074002-8mmjd1r5fvnb664v Windowing system distributor `The X.Org Foundation', version 11.0.11203000 System Description: openSUSE 12.2 (x86_64) Configured using: `configure --without-toolkit-scroll-bars CFLAGS=-g3 -O0' Important settings: value of $LANG: en_US.UTF-8 value of $XMODIFIERS: @im=local locale-coding-system: utf-8-unix default enable-multibyte-characters: t From debbugs-submit-bounces@debbugs.gnu.org Thu Jun 06 14:33:06 2013 Received: (at 14565) by debbugs.gnu.org; 6 Jun 2013 18:33:06 +0000 Received: from localhost ([127.0.0.1]:54800 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1Ukezg-0003eK-20 for submit@debbugs.gnu.org; Thu, 06 Jun 2013 14:33:06 -0400 Received: from mout.gmx.net ([212.227.17.22]:59507) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1Ukezb-0003dV-EU for 14565@debbugs.gnu.org; Thu, 06 Jun 2013 14:33:02 -0400 Received: from mailout-de.gmx.net ([10.1.76.24]) by mrigmx.server.lan (mrigmx002) with ESMTP (Nemesis) id 0LvOyj-1UKuqP25vH-010aav for <14565@debbugs.gnu.org>; Thu, 06 Jun 2013 20:30:42 +0200 Received: (qmail invoked by alias); 06 Jun 2013 18:30:42 -0000 Received: from i59F5678C.versanet.de (EHLO rosalinde.fritz.box) [89.245.103.140] by mail.gmx.net (mp024) with SMTP; 06 Jun 2013 20:30:42 +0200 X-Authenticated: #20778731 X-Provags-ID: V01U2FsdGVkX1+9am4L2TK9bldS9C264/OyhkmeTRgOrgNwTY9AWJ UE7FBATXKCHjrk From: Stephen Berman To: 14565@debbugs.gnu.org Subject: Re: bug#14565: 24.3.50; Error with byte-compiled function using backward-char References: <87txlbz59q.fsf@rosalinde.fritz.box> Date: Thu, 06 Jun 2013 20:30:41 +0200 In-Reply-To: <87txlbz59q.fsf@rosalinde.fritz.box> (Stephen Berman's message of "Thu, 06 Jun 2013 16:24:17 +0200") Message-ID: <87ppvzytv2.fsf@rosalinde.fritz.box> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Y-GMX-Trusted: 0 X-Spam-Score: -2.4 (--) X-Debbugs-Envelope-To: 14565 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.4 (--) On Thu, 06 Jun 2013 16:24:17 +0200 Stephen Berman wrote: > When I evaluate and invoke each of the following functions, they both > work as expected: > > (defun my-test-1 () (forward-char nil)) > > (defun my-test-2 () (backward-char nil)) > > But if I byte-compile them, only my-test-1 works; my-test-2 raises a > Lisp error: (wrong-type-argument number-or-marker-p nil) > > Here are the byte codes: > > (byte-code "\300\301\302\"\207" [defalias my-test-1 #[nil "\300u\207" [nil] 1]] 3) > > (byte-code "\300\301\302\"\207" [defalias my-test-2 #[nil "\300[u\207" [nil] 1]] 3) > > and here is the disassembled code: > > byte code for my-test-1: > args: nil > 0 constant nil > 1 forward-char > 2 return > > byte code for my-test-2: > args: nil > 0 constant nil > 1 negate > 2 forward-char > 3 return If `negate' in the byte code corresponds to the case Bnegate in exec_byte_code, then IIUC nil fails the test for INTEGERP so is passed to Fminus, and from there to arith_driver, where it fails CHECK_NUMBER_OR_FLOAT_COERCE_MARKER, which via CHECK_TYPE signals the wrong-type-argument error. If this is what happens, then the byte code of backward-char is at odds with its definition via move_point in cmds.c, which explicitly checks whether the argument is nil, and if so sets it to 1, which for Fbackward_char is then negated. Or have I completely misunderstood and if so, what is the error due to? Steve Berman From debbugs-submit-bounces@debbugs.gnu.org Thu Jun 06 17:05:32 2013 Received: (at 14565-done) by debbugs.gnu.org; 6 Jun 2013 21:05:32 +0000 Received: from localhost ([127.0.0.1]:55019 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1UkhND-0000cp-Vm for submit@debbugs.gnu.org; Thu, 06 Jun 2013 17:05:32 -0400 Received: from fencepost.gnu.org ([208.118.235.10]:36042 ident=Debian-exim) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1UkhNB-0000cg-0e for 14565-done@debbugs.gnu.org; Thu, 06 Jun 2013 17:05:30 -0400 Received: from rgm by fencepost.gnu.org with local (Exim 4.71) (envelope-from ) id 1UkhND-0004zK-Iz; Thu, 06 Jun 2013 17:05:31 -0400 From: Glenn Morris To: 14565-done@debbugs.gnu.org Subject: Re: bug#14565: 24.3.50; Error with byte-compiled function using backward-char References: <87txlbz59q.fsf@rosalinde.fritz.box> X-Spook: Ft. Knox rail gun class struggle Dateline Craig X-Ran: ;aZb_g4S)c4k1}NpL*9@8h_5kMaErgg,-<#=dfC.u/tKv*lrL?libuN5_{v=[M\CQW?nq) X-Hue: yellow X-Debbugs-No-Ack: yes X-Attribution: GM Date: Thu, 06 Jun 2013 17:05:31 -0400 In-Reply-To: <87txlbz59q.fsf@rosalinde.fritz.box> (Stephen Berman's message of "Thu, 06 Jun 2013 16:24:17 +0200") Message-ID: User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Spam-Score: -5.5 (-----) X-Debbugs-Envelope-To: 14565-done X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -7.4 (-------) Version: 24.4 Thanks; fixed. From debbugs-submit-bounces@debbugs.gnu.org Thu Jun 06 22:28:26 2013 Received: (at 14565) by debbugs.gnu.org; 7 Jun 2013 02:28:26 +0000 Received: from localhost ([127.0.0.1]:55526 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1UkmPf-00054E-B5 for submit@debbugs.gnu.org; Thu, 06 Jun 2013 22:28:25 -0400 Received: from fencepost.gnu.org ([208.118.235.10]:40985 ident=Debian-exim) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1UkmPd-000545-EF for 14565@debbugs.gnu.org; Thu, 06 Jun 2013 22:28:22 -0400 Received: from rgm by fencepost.gnu.org with local (Exim 4.71) (envelope-from ) id 1UkmPf-0004VV-0m; Thu, 06 Jun 2013 22:28:23 -0400 From: Glenn Morris To: 14565@debbugs.gnu.org Subject: Re: bug#14565: 24.3.50; Error with byte-compiled function using backward-char References: <87txlbz59q.fsf@rosalinde.fritz.box> X-Spook: jihad plutonium bomb Firewalls Pine Gap bluebird X-Ran: mFTm"Om|^+-_?9g6c&Uo54[}='?q*"_Hs[A!jYFab-O^,Jw/A679KJLUs0b{PY;6S?bmL" X-Hue: green X-Attribution: GM Date: Thu, 06 Jun 2013 22:28:22 -0400 In-Reply-To: <87txlbz59q.fsf@rosalinde.fritz.box> (Stephen Berman's message of "Thu, 06 Jun 2013 16:24:17 +0200") Message-ID: User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Spam-Score: -5.5 (-----) X-Debbugs-Envelope-To: 14565 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -7.4 (-------) I suppose there could still be cases like (setq foo nil) (backward-char foo) I wonder if these bytecomp handlers are worth keeping? From debbugs-submit-bounces@debbugs.gnu.org Fri Jun 07 05:40:35 2013 Received: (at 14565) by debbugs.gnu.org; 7 Jun 2013 09:40:35 +0000 Received: from localhost ([127.0.0.1]:55974 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1Ukt9u-0007lr-IX for submit@debbugs.gnu.org; Fri, 07 Jun 2013 05:40:34 -0400 Received: from mout.gmx.net ([212.227.15.18]:56991) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1Ukt9r-0007lX-Mo for 14565@debbugs.gnu.org; Fri, 07 Jun 2013 05:40:33 -0400 Received: from mailout-de.gmx.net ([10.1.76.35]) by mrigmx.server.lan (mrigmx001) with ESMTP (Nemesis) id 0MVGca-1UtBRv40RK-00YlcD for <14565@debbugs.gnu.org>; Fri, 07 Jun 2013 11:40:26 +0200 Received: (qmail invoked by alias); 07 Jun 2013 09:40:25 -0000 Received: from i59F54838.versanet.de (EHLO rosalinde.fritz.box) [89.245.72.56] by mail.gmx.net (mp035) with SMTP; 07 Jun 2013 11:40:25 +0200 X-Authenticated: #20778731 X-Provags-ID: V01U2FsdGVkX1/DDxwZvFbDp9RerWzhgJpEaaJnsYFdCYCZ88noV6 tVkmyY5aTR3Brh From: Stephen Berman To: Glenn Morris Subject: Re: bug#14565: 24.3.50; Error with byte-compiled function using backward-char References: <87txlbz59q.fsf@rosalinde.fritz.box> Date: Fri, 07 Jun 2013 11:40:23 +0200 In-Reply-To: (Glenn Morris's message of "Thu, 06 Jun 2013 22:28:22 -0400") Message-ID: <87txlafed4.fsf@rosalinde.fritz.box> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Y-GMX-Trusted: 0 X-Spam-Score: -1.0 (-) X-Debbugs-Envelope-To: 14565 Cc: 14565@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.4 (--) On Thu, 06 Jun 2013 22:28:22 -0400 Glenn Morris wrote: > I suppose there could still be cases like > > (setq foo nil) > (backward-char foo) Yes, in fact, after seeing your fix, I realized that I had oversimplified my test case; the code which revealed the bug actually looks more like this (still simplified, but enough to raise the error with your fix): (defun my-test-3 () (let (x) (backward-char (when x 2)))) > I wonder if these bytecomp handlers are worth keeping? I don't see how to tweak byte-compile-backward-char to account for the above cases, but I don't understand the bytecomp code well. However, I did test adding a case Bbackward_char to exec_byte_code parallel to Bforward_char, and that handles the above cases as expected. So that may be the easiest fix. Steve Berman From debbugs-submit-bounces@debbugs.gnu.org Sat Jun 08 09:20:41 2013 Received: (at 14565) by debbugs.gnu.org; 8 Jun 2013 13:20:41 +0000 Received: from localhost ([127.0.0.1]:57936 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1UlJ4Q-0005vT-Ks for submit@debbugs.gnu.org; Sat, 08 Jun 2013 09:20:40 -0400 Received: from mout.gmx.net ([212.227.15.15]:65017) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1UlJ4M-0005uw-J3 for 14565@debbugs.gnu.org; Sat, 08 Jun 2013 09:20:36 -0400 Received: from mailout-de.gmx.net ([10.1.76.10]) by mrigmx.server.lan (mrigmx002) with ESMTP (Nemesis) id 0MXCV1-1UqZsZ0Zan-00WHUf for <14565@debbugs.gnu.org>; Sat, 08 Jun 2013 15:20:22 +0200 Received: (qmail invoked by alias); 08 Jun 2013 13:20:21 -0000 Received: from i59F5592B.versanet.de (EHLO rosalinde.fritz.box) [89.245.89.43] by mail.gmx.net (mp010) with SMTP; 08 Jun 2013 15:20:21 +0200 X-Authenticated: #20778731 X-Provags-ID: V01U2FsdGVkX19nEY1AODhnvSWlGzWtrZrjs58cy3RRcyrPiWOzAx oRfnyFVSTOPY9a From: Stephen Berman To: Glenn Morris Subject: Re: bug#14565: 24.3.50; Error with byte-compiled function using backward-char References: <87txlbz59q.fsf@rosalinde.fritz.box> <87txlafed4.fsf@rosalinde.fritz.box> Date: Sat, 08 Jun 2013 15:20:20 +0200 In-Reply-To: <87txlafed4.fsf@rosalinde.fritz.box> (Stephen Berman's message of "Fri, 07 Jun 2013 11:40:23 +0200") Message-ID: <87sj0soi23.fsf@rosalinde.fritz.box> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Y-GMX-Trusted: 0 X-Spam-Score: -2.4 (--) X-Debbugs-Envelope-To: 14565 Cc: 14565@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.4 (--) On Fri, 07 Jun 2013 11:40:23 +0200 Stephen Berman wrote: > On Thu, 06 Jun 2013 22:28:22 -0400 Glenn Morris wrote: > >> I suppose there could still be cases like >> >> (setq foo nil) >> (backward-char foo) > > Yes, in fact, after seeing your fix, I realized that I had > oversimplified my test case; the code which revealed the bug actually > looks more like this (still simplified, but enough to raise the error > with your fix): > > (defun my-test-3 () > (let (x) > (backward-char (when x 2)))) > >> I wonder if these bytecomp handlers are worth keeping? > > I don't see how to tweak byte-compile-backward-char to account for the > above cases, but I don't understand the bytecomp code well. However, I > did test adding a case Bbackward_char to exec_byte_code parallel to > Bforward_char, and that handles the above cases as expected. So that > may be the easiest fix. Should this bug be reopened, or would you prefer me to submit a new report for the unresolved cases? Steve Berman From debbugs-submit-bounces@debbugs.gnu.org Sat Jun 08 09:47:01 2013 Received: (at 14565) by debbugs.gnu.org; 8 Jun 2013 13:47:01 +0000 Received: from localhost ([127.0.0.1]:57977 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1UlJTw-000731-RK for submit@debbugs.gnu.org; Sat, 08 Jun 2013 09:47:01 -0400 Received: from mout.gmx.net ([212.227.17.21]:57194) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1UlJTt-00072m-Ad for 14565@debbugs.gnu.org; Sat, 08 Jun 2013 09:46:58 -0400 Received: from mailout-de.gmx.net ([10.1.76.35]) by mrigmx.server.lan (mrigmx001) with ESMTP (Nemesis) id 0LtC7R-1UMTF81D35-012t9B for <14565@debbugs.gnu.org>; Sat, 08 Jun 2013 15:46:45 +0200 Received: (qmail invoked by alias); 08 Jun 2013 13:46:44 -0000 Received: from i59F5592B.versanet.de (EHLO rosalinde.fritz.box) [89.245.89.43] by mail.gmx.net (mp035) with SMTP; 08 Jun 2013 15:46:44 +0200 X-Authenticated: #20778731 X-Provags-ID: V01U2FsdGVkX1/p9npUcxvpRiRCQ9glgib2bp/Y16kIOk/V+S03BN nXBWoU7AXZONIC From: Stephen Berman To: Glenn Morris Subject: Re: bug#14565: 24.3.50; Error with byte-compiled function using backward-char References: <87txlbz59q.fsf@rosalinde.fritz.box> <87txlafed4.fsf@rosalinde.fritz.box> <87sj0soi23.fsf@rosalinde.fritz.box> Date: Sat, 08 Jun 2013 15:46:42 +0200 In-Reply-To: <87sj0soi23.fsf@rosalinde.fritz.box> (Stephen Berman's message of "Sat, 08 Jun 2013 15:20:20 +0200") Message-ID: <87li6kzpdp.fsf@rosalinde.fritz.box> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Y-GMX-Trusted: 0 X-Spam-Score: -2.4 (--) X-Debbugs-Envelope-To: 14565 Cc: 14565@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.4 (--) On Sat, 08 Jun 2013 15:20:20 +0200 Stephen Berman wrote: > On Fri, 07 Jun 2013 11:40:23 +0200 Stephen Berman wrote: > >> On Thu, 06 Jun 2013 22:28:22 -0400 Glenn Morris wrote: >> >>> I suppose there could still be cases like >>> >>> (setq foo nil) >>> (backward-char foo) >> >> Yes, in fact, after seeing your fix, I realized that I had >> oversimplified my test case; the code which revealed the bug actually >> looks more like this (still simplified, but enough to raise the error >> with your fix): >> >> (defun my-test-3 () >> (let (x) >> (backward-char (when x 2)))) >> >>> I wonder if these bytecomp handlers are worth keeping? >> >> I don't see how to tweak byte-compile-backward-char to account for the >> above cases, but I don't understand the bytecomp code well. However, I >> did test adding a case Bbackward_char to exec_byte_code parallel to >> Bforward_char, and that handles the above cases as expected. So that >> may be the easiest fix. > > Should this bug be reopened, or would you prefer me to submit a new > report for the unresolved cases? I just saw that you already took care of these cases; thanks. Steve Berman From unknown Wed Jun 18 23:05:04 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Sun, 07 Jul 2013 11:24:04 +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