unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Kevin Rodgers <ihs_4664@yahoo.com>
Subject: Re: flyspell-auto-correct-word many wrong-type-argument
Date: Mon, 22 Sep 2003 09:39:03 -0600	[thread overview]
Message-ID: <3F6F1797.8070004@yahoo.com> (raw)
In-Reply-To: mailman.444.1064004284.21628.bug-gnu-emacs@gnu.org

Dan Jacobson wrote:

> Sometimes flyspell-auto-correct-word does its job when esc tab is hit, but
> complains in the minibuffer "Wrong type argument: vectorp: nil".
> 
> 
>>>>>>"K" == Kevin Rodgers <ihs_4664@yahoo.com> writes:
>>>>>>
> 
> K> What is the value of flyspell-use-global-abbrev-table-p ?
> 
> nil
> 
> K> What was the buffer's major mode?
> 
> Message mode.
> 
> 8 lines matching " minor mode" in buffer *Help*.
>       2:For minor modes, see following pages.
>     157:Mml minor mode (indicator MML):
>     159:MML is the MIME Meta Language, a minor mode for composing MIME articles.
>     201:Mc-Write minor mode (indicator MC-w):
>     215:Flyspell minor mode (indicator Fly):
>     220:With a prefix argument ARG, turn Flyspell minor mode on iff ARG is positive.
>     244:Abbrev minor mode (indicator Abbrev):
>     250:auto-fill-function minor mode (indicator Fill):
> 
> in fact it happens as I compose this message too, so add SC minor mode
> (supercite) to the above.
> 
> Wait, if I (setq flyspell-use-global-abbrev-table-p t) the problem
> goes away.
> 
> I see, I will do this in .emacs to hush up the problem, while the
> elves will please fix it behind the scenes.

The problem is here:


(defun flyspell-abbrev-table ()
   (if flyspell-use-global-abbrev-table-p
       global-abbrev-table
     local-abbrev-table))


Since local-abbrev-table can be nil, flyspell-abbrev-table can return nil.
Should its callers check for that, or should it be changed to return an
abbrev table:

(defun flyspell-abbrev-table ()
   (cond (flyspell-use-global-abbrev-table-p global-abbrev-table)
         (local-abbrev-table)
         (t (setq local-abbrev-table (make-abbrev-table)))))

-- 
Kevin Rodgers

  parent reply	other threads:[~2003-09-22 15:39 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <mailman.1326.1062294977.29551.bug-gnu-emacs@gnu.org>
2003-09-02 16:54 ` flyspell-auto-correct-word many wrong-type-argument Kevin Rodgers
2003-09-19 19:03   ` Dan Jacobson
     [not found]   ` <mailman.444.1064004284.21628.bug-gnu-emacs@gnu.org>
2003-09-22 15:39     ` Kevin Rodgers [this message]
2003-09-24 12:47       ` Richard Stallman
     [not found]       ` <mailman.630.1064407708.21628.bug-gnu-emacs@gnu.org>
2003-09-24 17:09         ` Kevin Rodgers
2003-08-31  0:29 Dan Jacobson

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=3F6F1797.8070004@yahoo.com \
    --to=ihs_4664@yahoo.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).