GNU bug report logs - #2681
23.0.91; incorrect line shown by lisp compiler

Previous Next

Package: emacs;

Reported by: Kenichi Handa <handa <at> m17n.org>

Date: Mon, 16 Mar 2009 04:25:03 UTC

Severity: minor

Merged with 8774, 9109, 22288, 24128, 24592

Found in versions 23.0.91, 23.3.1, 24.0.50, 24.3.1, 25.0.50, 25.1

Done: Alan Mackenzie <acm <at> muc.de>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 2681 in the body.
You can then email your comments to 2681 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-submit-list <at> lists.donarmstrong.com, Emacs Bugs <bug-gnu-emacs <at> gnu.org>:
bug#2681; Package emacs. (Mon, 16 Mar 2009 04:25:04 GMT) Full text and rfc822 format available.

Acknowledgement sent to Kenichi Handa <handa <at> m17n.org>:
New bug report received and forwarded. Copy sent to Emacs Bugs <bug-gnu-emacs <at> gnu.org>. (Mon, 16 Mar 2009 04:25:04 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> emacsbugs.donarmstrong.com (full text, mbox):

From: Kenichi Handa <handa <at> m17n.org>
To: emacs-pretest-bug <at> gnu.org
Subject: 23.0.91; incorrect line shown by lisp compiler
Date: Mon, 16 Mar 2009 13:16:36 +0900
When I byte compile this file:
---~/temp.el------------------------------------------------
(defun test (vec)
  (cond	((= (length vec) 0)
	 (message "LEN=0"))
	((= (length vec) 1)
	 (message "LEN=1"))
	((= (length vec 2))
	 (message "LEN=2"))))
------------------------------------------------------------
The *Compile-Log* buffer shows these warnings:

Compiling file /home/handa/temp.el at Mon Mar 16 13:12:33 2009

In test:
temp.el:4:11:Warning: `=' called with 1 arg, but requires 2
temp.el:4:14:Warning: `length' called with 2 args, but requires 1

But the bug is on 6th line, not the 4th line.

---
Kenichi Handa
handa <at> m17n.org




Information forwarded to bug-submit-list <at> lists.donarmstrong.com, Emacs Bugs <bug-gnu-emacs <at> gnu.org>:
bug#2681; Package emacs. (Mon, 16 Mar 2009 10:10:03 GMT) Full text and rfc822 format available.

Acknowledgement sent to Juanma Barranquero <lekktu <at> gmail.com>:
Extra info received and forwarded to list. Copy sent to Emacs Bugs <bug-gnu-emacs <at> gnu.org>. (Mon, 16 Mar 2009 10:10:04 GMT) Full text and rfc822 format available.

Message #10 received at 2681 <at> emacsbugs.donarmstrong.com (full text, mbox):

From: Juanma Barranquero <lekktu <at> gmail.com>
To: Kenichi Handa <handa <at> m17n.org>
Cc: 2681 <at> debbugs.gnu.org
Subject: Re: bug#2681: 23.0.91; incorrect line shown by lisp compiler
Date: Mon, 16 Mar 2009 11:03:54 +0100
On Mon, Mar 16, 2009 at 05:16, Kenichi Handa <handa <at> m17n.org> wrote:

> In test:
> temp.el:4:11:Warning: `=' called with 1 arg, but requires 2
> temp.el:4:14:Warning: `length' called with 2 args, but requires 1
>
> But the bug is on 6th line, not the 4th line.

In a simpler test:

 (defun test (v)
   (or (= (length v 0))
       (= (length v) 1)))

produces

 test.el:2:8:Warning: `=' called with 1 arg, but requires 2
 test.el:3:11:Warning: `length' called with 2 args, but requires 1

but after changing the second `length'

 (defun test (v)
   (or (= (length v 0))
       (= (safe-length v) 1)))

the error output is correct:

 test.el:2:8:Warning: `=' called with 1 arg, but requires 2
 test.el:2:11:Warning: `length' called with 2 args, but requires 1

   Juanma




bug Marked as found in versions 23.0.91. Request was from Noam Postavsky <npostavs <at> users.sourceforge.net> to control <at> debbugs.gnu.org. (Wed, 01 Jun 2016 15:34:03 GMT) Full text and rfc822 format available.

Merged 2681 8774 22288. Request was from Noam Postavsky <npostavs <at> users.sourceforge.net> to control <at> debbugs.gnu.org. (Wed, 01 Jun 2016 15:34:03 GMT) Full text and rfc822 format available.

Merged 2681 8774 9109 22288. Request was from npostavs <at> users.sourceforge.net to control <at> debbugs.gnu.org. (Fri, 05 Aug 2016 01:30:03 GMT) Full text and rfc822 format available.

Forcibly Merged 2681 8774 9109 22288 24449. Request was from Glenn Morris <rgm <at> gnu.org> to control <at> debbugs.gnu.org. (Fri, 16 Sep 2016 16:46:01 GMT) Full text and rfc822 format available.

Forcibly Merged 2681 8774 9109 22288 24128 24449. Request was from Glenn Morris <rgm <at> gnu.org> to control <at> debbugs.gnu.org. (Fri, 16 Sep 2016 16:48:01 GMT) Full text and rfc822 format available.

Disconnected #24449 from all other report(s). Request was from Glenn Morris <rgm <at> gnu.org> to control <at> debbugs.gnu.org. (Fri, 16 Sep 2016 20:33:01 GMT) Full text and rfc822 format available.

Merged 2681 8774 9109 22288 24128 24592. Request was from npostavs <at> users.sourceforge.net to control <at> debbugs.gnu.org. (Wed, 05 Oct 2016 00:00:02 GMT) Full text and rfc822 format available.

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Sun, 20 Feb 2022 12:24:04 GMT) Full text and rfc822 format available.

This bug report was last modified 3 years and 119 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.