* Re: error on start
[not found] ` <3CC2DC25.4660B3F0@is.elta.co.il>
@ 2002-04-22 17:35 ` Kevin Rodgers
0 siblings, 0 replies; only message in thread
From: Kevin Rodgers @ 2002-04-22 17:35 UTC (permalink / raw)
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>
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2002-04-22 17:35 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <pan.2002.04.21.10.28.55.100973.2205@hartford-hwp.com>
[not found] ` <3CC2DC25.4660B3F0@is.elta.co.il>
2002-04-22 17:35 ` error on start Kevin Rodgers
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).