bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#4578: marked as done ([PATCH] Emacs CVS: ispell.el (ispell-get-decod


From: Emacs bug Tracking System
Subject: bug#4578: marked as done ([PATCH] Emacs CVS: ispell.el (ispell-get-decoded-string): signal an error if no slot found)
Date: Sat, 17 Oct 2009 03:20:12 +0000

Your message dated Fri, 16 Oct 2009 23:10:38 -0400
with message-id <j18wfag1g1.fsf@fencepost.gnu.org>
and subject line Re: Bug#4578: ispell.el (ispell-get-decoded-string): signal an 
error if no slot found
has caused the Emacs bug report #4578,
regarding [PATCH] Emacs CVS: ispell.el (ispell-get-decoded-string): signal an 
error if no slot found
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact owner@emacsbugs.donarmstrong.com
immediately.)


-- 
4578: http://emacsbugs.donarmstrong.com/cgi-bin/bugreport.cgi?bug=4578
Emacs Bug Tracking System
Contact owner@emacsbugs.donarmstrong.com with problems
--- Begin Message --- Subject: [PATCH] Emacs CVS: ispell.el (ispell-get-decoded-string): signal an error if no slot found Date: Mon, 28 Sep 2009 14:39:07 +0300
Tags: patch

If the empty slot is not checked, the spell checking breaks in myterious
errors. E.g. flyspell-get-casechars returns nil, which breaks all of
flyspell.

2009-09-28  Jari Aalto  <jari.aalto@cante.net>

        * textmodes/ispell.el (ispell-get-decoded-string): signal an error
        if no matching slot is found from `ispell-current-dictionary'

>From b301e76fdf3e83de88101891a3cd7ea13f5fba14 Mon Sep 17 00:00:00 2001
From: Jari Aalto <jari.aalto@cante.net>
Date: Mon, 28 Sep 2009 14:35:21 +0300
Subject: [PATCH] lisp/textmodes/ispell.el: (ispell-get-decoded-string): signal 
an error if no slot found


Signed-off-by: Jari Aalto <jari.aalto@cante.net>
---
 lisp/textmodes/ispell.el |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/lisp/textmodes/ispell.el b/lisp/textmodes/ispell.el
index 6d02cf9..729122b 100644
--- a/lisp/textmodes/ispell.el
+++ b/lisp/textmodes/ispell.el
@@ -1289,7 +1289,8 @@ Protects against bogus binding of 
`enable-multibyte-characters' in XEmacs."
 (defun ispell-get-decoded-string (n)
   (let* ((slot (or
                (assoc ispell-current-dictionary ispell-local-dictionary-alist)
-               (assoc ispell-current-dictionary ispell-dictionary-alist)))
+               (assoc ispell-current-dictionary ispell-dictionary-alist)
+               (error "No slot match in ispell-current-dictionary")))
         (str (nth n slot)))
     (when (and (> (length str) 0)
               (not (multibyte-string-p str)))
-- 
1.6.3.3


--- End Message ---
--- Begin Message --- Subject: Re: Bug#4578: ispell.el (ispell-get-decoded-string): signal an error if no slot found Date: Fri, 16 Oct 2009 23:10:38 -0400 User-agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/)
Thanks; applied.

--- End Message ---

reply via email to

[Prev in Thread] Current Thread [Next in Thread]