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.

Full log


View this message in rfc822 format

From: Juanma Barranquero <lekktu <at> gmail.com>
To: Kenichi Handa <handa <at> m17n.org>
Cc: 2681 <at> debbugs.gnu.org
Subject: 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




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.