From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stephen Berman Newsgroups: gmane.emacs.bugs Subject: bug#14565: 24.3.50; Error with byte-compiled function using backward-char Date: Sat, 08 Jun 2013 15:46:42 +0200 Message-ID: <87li6kzpdp.fsf@rosalinde.fritz.box> References: <87txlbz59q.fsf@rosalinde.fritz.box> <87txlafed4.fsf@rosalinde.fritz.box> <87sj0soi23.fsf@rosalinde.fritz.box> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1370699232 31565 80.91.229.3 (8 Jun 2013 13:47:12 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 8 Jun 2013 13:47:12 +0000 (UTC) Cc: 14565@debbugs.gnu.org To: Glenn Morris Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Jun 08 15:47:10 2013 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1UlJU4-0003XD-Oh for geb-bug-gnu-emacs@m.gmane.org; Sat, 08 Jun 2013 15:47:08 +0200 Original-Received: from localhost ([::1]:56881 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UlJU4-0007ws-5z for geb-bug-gnu-emacs@m.gmane.org; Sat, 08 Jun 2013 09:47:08 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:60193) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UlJTy-0007wm-FT for bug-gnu-emacs@gnu.org; Sat, 08 Jun 2013 09:47:05 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UlJTt-0007lR-6W for bug-gnu-emacs@gnu.org; Sat, 08 Jun 2013 09:47:02 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:41386) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UlJTt-0007lL-3q for bug-gnu-emacs@gnu.org; Sat, 08 Jun 2013 09:46:57 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1UlJTy-00073H-TM for bug-gnu-emacs@gnu.org; Sat, 08 Jun 2013 09:47:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Stephen Berman Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 08 Jun 2013 13:47:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 14565 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 14565-submit@debbugs.gnu.org id=B14565.137069922127098 (code B ref 14565); Sat, 08 Jun 2013 13:47:02 +0000 Original-Received: (at 14565) by debbugs.gnu.org; 8 Jun 2013 13:47:01 +0000 Original-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 Original-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 Original-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 Original-Received: (qmail invoked by alias); 08 Jun 2013 13:46:44 -0000 Original-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 In-Reply-To: <87sj0soi23.fsf@rosalinde.fritz.box> (Stephen Berman's message of "Sat, 08 Jun 2013 15:20:20 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) X-Y-GMX-Trusted: 0 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:74889 Archived-At: 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