bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: error on start


From: Kevin Rodgers
Subject: Re: error on start
Date: Mon, 22 Apr 2002 11:35:55 -0600

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  <address@hidden>
        * 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 <address@hidden>



reply via email to

[Prev in Thread] Current Thread [Next in Thread]