Subject: Re: bug#64226: 30.0.50; emacs-lisp-native-compile-and-load permission error

From: No Wayman <[email-masked]>
Date: Thu, 22 Jun 2023 12:22:07 -0400

Eli Zaretskii <[email-masked]> writes:

> No, I don't think so, not with 
> emacs-lisp-native-compile-and-load.
> Andrea, am I right?

See comp-final:

	(with-temp-buffer
          (unwind-protect
              (if (zerop
                   (call-process (expand-file-name invocation-name
                                                   invocation-directory)
				 nil t t "-no-comp-spawn" "-Q" "--batch" "-l"
                                 temp-file))
                  (progn
                    (delete-file temp-file)
                    output)
		(signal 'native-compiler-error (list (buffer-string))))
            (comp-log-to-buffer (buffer-string))))))))

> And you haven't answered my other question:
 
>> If, in "emacs -Q", you visit the source file, that is
>> 
>>   $HOME/.emacs.d/elpaca/builds/elpaca/elpaca.el
>> 
>> and then type
>> 
>>   M-: (native-compile buffer-file-name) RET
>> 
>> what file name do you see in the echo-area after the 
>> compilation
>> finishes?

The following file name is messaged with no error signaled:

"/home/n/.emacs.d/eln-cache/30.0.50-58a66af6/elpaca-0646d6fc-1256ece5.eln"