bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#55885: 29.0.50; missed error message


From: Andreas Röhler
Subject: bug#55885: 29.0.50; missed error message
Date: Sun, 12 Jun 2022 09:30:13 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.9.1


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"



reply via email to

[Prev in Thread] Current Thread [Next in Thread]