From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Jarek Czekalski Newsgroups: gmane.emacs.devel Subject: command-error-function default handler Date: Sat, 26 Oct 2013 21:16:08 +0200 Message-ID: <526C14F8.2080408@poczta.onet.pl> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1382814994 14928 80.91.229.3 (26 Oct 2013 19:16:34 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 26 Oct 2013 19:16:34 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Oct 26 21:16:39 2013 Return-path: Envelope-to: ged-emacs-devel@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 1Va9Lh-0004F6-D9 for ged-emacs-devel@m.gmane.org; Sat, 26 Oct 2013 21:16:37 +0200 Original-Received: from localhost ([::1]:35776 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Va9Lg-00071O-WD for ged-emacs-devel@m.gmane.org; Sat, 26 Oct 2013 15:16:37 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:49771) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Va9LZ-000714-Nm for emacs-devel@gnu.org; Sat, 26 Oct 2013 15:16:35 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Va9LG-0006Hu-My for emacs-devel@gnu.org; Sat, 26 Oct 2013 15:16:29 -0400 Original-Received: from smtpo15.poczta.onet.pl ([213.180.142.146]:58711) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Va9LG-0006HZ-C4 for emacs-devel@gnu.org; Sat, 26 Oct 2013 15:16:10 -0400 Original-Received: from [192.168.17.9] (cj.e-siemianowice.pl [95.215.234.30]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: jarekczek@poczta.onet.pl) by smtp.poczta.onet.pl (Onet) with ESMTPSA id 3d6X3X1Y91zZCcBF for ; Sat, 26 Oct 2013 21:16:07 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=poczta.onet.pl; s=2011; t=1382814968; bh=uIMT+enV4k7Txptwf2kUHZ2NO1itrnPT9Z52r+L90tQ=; h=Message-ID:Date:From:MIME-Version:To:Subject:Content-Type: Content-Transfer-Encoding; b=ayrr5YGZHud4FVuiE/5Ls5CNTmEx2aOM4hxxjsKLo3Ppr5M5ogLeJoQpCb4Uam05l 8C0eO9XyaQ2Ikz3YrE3C5ajhwAp6e3BxdZBw9kNrfkVo3SR/0m0I1JPPGLitbdao3l hD+Fd/S1MT3zGpmN60itnBHnSIdnjiw8j4IDU4SQ= User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:15.0) Gecko/20120824 Thunderbird/15.0 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 213.180.142.146 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:164569 Archived-At: I was adviced to use command-error-function. However despite my selective error handling I want a default error handling to be performed too. I look into keyboard.c and see that the main activity of default handler is calling print_error_message. But how do I do that from elisp? It would be nice if command-error-function documentation explicitly say how to install custom error handling so that default handling still occured. Or at least how to display the message in most compatible way. The similar issue is with bell. The docs does not say how to mimic default bell. Thanks Jarek