[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Errors on missing completion?
From: |
Juri Linkov |
Subject: |
Re: Errors on missing completion? |
Date: |
Fri, 21 Mar 2008 02:04:52 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (x86_64-pc-linux-gnu) |
>> 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/