From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: command-error-function default handler Date: Sat, 26 Oct 2013 23:44:32 -0400 Message-ID: References: <526C14F8.2080408@poczta.onet.pl> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1382845488 29770 80.91.229.3 (27 Oct 2013 03:44:48 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 27 Oct 2013 03:44:48 +0000 (UTC) Cc: emacs-devel@gnu.org To: Jarek Czekalski Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Oct 27 04:44:51 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 1VaHHW-0000QX-TX for ged-emacs-devel@m.gmane.org; Sun, 27 Oct 2013 04:44:51 +0100 Original-Received: from localhost ([::1]:36556 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VaHHW-0003ls-Ai for ged-emacs-devel@m.gmane.org; Sat, 26 Oct 2013 23:44:50 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:40501) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VaHHN-0003lm-Kk for emacs-devel@gnu.org; Sat, 26 Oct 2013 23:44:48 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VaHHG-0001NI-By for emacs-devel@gnu.org; Sat, 26 Oct 2013 23:44:41 -0400 Original-Received: from ironport2-out.teksavvy.com ([206.248.154.182]:58201) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VaHHG-0001ND-88 for emacs-devel@gnu.org; Sat, 26 Oct 2013 23:44:34 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Av4EABK/CFFLd/hu/2dsb2JhbABEvw4Xc4IeAQEEAVYjBQsLNBIUGA0kiB4GwS2RCgOkeoFegxM X-IPAS-Result: Av4EABK/CFFLd/hu/2dsb2JhbABEvw4Xc4IeAQEEAVYjBQsLNBIUGA0kiB4GwS2RCgOkeoFegxM X-IronPort-AV: E=Sophos;i="4.84,565,1355115600"; d="scan'208";a="36440196" Original-Received: from 75-119-248-110.dsl.teksavvy.com (HELO pastel.home) ([75.119.248.110]) by ironport2-out.teksavvy.com with ESMTP/TLS/ADH-AES256-SHA; 26 Oct 2013 23:44:33 -0400 Original-Received: by pastel.home (Postfix, from userid 20848) id E073460038; Sat, 26 Oct 2013 23:44:32 -0400 (EDT) In-Reply-To: <526C14F8.2080408@poczta.onet.pl> (Jarek Czekalski's message of "Sat, 26 Oct 2013 21:16:08 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 206.248.154.182 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:164577 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? The way to do that right is as follows: - change command-error-function's default value to not be nil. - don't set command-error-function via `setq' but via `add-function'. The first step may require changes to the C code. Stefan