all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Inappropriate error message on saving new file
@ 2023-11-16 18:07 Frederick Bartlett
  2023-11-16 18:39 ` Eli Zaretskii
  0 siblings, 1 reply; 2+ messages in thread
From: Frederick Bartlett @ 2023-11-16 18:07 UTC (permalink / raw)
  To: help-gnu-emacs

I’m running Emacs 30.0.50 on Fedora 39.

When I save a new buffer, I get the following upon first saving it, even
after checking that the auto-saved file exists:

Debugger entered--Lisp error: (void-function delete-file)
  delete-file("<FILEPATH>#<FILENAME>#")
  delete-auto-save-file-if-necessary(t)
  basic-save-buffer(t)
  save-buffer(1)
  funcall-interactively(save-buffer 1)
  call-interactively(save-buffer nil nil)
  command-execute(save-buffer)

I note that delete-auto-save-file-if-necessary occurs after delete-file;
but I don’t see how that could produce the error message.

After ignoring that first error, everything works as expected, so it’s not
a major problem, but I’d like to understand what Emacs is doing.

Thanks!
Fred


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Inappropriate error message on saving new file
  2023-11-16 18:07 Inappropriate error message on saving new file Frederick Bartlett
@ 2023-11-16 18:39 ` Eli Zaretskii
  0 siblings, 0 replies; 2+ messages in thread
From: Eli Zaretskii @ 2023-11-16 18:39 UTC (permalink / raw)
  To: help-gnu-emacs

> From: Frederick Bartlett <frederick.bartlett@gmail.com>
> Date: Thu, 16 Nov 2023 13:07:18 -0500
> 
> I’m running Emacs 30.0.50 on Fedora 39.
> 
> When I save a new buffer, I get the following upon first saving it, even
> after checking that the auto-saved file exists:
> 
> Debugger entered--Lisp error: (void-function delete-file)
>   delete-file("<FILEPATH>#<FILENAME>#")
>   delete-auto-save-file-if-necessary(t)
>   basic-save-buffer(t)
>   save-buffer(1)
>   funcall-interactively(save-buffer 1)
>   call-interactively(save-buffer nil nil)
>   command-execute(save-buffer)

I'm guessing this is not in "emacs -Q", in which case crystal ball
says some of your customizations are responsible for this.
delete-file is a primitive, i.e. implemented in C, and is always
available in Emacs, so the only way to make it disappear is if some
code makes its function cell void.



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2023-11-16 18:39 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-11-16 18:07 Inappropriate error message on saving new file Frederick Bartlett
2023-11-16 18:39 ` Eli Zaretskii

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.