From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Andreas =?UTF-8?Q?R=C3=B6hler?= Newsgroups: gmane.emacs.bugs Subject: bug#55885: 29.0.50; missed error message Date: Sun, 12 Jun 2022 09:30:13 +0200 Message-ID: <1c7d7083-334a-29b2-fc7c-e871b411c9b0@easy-emacs.de> References: <877d5ovo21.fsf@gnus.org> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="------------b87ue9l1IhDH8g54diAFf8Vj" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="9684"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.9.1 Cc: 55885@debbugs.gnu.org To: Lars Ingebrigtsen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Jun 12 09:31:22 2022 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1o0I48-0002KE-J6 for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 12 Jun 2022 09:31:20 +0200 Original-Received: from localhost ([::1]:39214 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1o0I47-00022z-Gi for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 12 Jun 2022 03:31:19 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:39644) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o0I3q-00022b-V5 for bug-gnu-emacs@gnu.org; Sun, 12 Jun 2022 03:31:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:60636) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1o0I3q-0002Hn-J2 for bug-gnu-emacs@gnu.org; Sun, 12 Jun 2022 03:31:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1o0I3q-0002qa-Fc for bug-gnu-emacs@gnu.org; Sun, 12 Jun 2022 03:31:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Andreas =?UTF-8?Q?R=C3=B6hler?= Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 12 Jun 2022 07:31:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 55885 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: moreinfo Original-Received: via spool by 55885-submit@debbugs.gnu.org id=B55885.165501902210890 (code B ref 55885); Sun, 12 Jun 2022 07:31:02 +0000 Original-Received: (at 55885) by debbugs.gnu.org; 12 Jun 2022 07:30:22 +0000 Original-Received: from localhost ([127.0.0.1]:54533 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1o0I3B-0002pa-UR for submit@debbugs.gnu.org; Sun, 12 Jun 2022 03:30:22 -0400 Original-Received: from mout.kundenserver.de ([212.227.126.131]:41303) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1o0I39-0002pG-Vz for 55885@debbugs.gnu.org; Sun, 12 Jun 2022 03:30:20 -0400 Original-Received: from [192.168.178.54] ([89.247.171.247]) by mrelayeu.kundenserver.de (mreue010 [212.227.15.167]) with ESMTPSA (Nemesis) id 1MMXDj-1oH7yc3hJP-00Jd5P; Sun, 12 Jun 2022 09:30:13 +0200 Content-Language: en-US In-Reply-To: <877d5ovo21.fsf@gnus.org> X-Provags-ID: V03:K1:F4+fLcsNUR/mhwIBc6wBC4cBl/5DL/zKCCXrAfcrvcqwvJzhLSD 56nwBps5M1F0BvYduWaANRmJ5MXMyzP8K50F09SCz0UDO1WfTvRGwJy95SbqRNJKtQx98BT tWd8gUzt+oQiRrHeE14k1P17d6LspXNy9XmJ2YtOb9lWKPkapjUy6A3V1FMCiQGb/Yhyyhg Gxba62hG5PPMfL4KR9pDQ== X-UI-Out-Filterresults: notjunk:1;V03:K0:XZ0YyPHleY4=:EYHUL5lnUgsqJngn8HEOQR p9UpfS2cmXDG08+0EwJRntLrGWfzqYBs93D+7/W0LwJTs+zwf4dZaVY6PJbEr2bWw7K/qPY9y ocmyBg1+N5E4Ed1EQl3dX9z9FjDTMqI6tysVoEAfnFWv2h/edS8Hw3JnD8ymIAIVe6PuBDu/4 ENElgGanWfnU/k6F0h/6rn9In9LoFCnzo17l2pOcVEe/S6gIjvlfigtTJXdUPRF5j7lB37vKI ALQrb1/raUpjO9q0p2iRNoLeILuOVe4Zh+bmBmH18ON1PV+Tjjcaq43pYKm1PpzjUd3Sz4lnW hb3ClP2ONiIbuEDPUwbnS0EevETH5ygXj670AIolwiulRR9iiMZXg55Nik58+CJfKe7GBSd8u 7KLaTok93WQBv1sNcWqHEQdJOcDy88urcjxlPVlui7m4z5NwRKd0v+YC/5guda5VpP2djZkcM RFNCUW4JgsrLLuqrG7IyeT3ysMOs81lVvDfnhrPWzPgSHP0wJqz/x8SC0zRDG0QTaEGFqMqPZ Mf8QsXrStYDc6bmya2m9u5iEmAtM31xI44aNskfQVFQqFyq8rrjd0l+g6lmLXGk3bFjW9LOlr y1CNa+P22RvjlmDiz7WTD2kvf++jXRmMi91hBUOwvl4EJKMLd1uUFei7etjYzMp0KnVJ+T/Tr Pf0J+L8MTfwWAL5mXSSuHa13gP5w4R3GDJmP2vpvjmGGJLA40dX/cFyevcxo+qMfiBL9XroOS 9QRkfCOyWmCsf9KVndWYINJTwd8R9wW8cduENlevrBg6jfsvj/RBOtHv5uI= X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list 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-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:234328 Archived-At: This is a multi-part message in MIME format. --------------b87ue9l1IhDH8g54diAFf8Vj Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Am 10.06.22 um 11:57 schrieb Lars Ingebrigtsen: > Andreas Röhler writes: > >> The code below evaluates to nil, but should send an error: >> >> (defvar foo-bar-baz >> (cond >> (t () >> (when foo-bar-baz nil)))) >> >> Emacs 28.1 tells as expected: >> >> Debugger entered--Lisp error: (void-variable foo-bar-baz) > I'm unable to reproduce the problem. Both Emacs 29 or 28.1 give an > error if I eval that expression. > > Perhaps you have that variable defined somewhere else so that it doesn't > bug out for you? > Seems my example doesn't work. Herewith the original code considered faulty from my init: (defvar ar-emacs-dir   (cond ((boundp 'lisp-directory)          (replace-regexp-in-string "/[^/]+/$" "" lisp-directory))         ((< (string-to-number (substring emacs-version 0 2)) 27)          (alt-emacsdir))         (t (progn (elisp-find-definition "featurep")               (replace-regexp-in-string "/[^/]+/$" "" (file-name-directory (buffer-file-name))))            (when ar-emacs-dir (kill-buffer "fns.c"))))) From Emacs 29.0.50 it will evaluate ==> "MY_DIR/emacs-20220604" --------------b87ue9l1IhDH8g54diAFf8Vj Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 8bit


Am 10.06.22 um 11:57 schrieb Lars Ingebrigtsen:
Andreas Röhler <andreas.roehler@easy-emacs.de> writes:

The code below evaluates to nil, but should send an error:

(defvar foo-bar-baz
  (cond 
      (t ()
      (when foo-bar-baz nil))))

Emacs 28.1 tells as expected:

Debugger entered--Lisp error: (void-variable foo-bar-baz)
I'm unable to reproduce the problem.  Both Emacs 29 or 28.1 give an
error if I eval that expression.

Perhaps you have that variable defined somewhere else so that it doesn't
bug out for you?


Seems my example doesn't work. Herewith the original code considered faulty from my init:


(defvar ar-emacs-dir
  (cond ((boundp 'lisp-directory)
         (replace-regexp-in-string "/[^/]+/$" "" lisp-directory))
        ((< (string-to-number (substring emacs-version 0 2)) 27)
         (alt-emacsdir))
        (t (progn (elisp-find-definition "featurep")
              (replace-regexp-in-string "/[^/]+/$" "" (file-name-directory (buffer-file-name))))
           (when ar-emacs-dir (kill-buffer "fns.c")))))

From Emacs 29.0.50 it will evaluate

==> "MY_DIR/emacs-20220604"


--------------b87ue9l1IhDH8g54diAFf8Vj--