From: Lars Ingebrigtsen <larsi@gnus.org>
To: "Andreas Röhler" <andreas.roehler@easy-emacs.de>
Cc: 55885@debbugs.gnu.org
Subject: bug#55885: 29.0.50; missed error message
Date: Sun, 12 Jun 2022 13:42:13 +0200 [thread overview]
Message-ID: <87edzunm5m.fsf@gnus.org> (raw)
In-Reply-To: <b848a0a4-8be4-c687-77c3-ddb2e9284928@easy-emacs.de> ("Andreas Röhler"'s message of "Sun, 12 Jun 2022 12:47:54 +0200")
Andreas Röhler <andreas.roehler@easy-emacs.de> writes:
> (defvar ar-emacs-dir
> (cond (t t)
> (t
> (when ar-emacs-dir ()))))
>
> That doesn't give an error in either Emacs 28 nor Emacs 29.
>
> Hmm, but it should, or? The use of a previous undefined var in its own definition
> should raise an error.
Only if execution reaches that form, and it doesn't here because of the
`t' branch in the cond.
> Unfortunately, have some difficulty translating my init-stuff into a generic report.
>
> Here is what I --gladly-- get when starting from v28, but no longer from v29:
>
> Debugger entered--Lisp error: (void-variable ar-emacs-dir)
> (if ar-emacs-dir (progn (kill-buffer "fns.c")))
> (cond ((boundp 'lisp-directory) (replace-regexp-in-string "/[^/]+/$" "" lisp-directory))
lisp-directory is bound in Emacs 29 but not Emacs 28, so that branch of
the cond is taken there.
So this is all working as it should, and I'm closing this bug report.
(And you should consider using the Emacs help lists with things you
don't understand about Emacs Lisp instead of the bug tracker.)
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog: http://lars.ingebrigtsen.no
prev parent reply other threads:[~2022-06-12 11:42 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-06-10 7:26 bug#55885: 29.0.50; missed error message Andreas Röhler
2022-06-10 9:57 ` Lars Ingebrigtsen
2022-06-12 7:30 ` Andreas Röhler
2022-06-12 10:13 ` Lars Ingebrigtsen
2022-06-12 7:43 ` Andreas Röhler
2022-06-12 10:11 ` Lars Ingebrigtsen
2022-06-12 10:47 ` Andreas Röhler
2022-06-12 11:42 ` Lars Ingebrigtsen [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87edzunm5m.fsf@gnus.org \
--to=larsi@gnus.org \
--cc=55885@debbugs.gnu.org \
--cc=andreas.roehler@easy-emacs.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).