* Errors on missing completion?
@ 2008-03-19 21:00 Lennart Borgman (gmail)
2008-03-20 20:35 ` Juri Linkov
0 siblings, 1 reply; 7+ messages in thread
From: Lennart Borgman (gmail) @ 2008-03-19 21:00 UTC (permalink / raw)
To: Emacs Devel
dabbrev-expand gives an error when it can't complete while
lisp-complete-symbol just gives a message.
I can't see any meaning in that Emacs commands gives errors in cases
like this. Is there anyone who can?
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Errors on missing completion?
2008-03-19 21:00 Errors on missing completion? Lennart Borgman (gmail)
@ 2008-03-20 20:35 ` Juri Linkov
2008-03-20 21:11 ` Lennart Borgman (gmail)
0 siblings, 1 reply; 7+ messages in thread
From: Juri Linkov @ 2008-03-20 20:35 UTC (permalink / raw)
To: Lennart Borgman (gmail); +Cc: Emacs Devel
> dabbrev-expand gives an error when it can't complete while
> lisp-complete-symbol just gives a message.
>
> I can't see any meaning in that Emacs commands gives errors in cases like
> this. Is there anyone who can?
Do you see any problem with this?
--
Juri Linkov
http://www.jurta.org/emacs/
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Errors on missing completion?
2008-03-20 20:35 ` Juri Linkov
@ 2008-03-20 21:11 ` Lennart Borgman (gmail)
2008-03-20 23:20 ` Juri Linkov
0 siblings, 1 reply; 7+ messages in thread
From: Lennart Borgman (gmail) @ 2008-03-20 21:11 UTC (permalink / raw)
To: Juri Linkov; +Cc: Emacs Devel
Juri Linkov wrote:
>> dabbrev-expand gives an error when it can't complete while
>> lisp-complete-symbol just gives a message.
>>
>> I can't see any meaning in that Emacs commands gives errors in cases like
>> this. Is there anyone who can?
>
> Do you see any problem with this?
If you have debug-on-error set to t it gets very disturbing. It is
rather similar to if isearch should raise an error on a search miss.
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Errors on missing completion?
2008-03-20 21:11 ` Lennart Borgman (gmail)
@ 2008-03-20 23:20 ` Juri Linkov
2008-03-20 23:50 ` Lennart Borgman (gmail)
0 siblings, 1 reply; 7+ messages in thread
From: Juri Linkov @ 2008-03-20 23:20 UTC (permalink / raw)
To: Lennart Borgman (gmail); +Cc: Emacs Devel
>>> dabbrev-expand gives an error when it can't complete while
>>> lisp-complete-symbol just gives a message.
>>>
>>> I can't see any meaning in that Emacs commands gives errors in cases like
>>> this. Is there anyone who can?
>>
>> Do you see any problem with this?
>
> If you have debug-on-error set to t it gets very disturbing. It is rather
> similar to if isearch should raise an error on a search miss.
There is a special variable `debug-ignored-errors' with the list
of error messages to ignore, and as I see it already contains
"^No dynamic expansion for .* found$". So when debug-on-error
is non-nil, `dabbrev-expand' is not disturbing due to this variable.
Do you have a test case where `debug-ignored-errors' gets ignored?
--
Juri Linkov
http://www.jurta.org/emacs/
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Errors on missing completion?
2008-03-20 23:20 ` Juri Linkov
@ 2008-03-20 23:50 ` Lennart Borgman (gmail)
2008-03-21 0:04 ` Juri Linkov
0 siblings, 1 reply; 7+ messages in thread
From: Lennart Borgman (gmail) @ 2008-03-20 23:50 UTC (permalink / raw)
To: Juri Linkov; +Cc: Emacs Devel
Juri Linkov wrote:
>>>> dabbrev-expand gives an error when it can't complete while
>>>> lisp-complete-symbol just gives a message.
>>>>
>>>> I can't see any meaning in that Emacs commands gives errors in cases like
>>>> this. Is there anyone who can?
>>> Do you see any problem with this?
>> If you have debug-on-error set to t it gets very disturbing. It is rather
>> similar to if isearch should raise an error on a search miss.
>
> There is a special variable `debug-ignored-errors' with the list
> of error messages to ignore, and as I see it already contains
> "^No dynamic expansion for .* found$". So when debug-on-error
> is non-nil, `dabbrev-expand' is not disturbing due to this variable.
> Do you have a test case where `debug-ignored-errors' gets ignored?
Thanks, I forgot about that variable.
No, I can't understand what happened before right now. I get no error
now. I will try to actually read the error message next time ;-)
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Errors on missing completion?
2008-03-20 23:50 ` Lennart Borgman (gmail)
@ 2008-03-21 0:04 ` Juri Linkov
2008-03-21 0:26 ` Lennart Borgman (gmail)
0 siblings, 1 reply; 7+ messages in thread
From: Juri Linkov @ 2008-03-21 0:04 UTC (permalink / raw)
To: Lennart Borgman (gmail); +Cc: emacs-devel
>> There is a special variable `debug-ignored-errors' with the list
>> of error messages to ignore, and as I see it already contains
>> "^No dynamic expansion for .* found$". So when debug-on-error
>> is non-nil, `dabbrev-expand' is not disturbing due to this variable.
>> Do you have a test case where `debug-ignored-errors' gets ignored?
>
> Thanks, I forgot about that variable.
>
> No, I can't understand what happened before right now. I get no error
> now. I will try to actually read the error message next time ;-)
Ah, I now see what is wrong. When `dabbrev-check-other-buffers' is nil,
the error message is "No dynamic expansion for \"%s\" found in this-buffer"
that is not matched by `debug-ignored-errors'. The following patch
fixes this. All the rest messages are already covered by this list.
Index: lisp/dabbrev.el
===================================================================
RCS file: /sources/emacs/emacs/lisp/dabbrev.el,v
retrieving revision 1.88
diff -c -r1.88 dabbrev.el
*** lisp/dabbrev.el 8 Jan 2008 20:44:44 -0000 1.88
--- lisp/dabbrev.el 21 Mar 2008 00:03:35 -0000
***************
*** 1011,1017 ****
(cons found-string dabbrev--last-table))
result)))))
! (dolist (mess '("^No dynamic expansion for .* found$"
"^No further dynamic expansion for .* found$"
"^No possible abbreviation preceding point$"))
(add-to-list 'debug-ignored-errors mess))
--- 1011,1017 ----
(cons found-string dabbrev--last-table))
result)))))
! (dolist (mess '("^No dynamic expansion for .* found"
"^No further dynamic expansion for .* found$"
"^No possible abbreviation preceding point$"))
(add-to-list 'debug-ignored-errors mess))
--
Juri Linkov
http://www.jurta.org/emacs/
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Errors on missing completion?
2008-03-21 0:04 ` Juri Linkov
@ 2008-03-21 0:26 ` Lennart Borgman (gmail)
0 siblings, 0 replies; 7+ messages in thread
From: Lennart Borgman (gmail) @ 2008-03-21 0:26 UTC (permalink / raw)
To: Juri Linkov; +Cc: emacs-devel
Juri Linkov wrote:
>>> There is a special variable `debug-ignored-errors' with the list
>>> of error messages to ignore, and as I see it already contains
>>> "^No dynamic expansion for .* found$". So when debug-on-error
>>> is non-nil, `dabbrev-expand' is not disturbing due to this variable.
>>> Do you have a test case where `debug-ignored-errors' gets ignored?
>> Thanks, I forgot about that variable.
>>
>> No, I can't understand what happened before right now. I get no error
>> now. I will try to actually read the error message next time ;-)
>
> Ah, I now see what is wrong. When `dabbrev-check-other-buffers' is nil,
> the error message is "No dynamic expansion for \"%s\" found in this-buffer"
> that is not matched by `debug-ignored-errors'. The following patch
> fixes this. All the rest messages are already covered by this list.
Oh, thanks. But wouldn't it be easier to use catch - throw in cases like
this instead. Is not that what the debug-ignored-errors in a way implements?
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2008-03-21 0:26 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-03-19 21:00 Errors on missing completion? Lennart Borgman (gmail)
2008-03-20 20:35 ` Juri Linkov
2008-03-20 21:11 ` Lennart Borgman (gmail)
2008-03-20 23:20 ` Juri Linkov
2008-03-20 23:50 ` Lennart Borgman (gmail)
2008-03-21 0:04 ` Juri Linkov
2008-03-21 0:26 ` Lennart Borgman (gmail)
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.