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

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

bug#25230: Patch to ispell.el to simplify use of [:alpha:] for CASECHARS


From: Reuben Thomas
Subject: bug#25230: Patch to ispell.el to simplify use of [:alpha:] for CASECHARS in built-in dictionaries
Date: Mon, 19 Dec 2016 12:28:57 +0000

I noticed that I had not quite finished the work of commit 854ed8a, which removed the test for support for POSIX character classes, as that is now guaranteed.

In ispell-set-spellchecker-params, there is code that used to be run conditionally on support for POSIX character classes, which sets all the CASECHARS and NOT-CASECHARS entries for built-in dictionaries to [[:alpha:]] and [^[:alpha:]] respectively.

There is no point doing this unconditionally, so instead, put these character classes directly into the initial values used in ispell-dictionary-base-alist. This change also makes the variable's initialization easier to read.

The attached patch makes these changes.

--
http://rrt.sc3d.org

Attachment: 0001-Use-alpha-by-default-for-ispell-built-in-dictionarie.patch
Description: Text Data


reply via email to

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