From: Kevin Rodgers <kevinr@ihs.com>
Subject: Re: error on start
Date: Mon, 22 Apr 2002 11:35:55 -0600 [thread overview]
Message-ID: <3CC449FB.FA548BC0@ihs.com> (raw)
In-Reply-To: 3CC2DC25.4660B3F0@is.elta.co.il
Eli Zaretskii wrote:
>
> Haines Brown wrote:
> >
> > When I start emacs I get an error message that I can't figure out:
> >
> > Signaling: (error "Not enough arguments for format string")
> > message("%f has auto save data; consider M-x recover-file")
> > ect-1(#<buffer %f> "~/%f" nil nil "~/%f" nil)
>
> Sounds like one of your startup files tries to visit a file whose name is
> "%f", and Emacs thinks that "%f" is a format specification.
Which is a bug in Emacs: `message' should always be called with an explicit
format argument if the message string isn't a constant. Here's the patch:
2002-04-22 Kevin Rodgers <kevinr@ihs.com>
* files.el (after-find-file): Make sure message is called with a
format argument, in case the message itself unexpectedly contains
format specs.
*** emacs-20.7/lisp/files.el.orig Tue May 23 05:17:39 2000
--- emacs-20.7/lisp/files.el Mon Apr 22 11:29:20 2002
***************
*** 1190,1196 ****
"Use C-u M-x make-directory RET RET to create directory and its
parents")))))
(if msg
(progn
! (message msg)
(or not-serious (sit-for 1 nil t)))))
(if (and auto-save-default (not noauto))
(auto-save-mode t)))
--- 1190,1196 ----
"Use C-u M-x make-directory RET RET to create directory and its
parents")))))
(if msg
(progn
! (message "%s" msg)
(or not-serious (sit-for 1 nil t)))))
(if (and auto-save-default (not noauto))
(auto-save-mode t)))
--
Kevin Rodgers <kevinr@ihs.com>
parent reply other threads:[~2002-04-22 17:35 UTC|newest]
Thread overview: expand[flat|nested] mbox.gz Atom feed
[parent not found: <3CC2DC25.4660B3F0@is.elta.co.il>]
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=3CC449FB.FA548BC0@ihs.com \
--to=kevinr@ihs.com \
/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).