all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "Andreas Röhler" <andreas.roehler@easy-emacs.de>
To: Lars Ingebrigtsen <larsi@gnus.org>
Cc: 55885@debbugs.gnu.org
Subject: bug#55885: 29.0.50; missed error message
Date: Sun, 12 Jun 2022 12:47:54 +0200	[thread overview]
Message-ID: <b848a0a4-8be4-c687-77c3-ddb2e9284928@easy-emacs.de> (raw)
In-Reply-To: <87edzup4xb.fsf@gnus.org>

[-- Attachment #1: Type: text/plain, Size: 3659 bytes --]


Am 12.06.22 um 12:11 schrieb Lars Ingebrigtsen:
> Andreas Röhler<andreas.roehler@easy-emacs.de>  writes:
>
>> Maybe a more suitable example:
>>
>> (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.


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)) ((< (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)))) (if ar-emacs-dir (progn (kill-buffer "fns.c")))))
   (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)))) (if 
ar-emacs-dir (progn (kill-buffer "fns.c"))))))
   eval-buffer(#<buffer  *load*-897063> nil "/home/my-name/.gnu-emacs25" 
nil t)  ; Reading at buffer position 3749
   load-with-code-conversion("/home/my-name/.gnu-emacs25" 
"/home/my-name/.gnu-emacs25" nil nil)
   load("/home/my-name/.gnu-emacs25")
   (cond ((string-match "^23" emacs-version) (setq custom-file 
(expand-file-name "~/.gnu-emacs23-cvs-custom")) (load (expand-file-name 
"~/.gnu-emacs23-all-cvs"))) ((string-match "^24" emacs-version) (setq 
custom-file (expand-file-name "~/.gnu-emacs24-custom")) (load 
(expand-file-name "~/.gnu-emacs24"))) ((string-match "^25" 
emacs-version) (setq custom-file (expand-file-name 
"~/.gnu-emacs25-custom")) (load (expand-file-name "~/.gnu-emacs25"))) 
((string-match "^26" emacs-version) (setq custom-file (expand-file-name 
"~/.gnu-emacs25-custom")) (load (expand-file-name "~/.gnu-emacs25"))) 
((string-match "^27" emacs-version) (setq custom-file (expand-file-name 
"~/.gnu-emacs25-custom")) (load (expand-file-name "~/.gnu-emacs25"))) 
((string-match "^28" emacs-version) (setq custom-file (expand-file-name 
"~/.gnu-emacs25-custom")) (load (expand-file-name "~/.gnu-emacs25"))) 
((string-match "^29" emacs-version) (setq custom-file (expand-file-name 
"~/.gnu-emacs25-custom")) (load (expand-file-name "~/.gnu-emacs25"))))
   eval-buffer(#<buffer  *load*> nil "/home/my-name/.emacs" nil t)  ; 
Reading at buffer position 1480
   load-with-code-conversion("/home/my-name/.emacs" 
"/home/my-name/.emacs" t t)
   load("~/.emacs" noerror nomessage)
   startup--load-user-init-file(#f(compiled-function () #<bytecode 
0xf76a6f1249f6a62>) #f(compiled-function () #<bytecode 
-0x1f3c686ddc0cdc35>) t)
   command-line()
   normal-top-level()

;;; below again the code which --gladly-- triggered this:


(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")))))

[-- Attachment #2: Type: text/html, Size: 4848 bytes --]

  reply	other threads:[~2022-06-12 10:47 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 [this message]
2022-06-12 11:42         ` Lars Ingebrigtsen

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

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=b848a0a4-8be4-c687-77c3-ddb2e9284928@easy-emacs.de \
    --to=andreas.roehler@easy-emacs.de \
    --cc=55885@debbugs.gnu.org \
    --cc=larsi@gnus.org \
    /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 external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.