From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Kevin Rodgers Newsgroups: gmane.emacs.bugs Subject: Re: error on start Date: Mon, 22 Apr 2002 11:35:55 -0600 Organization: Information Handling Services, Electronic Systems Development Sender: bug-gnu-emacs-admin@gnu.org Message-ID: <3CC449FB.FA548BC0@ihs.com> References: <3CC2DC25.4660B3F0@is.elta.co.il> NNTP-Posting-Host: localhost.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: main.gmane.org 1019496979 22084 127.0.0.1 (22 Apr 2002 17:36:19 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 22 Apr 2002 17:36:19 +0000 (UTC) Return-path: Original-Received: from fencepost.gnu.org ([199.232.76.164]) by main.gmane.org with esmtp (Exim 3.33 #1 (Debian)) id 16zhje-0005k5-00 for ; Mon, 22 Apr 2002 19:36:18 +0200 Original-Received: from localhost ([127.0.0.1] helo=fencepost.gnu.org) by fencepost.gnu.org with esmtp (Exim 3.34 #1 (Debian)) id 16zhjc-0006tn-00; Mon, 22 Apr 2002 13:36:16 -0400 Original-Received: from ashd1-1.relay.mail.uu.net ([199.171.54.245]) by fencepost.gnu.org with smtp (Exim 3.34 #1 (Debian)) id 16zhjI-0006rr-00 for ; Mon, 22 Apr 2002 13:35:56 -0400 Original-Received: from mail.fu-berlin.de by mr0.ash.ops.us.uu.net with ESMTP (peer crosschecked as: mail.fu-berlin.de [160.45.11.165]) id QQmlsg07824 for ; Mon, 22 Apr 2002 17:35:55 GMT Original-Received: by mail.fu-berlin.de (Smail3.2.0.98) from Curry.ZEDAT.FU-Berlin.DE (160.45.10.36) with esmtp id ; Mon, 22 Apr 2002 19:35:54 +0200 (MEST) Original-Received: by Curry.ZEDAT.FU-Berlin.DE (Smail3.2.0.98) from news.fu-berlin.de with bsmtp id ; Mon, 22 Apr 2002 19:35:53 +0200 (MEST) Original-To: gnu-emacs-bug@moderators.isc.org Original-Path: 170.207.51.80!not-for-mail Original-Newsgroups: gnu.emacs.bug Original-Lines: 45 X-Orig-NNTP-Posting-Host: 170.207.51.80 X-Orig-X-Trace: fu-berlin.de 1019496953 7252960 170.207.51.80 (16 [82742]) X-Mailer: Mozilla 4.78 [en] (X11; U; SunOS 5.7 i86pc) X-Accept-Language: en Errors-To: bug-gnu-emacs-admin@gnu.org X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.0.9 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Bug reports for GNU Emacs, the Swiss army knife of text editors List-Unsubscribe: , List-Archive: Xref: main.gmane.org gmane.emacs.bugs:873 X-Report-Spam: http://spam.gmane.org/gmane.emacs.bugs:873 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(# "~/%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 * 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