all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "T.V. Raman" <tv.raman.tv@gmail.com>
To: Dmitri Paduchikh <dpaduchikh@gmail.com>, emacs-devel@gnu.org
Subject: Info: Console Vs GUI difference?
Date: Sat, 2 Nov 2013 13:46:14 -0700	[thread overview]
Message-ID: <CADkJX2iT-qZfo=woGC22bphDzizHu0L=HgUb-CQRz8R37VaiSA@mail.gmail.com> (raw)
In-Reply-To: <87txfuwylb.fsf@dpaduchikh.invalid>

Has the same problem as the code I showed -- this outputs  a set
of messages, including "back to top level"  for every case, -- so
if you install the code, (as with my previous example code), you
hear "back to top level"  even when you hit C-g.

-- 
Best Regards,
--raman


On 11/2/13, Dmitri Paduchikh <dpaduchikh@gmail.com> wrote:
> Raman, how about this code?
>
> (defun emacspeak-error-handler (err context func)
>   (let ((err-msg (concat context (error-message-string err)))
>         (emacspeak-speak-messages nil)
>         (dtk-stop-immediately nil))
>     (dtk-stop)
>     (message "%s"
>              (concat err-msg
>                      (if func (concat " (" (symbol-name func) ")") "")))
>     (ding)
>     (dtk-speak err-msg)))
>
> Also note that add-function is not available in Emacs 24.3.
>
> --
> With best regards
> Dmitri Paduchikh
>
> T.V. Raman wrote:
>
>> Hi Stefan,
>
>> My last attempt at using command-error-function -- appended below
>> -- only produces a "back to top level"  message in all instances.
>
>> Once I can get this working, I'll make the advice on signal
>> conditional on older emacsuns --
>> (defun emacspeak-error-handler  (data  context  calling-function)
>>   "Emacspeak custom error handling function."
>>                (dtk-speak
>>      (format "%s %s"
>>              (or context "")
>>              (or
>>               (get (car data) 'error-message)
>>               ""))))
>
>> (declaim (special command-error-function))
>>                                             (add-function :before
>> command-error-function 'emacspeak-error-handler)
>
>



  reply	other threads:[~2013-11-02 20:46 UTC|newest]

Thread overview: 34+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-10-30  9:27 Info: Console Vs GUI difference? T.V. Raman
2013-10-30 12:35 ` Stefan Monnier
2013-10-30 21:46   ` T.V. Raman
2013-10-30 23:11     ` Stefan Monnier
2013-10-31 16:21       ` T.V. Raman
2013-10-31 18:02         ` Stefan Monnier
2013-10-31 22:14           ` T.V. Raman
2013-11-01  1:32             ` Stefan Monnier
2013-11-01  2:10               ` T.V. Raman
2013-11-01 12:23                 ` Stefan Monnier
2013-11-01 16:55                   ` T.V. Raman
2013-11-01 18:34                     ` Eli Zaretskii
2013-11-01 20:24                       ` T.V. Raman
2013-11-01 20:36                         ` Eli Zaretskii
2013-11-02  0:17                           ` T.V. Raman
2013-11-02  2:04                             ` Stefan Monnier
2013-11-03 15:51                               ` T.V. Raman
2013-11-03 19:02                                 ` Jarek Czekalski
2013-11-03 19:05                                   ` T.V. Raman
2013-11-03 21:19                                     ` Stefan Monnier
2013-11-04  3:10                                     ` Dmitri Paduchikh
2013-11-04 16:38                                       ` T.V. Raman
2013-11-02  7:04                             ` Eli Zaretskii
2013-11-02  1:39                           ` T.V. Raman
2013-11-02  8:06                             ` Jarek Czekalski
2013-11-02 15:35           ` T.V. Raman
2013-11-02 15:56             ` Jarek Czekalski
2013-11-02 16:35             ` Dmitri Paduchikh
2013-11-02 20:46               ` T.V. Raman [this message]
2013-10-30 13:46 ` Jarek Czekalski
2013-10-30 21:45   ` T.V. Raman
2013-10-31 20:23   ` Richard Stallman
2013-11-01  7:37     ` Eli Zaretskii
2013-11-01 17:21       ` T.V. Raman

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CADkJX2iT-qZfo=woGC22bphDzizHu0L=HgUb-CQRz8R37VaiSA@mail.gmail.com' \
    --to=tv.raman.tv@gmail.com \
    --cc=dpaduchikh@gmail.com \
    --cc=emacs-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.