From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "T.V. Raman" Newsgroups: gmane.emacs.devel Subject: Info: Console Vs GUI difference? Date: Thu, 31 Oct 2013 19:10:36 -0700 Message-ID: References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 X-Trace: ger.gmane.org 1383271838 23627 80.91.229.3 (1 Nov 2013 02:10:38 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 1 Nov 2013 02:10:38 +0000 (UTC) To: Stefan Monnier , emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Nov 01 03:10:42 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 1Vc4CA-0007iF-Ed for ged-emacs-devel@m.gmane.org; Fri, 01 Nov 2013 03:10:42 +0100 Original-Received: from localhost ([::1]:60013 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Vc4C9-0000lq-Ow for ged-emacs-devel@m.gmane.org; Thu, 31 Oct 2013 22:10:41 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:58144) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Vc4C6-0000lk-Hc for emacs-devel@gnu.org; Thu, 31 Oct 2013 22:10:39 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Vc4C5-0005KB-AR for emacs-devel@gnu.org; Thu, 31 Oct 2013 22:10:38 -0400 Original-Received: from mail-ob0-x230.google.com ([2607:f8b0:4003:c01::230]:35906) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Vc4C5-0005K7-16 for emacs-devel@gnu.org; Thu, 31 Oct 2013 22:10:37 -0400 Original-Received: by mail-ob0-f176.google.com with SMTP id uy5so3990829obc.35 for ; Thu, 31 Oct 2013 19:10:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=kgrtNlieX5c3l3GJCBSt9a4pQu8wfoEIxzf5ezUZf3k=; b=Z6c2t2FC9q4IpzTSGNay3rA3/cX7ARpx0k1FCANoYL+wlowPo8LHvrkN5xN7UVNfA5 NuRvm/ptwFTeNb2QaDQoDWwTP+/d5fuTHGXIqreAzeEguhmMP0tj9EkzwS+VoDWVuidL phVPnwl79LDRGKdQJCvI2dTk+sMzkgPWEf91FncNm1SVSUaemF3YR4SIzCr2mnmASzTi b6wGkA+vXlzsRX9enslMrALkofZPOU70W+xisjj1XketGse/FEeTCmaRxAUmTYh4ofDr tqfQM1NdmO9PrVe1uBNoXegx5PT1Pgm6/lF+8HpZWbrE78AQeY0WqWHIx+c9av903YGw rBDQ== X-Received: by 10.60.40.70 with SMTP id v6mr601373oek.69.1383271836225; Thu, 31 Oct 2013 19:10:36 -0700 (PDT) Original-Received: by 10.182.33.229 with HTTP; Thu, 31 Oct 2013 19:10:36 -0700 (PDT) In-Reply-To: X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2607:f8b0:4003:c01::230 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:164771 Archived-At: I just added (backtrace) at the top of the advice form. -- Best Regards, --raman On 10/31/13, Stefan Monnier wrote: >> -- 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 >