unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Juri Linkov <juri@jurta.org>
To: Lars Magne Ingebrigtsen <larsi@gnus.org>
Cc: 9121@debbugs.gnu.org, jidanni@jidanni.org
Subject: bug#9121: Error in ispell process
Date: Fri, 16 Sep 2011 15:45:46 +0300	[thread overview]
Message-ID: <8762ksfylx.fsf@mail.jurta.org> (raw)
In-Reply-To: <m3wrd945fr.fsf@stories.gnus.org> (Lars Magne Ingebrigtsen's message of "Fri, 16 Sep 2011 03:55:04 +0200")

> Right.  How about changing the message to
>
> "Error in ispell process (possibly wrong dictionary?)"

There may be other reasons for errors.  We can't say for sure because we
can't determine the language of the checked word.  (Well, we could add
a package for automatic language identification at some point later :-)

`ispell-region' solves this problem by saying in its message which
dictionary has been used for spell-checking, e.g.

  Spell-checking region using aspell with default dictionary...done

The same could be done for `ispell-word' as well:

  Error checking word 台灣跨性別 using aspell with default dictionary

So users will see enough information to figure out what's wrong:

=== modified file 'lisp/textmodes/ispell.el'
--- lisp/textmodes/ispell.el	2011-08-25 19:54:07 +0000
+++ lisp/textmodes/ispell.el	2011-09-16 12:39:49 +0000
@@ -1723,7 +1723,11 @@ (defun ispell-word (&optional following
 		  (extent-at start)
 		  (and (fboundp 'delete-extent)
 		       (delete-extent (extent-at start)))))
-	    ((null poss) (message "Error in ispell process"))
+	    ((null poss)
+	     (message "Error checking word %s using %s with %s dictionary"
+		      (funcall ispell-format-word-function word)
+		      (file-name-nondirectory ispell-program-name)
+		      (or ispell-current-dictionary "default")))
 	    (ispell-check-only	      ; called from ispell minor mode.
 	     (if (fboundp 'make-extent)
 		 (if (fboundp 'set-extent-property)
@@ -3034,7 +3038,7 @@ (defun ispell-tex-arg-end (&optional arg
 	(while (looking-at "[ \t\n]*\\[") (forward-sexp))
 	(forward-sexp (or arg 1)))
     (error
-     (message "error skipping s-expressions at point %d." (point))
+     (message "Error skipping s-expressions at point %d." (point))
      (beep)
      (sit-for 2))))






  reply	other threads:[~2011-09-16 12:45 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-07-19 14:20 bug#9121: Error in ispell process jidanni
2011-09-11  3:06 ` Lars Magne Ingebrigtsen
2011-09-11 15:52   ` Eli Zaretskii
2011-09-11 16:02     ` Lars Magne Ingebrigtsen
2011-09-11 17:46       ` Eli Zaretskii
2011-09-11 17:59         ` Lars Magne Ingebrigtsen
2011-09-11 18:09           ` Eli Zaretskii
2011-09-11 20:46             ` Lars Magne Ingebrigtsen
2011-09-15 18:42               ` Juri Linkov
2011-09-16  1:55                 ` Lars Magne Ingebrigtsen
2011-09-16 12:45                   ` Juri Linkov [this message]
2011-09-17  5:06                     ` Lars Magne Ingebrigtsen
2011-09-17 12:08                       ` Juri Linkov

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=8762ksfylx.fsf@mail.jurta.org \
    --to=juri@jurta.org \
    --cc=9121@debbugs.gnu.org \
    --cc=jidanni@jidanni.org \
    --cc=larsi@gnus.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 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).