From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Alex Newsgroups: gmane.emacs.devel Subject: Accuracy of procedure name in error messages Date: Mon, 09 Oct 2017 12:30:48 -0600 Message-ID: <87wp44b2cn.fsf@gmail.com> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1507573918 22895 195.159.176.226 (9 Oct 2017 18:31:58 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 9 Oct 2017 18:31:58 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.60 (gnu/linux) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Oct 09 20:31:53 2017 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1e1cqE-0004zl-LT for ged-emacs-devel@m.gmane.org; Mon, 09 Oct 2017 20:31:50 +0200 Original-Received: from localhost ([::1]:59257 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1e1cqK-0002Qi-Du for ged-emacs-devel@m.gmane.org; Mon, 09 Oct 2017 14:31:56 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:40144) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1e1cpL-0002PN-Qt for emacs-devel@gnu.org; Mon, 09 Oct 2017 14:30:57 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1e1cpI-0004EU-Hr for emacs-devel@gnu.org; Mon, 09 Oct 2017 14:30:55 -0400 Original-Received: from mail-it0-x230.google.com ([2607:f8b0:4001:c0b::230]:50854) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1e1cpI-0004EI-D6 for emacs-devel@gnu.org; Mon, 09 Oct 2017 14:30:52 -0400 Original-Received: by mail-it0-x230.google.com with SMTP id 72so10543671itl.5 for ; Mon, 09 Oct 2017 11:30:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:subject:date:message-id:user-agent:mime-version; bh=Q0j88AcgGZH23bKgb5402HYyvcdAMe+sui1JeIL5zx4=; b=ja1KM46ONy9DvEha+kN4VYRyjcNGOFlpryixpPzMoOo3dB/0xGmhhD5HJwPu5xrj6i Y9EbL0Deqv0Vja/qk/ZgayIAMCPX104GWM6t4baTCHLZtbnoamGjJSynjjGU+2R0aVY+ Bsv8GWqQEwo/5zQyl6rYjjs3gDHDKETGgAZSNy67vKFi+izsp+BUFlKzn84DyJxKTGpo UKMjk7lMDXRf73BobzgYGfH2B1/6lBlUvuBwJJ2sskVwWN6R1x32yjZ8Dt0H6cZxugVX KSWdzGxwaGZY7kEpDvWIScMQAm2zQCcqZ8U40WK/Fj0/o71a3LKEGEffVa9Pu201ufRd //Jw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:user-agent :mime-version; bh=Q0j88AcgGZH23bKgb5402HYyvcdAMe+sui1JeIL5zx4=; b=PJP06YDii9/7OLtDEOkI2ePr0IDqGJZb+vzxdlbzgdNxjAWB1GgDY3fpwAZ+A+y/Wx VVJ/TWqeETRnT2pm1dFlUeB3vf53ijGwqeCoDKXxGWOCtTYlNm8RRsvNNXvry+FQzkcl RKk3BXPHePvjTxhp63zkdcyCrUYC6hl7oNFGndP60/jYnoybefZCke6y8yi3h4bvvRic 7G+P9PlYVfWmntnRuaptv7U+Lt/De5+U0HLrEEWda99KyPjJO7wm/MqNcTDNq/6yF2pq XwsvuvlszpJSFbF230bPocMfliP1GfbrPuIoagY9W2hEFvaK8QMqbj5lc5TR0Tf0L0hd jd6A== X-Gm-Message-State: AMCzsaWK9wgZDGI6k4QjGhrwq9eMU8b1qJQmmScwalU/m6vqM/0HEd+Z AgANr0v7LOtDMtLBrMkynCaBOg== X-Google-Smtp-Source: AOwi7QARxDCikQ9G2pLIDVqCddwiLL5kQiV6ha0GtjbhnyGG7DPoweRJbM5wLA18yEfz/1GmMRqz6Q== X-Received: by 10.36.207.137 with SMTP id y131mr14441300itf.130.1507573851370; Mon, 09 Oct 2017 11:30:51 -0700 (PDT) Original-Received: from lylat (S010664777d9cebe3.ss.shawcable.net. [70.64.85.59]) by smtp.gmail.com with ESMTPSA id 80sm1511291itk.40.2017.10.09.11.30.49 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 09 Oct 2017 11:30:50 -0700 (PDT) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:4001:c0b::230 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:219314 Archived-At: For what brought up this question, see: https://lists.gnu.org/archive/html/bug-gnu-emacs/2017-10/msg00261.html The procedure that's named in error messages seems to be incorrect in some cases, especially in bytecode. For example, evaluate: (defun outer () (inner)) (defun inner () (setq global (1+ nil))) With eval-expression-debug-on-error non-nil, evaluate (outer). The debugger pops up with "1+(nil)" at the top, but the error message displayed after continuing is: setq: Wrong type argument: number-or-marker-p, nil Shouldn't it say "1+: Wrong type..."? Now if you byte-compile `outer' and `inner' and evaluate (outer), then the debugger pops up with "inner()" at the top. The error message displayed after continuing is: outer: Wrong type argument: number-or-marker-p, nil So it seems that the error message is created one frame off, and the bytecode versions ignore primitives like `setq' and `1+'. Is this a known limitation, and/or should I file a bug report?