all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Frederick Bartlett <frederick.bartlett@gmail.com>
To: help-gnu-emacs@gnu.org
Subject: Inappropriate error message on saving new file
Date: Thu, 16 Nov 2023 13:07:18 -0500	[thread overview]
Message-ID: <CAJr-wt2LkctV7CcJbE3CLbAbWLK2GMFcF-NojzsAet1LO0G6mQ@mail.gmail.com> (raw)

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


             reply	other threads:[~2023-11-16 18:07 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-11-16 18:07 Frederick Bartlett [this message]
2023-11-16 18:39 ` Inappropriate error message on saving new file Eli Zaretskii

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=CAJr-wt2LkctV7CcJbE3CLbAbWLK2GMFcF-NojzsAet1LO0G6mQ@mail.gmail.com \
    --to=frederick.bartlett@gmail.com \
    --cc=help-gnu-emacs@gnu.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.