unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Juri Linkov <juri@jurta.org>
To: "Lennart Borgman \(gmail\)" <lennart.borgman@gmail.com>
Cc: emacs-devel@gnu.org
Subject: Re: Errors on missing completion?
Date: Fri, 21 Mar 2008 02:04:52 +0200	[thread overview]
Message-ID: <87fxulhrh7.fsf@jurta.org> (raw)
In-Reply-To: <47E2F85E.50307@gmail.com> (Lennart Borgman's message of "Fri, 21 Mar 2008 00:50:54 +0100")

>> 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/




  reply	other threads:[~2008-03-21  0:04 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 [this message]
2008-03-21  0:26           ` Lennart Borgman (gmail)

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

  List information: https://www.gnu.org/software/emacs/

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

  git send-email \
    --in-reply-to=87fxulhrh7.fsf@jurta.org \
    --to=juri@jurta.org \
    --cc=emacs-devel@gnu.org \
    --cc=lennart.borgman@gmail.com \
    /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 public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).