From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Michael Heerdegen Newsgroups: gmane.emacs.help Subject: Re: if and only if an Error message Date: Mon, 21 Jul 2014 10:51:39 +0200 Message-ID: <87k3779js4.fsf@web.de> References: <87tx6e2tr1.fsf@gmail.com> <87vbqu1721.fsf@debian.uxu> <871ttijfiy.fsf@web.de> <87k37a1569.fsf@debian.uxu> <87vbqu9fpd.fsf_-_@debian.uxu> <8761iu6l9u.fsf@debian.uxu> <87iomu54xq.fsf@debian.uxu> <87d2d253u1.fsf@debian.uxu> <87lhrpd0wq.fsf@debian.uxu> <8761irsob8.fsf@debian.uxu> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1405932748 3191 80.91.229.3 (21 Jul 2014 08:52:28 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 21 Jul 2014 08:52:28 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Jul 21 10:52:20 2014 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1X99KT-0004R1-TO for geh-help-gnu-emacs@m.gmane.org; Mon, 21 Jul 2014 10:52:18 +0200 Original-Received: from localhost ([::1]:32950 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X99KT-0004te-Ih for geh-help-gnu-emacs@m.gmane.org; Mon, 21 Jul 2014 04:52:17 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:39466) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X99KD-0004mk-H8 for help-gnu-emacs@gnu.org; Mon, 21 Jul 2014 04:52:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1X99K7-0003V9-J5 for help-gnu-emacs@gnu.org; Mon, 21 Jul 2014 04:52:01 -0400 Original-Received: from plane.gmane.org ([80.91.229.3]:41994) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X99K7-0003TY-CA for help-gnu-emacs@gnu.org; Mon, 21 Jul 2014 04:51:55 -0400 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1X99K6-000463-Eq for help-gnu-emacs@gnu.org; Mon, 21 Jul 2014 10:51:54 +0200 Original-Received: from dslb-094-217-127-201.pools.arcor-ip.net ([94.217.127.201]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 21 Jul 2014 10:51:54 +0200 Original-Received: from michael_heerdegen by dslb-094-217-127-201.pools.arcor-ip.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 21 Jul 2014 10:51:54 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 25 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: dslb-094-217-127-201.pools.arcor-ip.net User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.92 (gnu/linux) Cancel-Lock: sha1:tQztYJdhz/sE6vAgCOFBrPHeUFA= X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 80.91.229.3 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:98853 Archived-At: Emanuel Berg writes: > > Maybe also call `discard-input' as > > `command-error-default-function' does. > > Well, yes, I removed that part from your suggestion > (not `discard-input' but the whole part with > `command-error-default-function') because I don't have > that, neither as a function or a variable. Do you have > it? What is it? A function. I didn't check -- it doesn't exist in the current release, but will be in the next one. Until then, I suggest you call `discard-input'. > > And (message "%s" error-str). > > ^^^^ > > Isn't it already a string from this? That's not the point. The first arg of `message' is treated as a "format control string". If there's a "%" char in `error-str', you'll get an error with your version.