[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Info: Console Vs GUI difference?
From: |
T.V. Raman |
Subject: |
Info: Console Vs GUI difference? |
Date: |
Sat, 2 Nov 2013 08:35:35 -0700 |
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)
--
--
On 10/31/13, Stefan Monnier <address@hidden> wrote:
>> And speaking of aditional emacs hooks that would help emacspeak:
>
>> 1. A hook that I can use to catch read-only errors for typing
>> commands -- a hook here would be a clean solution because
>> independent of context, I mostly want to speak the same thing
>
>> 2. Less need to advice error/ and hopefully never to advice signal --
>> This one is harder because many emacs packages use signal and
>> error to signal conditions that should be communicated to the
>> average user.
>
> It seems from where I stand that both should be covered by
> command-error-function. So, maybe you should explain in more detail
> which part of command-error-function doesn't suit your need.
>
>
> Stefan
>
- Re: Info: Console Vs GUI difference?, (continued)
- Re: Info: Console Vs GUI difference?, Stefan Monnier, 2013/11/01
- Info: Console Vs GUI difference?, T.V. Raman, 2013/11/03
- Re: Info: Console Vs GUI difference?, Jarek Czekalski, 2013/11/03
- Info: Console Vs GUI difference?, T.V. Raman, 2013/11/03
- Re: Info: Console Vs GUI difference?, Dmitri Paduchikh, 2013/11/03
- Info: Console Vs GUI difference?, T.V. Raman, 2013/11/04
- Re: Info: Console Vs GUI difference?, Stefan Monnier, 2013/11/04
- Re: Info: Console Vs GUI difference?, Eli Zaretskii, 2013/11/02
- Info: Console Vs GUI difference?, T.V. Raman, 2013/11/01
- Re: Info: Console Vs GUI difference?, Jarek Czekalski, 2013/11/02
Info: Console Vs GUI difference?,
T.V. Raman <=