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: Info: Console Vs GUI difference? Date: Thu, 31 Oct 2013 21:32:25 -0400 Message-ID: References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1383269564 1986 80.91.229.3 (1 Nov 2013 01:32:44 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 1 Nov 2013 01:32:44 +0000 (UTC) Cc: emacs-devel@gnu.org To: "T.V. Raman" Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Nov 01 02:32:48 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 1Vc3bU-0003Ht-2r for ged-emacs-devel@m.gmane.org; Fri, 01 Nov 2013 02:32:48 +0100 Original-Received: from localhost ([::1]:59936 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Vc3bT-0008Os-Cx for ged-emacs-devel@m.gmane.org; Thu, 31 Oct 2013 21:32:47 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:52788) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Vc3bJ-0008Nq-5h for emacs-devel@gnu.org; Thu, 31 Oct 2013 21:32:44 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Vc3bB-0003eR-Mf for emacs-devel@gnu.org; Thu, 31 Oct 2013 21:32:36 -0400 Original-Received: from ironport2-out.teksavvy.com ([206.248.154.182]:45175) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Vc3bB-0003eK-Is for emacs-devel@gnu.org; Thu, 31 Oct 2013 21:32:29 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Av4EABK/CFFsoXfp/2dsb2JhbABEvw4Xc4IfAQVWIxALNBIUGA0kiCTBLZEKA6R6gV6DEw X-IPAS-Result: Av4EABK/CFFsoXfp/2dsb2JhbABEvw4Xc4IfAQVWIxALNBIUGA0kiCTBLZEKA6R6gV6DEw X-IronPort-AV: E=Sophos;i="4.84,565,1355115600"; d="scan'208";a="36811320" Original-Received: from 108-161-119-233.dsl.teksavvy.com (HELO pastel.home) ([108.161.119.233]) by ironport2-out.teksavvy.com with ESMTP/TLS/ADH-AES256-SHA; 31 Oct 2013 21:32:27 -0400 Original-Received: by pastel.home (Postfix, from userid 20848) id A86036001B; Thu, 31 Oct 2013 21:32:25 -0400 (EDT) In-Reply-To: (T. V. Raman's message of "Thu, 31 Oct 2013 15:14:30 -0700") 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:164766 Archived-At: > -- Here are the advice fragments I have for error, user-error and > signal. Can you show the code you used to try and get the backtrace? > (defadvice signal (before emacspeak pre act compile) > "Speak the signalled message." > (when emacspeak-speak-signals > (let ((msg (first (ad-get-arg 1)))) > (when (and msg (> (length msg) 0)) > (tts-with-punctuations 'all (dtk-speak msg)))))) I'd only use this advice (and throw away the error and user-error signals), and extend it to check (ad-get-arg 0) for equality with `error' or `user-error'. Stefan