aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStefan Monnier2008-04-24 15:36:54 +0000
committerStefan Monnier2008-04-24 15:36:54 +0000
commitf753f75d3107fc76a0bd0340923bd136bbf96bca (patch)
tree55cb09b339f47583e9ad8bf6ad1485e885b6f781
parent5d16fdd706141e307e6cd01df1232e68e41b4be9 (diff)
downloademacs-f753f75d3107fc76a0bd0340923bd136bbf96bca.tar.gz
emacs-f753f75d3107fc76a0bd0340923bd136bbf96bca.zip
(ispell-dictionary-alist-1)
(ispell-dictionary-alist-2, ispell-dictionary-alist-3): (ispell-dictionary-alist-4, ispell-dictionary-alist-5): (ispell-dictionary-alist-6): Remove. (ispell-dictionary-base-alist): New var, merges the above. (ispell-find-aspell-dictionaries, ispell-set-spellchecker-params): Use it. (ispell-dictionary-alist): Default to nil. Remove autoload. (ispell-local-dictionary-alist): Remove autoload.
-rw-r--r--lisp/ChangeLog10
-rw-r--r--lisp/textmodes/ispell.el342
2 files changed, 159 insertions, 193 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 06471e1e5e9..91963a31f09 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,5 +1,15 @@
12008-04-24 Stefan Monnier <monnier@iro.umontreal.ca> 12008-04-24 Stefan Monnier <monnier@iro.umontreal.ca>
2 2
3 * textmodes/ispell.el (ispell-dictionary-alist-1)
4 (ispell-dictionary-alist-2, ispell-dictionary-alist-3):
5 (ispell-dictionary-alist-4, ispell-dictionary-alist-5):
6 (ispell-dictionary-alist-6): Remove.
7 (ispell-dictionary-base-alist): New var, merges the above.
8 (ispell-find-aspell-dictionaries, ispell-set-spellchecker-params):
9 Use it.
10 (ispell-dictionary-alist): Default to nil. Remove autoload.
11 (ispell-local-dictionary-alist): Remove autoload.
12
3 * progmodes/f90.el (f90-mode-syntax-table): Don't set ` as word syntax. 13 * progmodes/f90.el (f90-mode-syntax-table): Don't set ` as word syntax.
4 (f90-mode-abbrev-table): Use the new :regexp feature. 14 (f90-mode-abbrev-table): Use the new :regexp feature.
5 Merge defvar and mapc into define-abbrev-table. 15 Merge defvar and mapc into define-abbrev-table.
diff --git a/lisp/textmodes/ispell.el b/lisp/textmodes/ispell.el
index bca165d0a4d..f1e700a211a 100644
--- a/lisp/textmodes/ispell.el
+++ b/lisp/textmodes/ispell.el
@@ -30,7 +30,7 @@
30;; Boston, MA 02110-1301, USA. 30;; Boston, MA 02110-1301, USA.
31 31
32;; Note: version numbers and time stamp are not updated 32;; Note: version numbers and time stamp are not updated
33;; when this file is edited for release with GNU emacs. 33;; when this file is edited for release with GNU Emacs.
34 34
35;;; Commentary: 35;;; Commentary:
36 36
@@ -92,7 +92,7 @@
92;; `m': Place entered value in personal dictionary, then recheck current word. 92;; `m': Place entered value in personal dictionary, then recheck current word.
93;; `C-l': redraws screen 93;; `C-l': redraws screen
94;; `C-r': recursive edit 94;; `C-r': recursive edit
95;; `C-z': suspend emacs or iconify frame 95;; `C-z': suspend Emacs or iconify frame
96 96
97;; Buffer-Local features: 97;; Buffer-Local features:
98;; There are a number of buffer-local features that can be used to customize 98;; There are a number of buffer-local features that can be used to customize
@@ -120,8 +120,8 @@
120;; Need a way to select between different character mappings without separate 120;; Need a way to select between different character mappings without separate
121;; dictionary entries. 121;; dictionary entries.
122;; Multi-byte characters if not defined by current dictionary may result in the 122;; Multi-byte characters if not defined by current dictionary may result in the
123;; evil "misalignment error" in some versions of MULE emacs. 123;; evil "misalignment error" in some versions of MULE Emacs.
124;; On some versions of emacs, growing the minibuffer fails. 124;; On some versions of Emacs, growing the minibuffer fails.
125;; see `ispell-help-in-bufferp'. 125;; see `ispell-help-in-bufferp'.
126;; Recursive edits (?C-r or ?R) inside a keyboard text replacement check (?r) 126;; Recursive edits (?C-r or ?R) inside a keyboard text replacement check (?r)
127;; can cause misalignment errors. 127;; can cause misalignment errors.
@@ -156,7 +156,7 @@
156;; Added dictionary definition for Italian (William Deakin) 156;; Added dictionary definition for Italian (William Deakin)
157;; HTML region skipping greatly improved. (Chuck D. Phillips) 157;; HTML region skipping greatly improved. (Chuck D. Phillips)
158;; improved menus. Fixed regexp matching http/email addresses. 158;; improved menus. Fixed regexp matching http/email addresses.
159;; one arg always for xemacs sleep-for (gunnar Evermann) 159;; one arg always for XEmacs sleep-for (gunnar Evermann)
160;; support for synchronous processes (Eli Zaretskii) 160;; support for synchronous processes (Eli Zaretskii)
161 161
162;; Revision 3.3 1999/11/29 11:38:34 kss 162;; Revision 3.3 1999/11/29 11:38:34 kss
@@ -238,7 +238,7 @@ error is highlighted lazily using isearch lazy highlighting (see
238 :version "22.1") 238 :version "22.1")
239 239
240(defcustom ispell-highlight-face (if ispell-lazy-highlight 'isearch 'highlight) 240(defcustom ispell-highlight-face (if ispell-lazy-highlight 'isearch 'highlight)
241 "*The face used for Ispell highlighting. For Emacses with overlays. 241 "*The face used for Ispell highlighting. For Emacsen with overlays.
242Possible values are `highlight', `modeline', `secondary-selection', 242Possible values are `highlight', `modeline', `secondary-selection',
243`region', and `underline'. 243`region', and `underline'.
244This variable can be set by the user to whatever face they desire. 244This variable can be set by the user to whatever face they desire.
@@ -481,7 +481,6 @@ buffer's major mode."
481(make-variable-buffer-local 'ispell-skip-html) 481(make-variable-buffer-local 'ispell-skip-html)
482 482
483 483
484;;;###autoload
485(defcustom ispell-local-dictionary-alist nil 484(defcustom ispell-local-dictionary-alist nil
486 "*List of local or customized dictionary definitions. 485 "*List of local or customized dictionary definitions.
487These can override the values in `ispell-dictionary-alist'. 486These can override the values in `ispell-dictionary-alist'.
@@ -507,154 +506,113 @@ re-start Emacs."
507 :group 'ispell) 506 :group 'ispell)
508 507
509 508
510;;; split dictionary so line length is smaller in loaddefs.el 509(defvar ispell-dictionary-base-alist
511 510 '((nil ; default (English.aff)
512;;; First part of dictionary, shortened for loaddefs.el 511 "[A-Za-z]" "[^A-Za-z]" "[']" nil ("-B") nil iso-8859-1)
513;;;###autoload 512 ("american" ; Yankee English
514(setq 513 "[A-Za-z]" "[^A-Za-z]" "[']" nil ("-B") nil iso-8859-1)
515 ispell-dictionary-alist-1 514 ("brasileiro" ; Brazilian mode
516 '((nil ; default (English.aff) 515 "[A-Z\301\311\315\323\332\300\310\314\322\331\303\325\307\334\302\312\324a-z\341\351\355\363\372\340\350\354\362\371\343\365\347\374\342\352\364]"
517 "[A-Za-z]" "[^A-Za-z]" "[']" nil ("-B") nil iso-8859-1) 516 "[^A-Z\301\311\315\323\332\300\310\314\322\331\303\325\307\334\302\312\324a-z\341\351\355\363\372\340\350\354\362\371\343\365\347\374\342\352\364]"
518 ("american" ; Yankee English 517 "[']" nil nil nil iso-8859-1)
519 "[A-Za-z]" "[^A-Za-z]" "[']" nil ("-B") nil iso-8859-1) 518 ("british" ; British version
520 ("brasileiro" ; Brazilian mode 519 "[A-Za-z]" "[^A-Za-z]" "[']" nil ("-B") nil iso-8859-1)
521 "[A-Z\301\311\315\323\332\300\310\314\322\331\303\325\307\334\302\312\324a-z\341\351\355\363\372\340\350\354\362\371\343\365\347\374\342\352\364]" 520 ("castellano" ; Spanish mode
522 "[^A-Z\301\311\315\323\332\300\310\314\322\331\303\325\307\334\302\312\324a-z\341\351\355\363\372\340\350\354\362\371\343\365\347\374\342\352\364]" 521 "[A-Z\301\311\315\321\323\332\334a-z\341\351\355\361\363\372\374]"
523 "[']" nil nil nil iso-8859-1) 522 "[^A-Z\301\311\315\321\323\332\334a-z\341\351\355\361\363\372\374]"
524 ("british" ; British version 523 "[-]" nil ("-B") "~tex" iso-8859-1)
525 "[A-Za-z]" "[^A-Za-z]" "[']" nil ("-B") nil iso-8859-1) 524 ("castellano8" ; 8 bit Spanish mode
526 ("castellano" ; Spanish mode 525 "[A-Z\301\311\315\321\323\332\334a-z\341\351\355\361\363\372\374]"
527 "[A-Z\301\311\315\321\323\332\334a-z\341\351\355\361\363\372\374]" 526 "[^A-Z\301\311\315\321\323\332\334a-z\341\351\355\361\363\372\374]"
528 "[^A-Z\301\311\315\321\323\332\334a-z\341\351\355\361\363\372\374]" 527 "[-]" nil ("-B" "-d" "castellano") "~latin1" iso-8859-1)
529 "[-]" nil ("-B") "~tex" iso-8859-1) 528 ("czech"
530 ("castellano8" ; 8 bit Spanish mode 529 "[A-Za-z\301\311\314\315\323\332\331\335\256\251\310\330\317\253\322\341\351\354\355\363\372\371\375\276\271\350\370\357\273\362]"
531 "[A-Z\301\311\315\321\323\332\334a-z\341\351\355\361\363\372\374]" 530 "[^A-Za-z\301\311\314\315\323\332\331\335\256\251\310\330\317\253\322\341\351\354\355\363\372\371\375\276\271\350\370\357\273\362]"
532 "[^A-Z\301\311\315\321\323\332\334a-z\341\351\355\361\363\372\374]" 531 "" nil ("-B") nil iso-8859-2)
533 "[-]" nil ("-B" "-d" "castellano") "~latin1" iso-8859-1))) 532 ("dansk" ; Dansk.aff
534 533 "[A-Z\306\330\305a-z\346\370\345]" "[^A-Z\306\330\305a-z\346\370\345]"
535 534 "[']" nil ("-C") nil iso-8859-1)
536;;; Second part of dictionary, shortened for loaddefs.el 535 ("deutsch" ; Deutsch.aff
537;;;###autoload 536 "[a-zA-Z\"]" "[^a-zA-Z\"]" "[']" t ("-C") "~tex" iso-8859-1)
538(setq 537 ("deutsch8"
539 ispell-dictionary-alist-2 538 "[a-zA-Z\304\326\334\344\366\337\374]"
540 '(("czech" 539 "[^a-zA-Z\304\326\334\344\366\337\374]"
541 "[A-Za-z\301\311\314\315\323\332\331\335\256\251\310\330\317\253\322\341\351\354\355\363\372\371\375\276\271\350\370\357\273\362]" 540 "[']" t ("-C" "-d" "deutsch") "~latin1" iso-8859-1)
542 "[^A-Za-z\301\311\314\315\323\332\331\335\256\251\310\330\317\253\322\341\351\354\355\363\372\371\375\276\271\350\370\357\273\362]" 541 ("english" ; make English explicitly selectable
543 "" nil ("-B") nil iso-8859-2) 542 "[A-Za-z]" "[^A-Za-z]" "[']" nil ("-B") nil iso-8859-1)
544 ("dansk" ; Dansk.aff 543 ("esperanto"
545 "[A-Z\306\330\305a-z\346\370\345]" "[^A-Z\306\330\305a-z\346\370\345]" 544 "[A-Za-z\246\254\266\274\306\330\335\336\346\370\375\376]"
546 "[']" nil ("-C") nil iso-8859-1) 545 "[^A-Za-z\246\254\266\274\306\330\335\336\346\370\375\376]"
547 ("deutsch" ; Deutsch.aff 546 "[-']" t ("-C") "~latin3" iso-8859-3)
548 "[a-zA-Z\"]" "[^a-zA-Z\"]" "[']" t ("-C") "~tex" iso-8859-1) 547 ("esperanto-tex"
549 ("deutsch8" 548 "[A-Za-z^\\]" "[^A-Za-z^\\]"
550 "[a-zA-Z\304\326\334\344\366\337\374]" 549 "[-'`\"]" t ("-C" "-d" "esperanto") "~tex" iso-8859-3)
551 "[^a-zA-Z\304\326\334\344\366\337\374]" 550 ("francais7"
552 "[']" t ("-C" "-d" "deutsch") "~latin1" iso-8859-1) 551 "[A-Za-z]" "[^A-Za-z]" "[`'^-]" t nil nil iso-8859-1)
553 ("english" ; make English explicitly selectable 552 ("francais" ; Francais.aff
554 "[A-Za-z]" "[^A-Za-z]" "[']" nil ("-B") nil iso-8859-1))) 553 "[A-Za-z\300\302\306\307\310\311\312\313\316\317\324\331\333\334\340\342\347\350\351\352\353\356\357\364\371\373\374]"
555 554 "[^A-Za-z\300\302\306\307\310\311\312\313\316\317\324\331\333\334\340\342\347\350\351\352\353\356\357\364\371\373\374]"
556 555 "[-'.@]" t nil "~list" iso-8859-1)
557;;; Third part of dictionary, shortened for loaddefs.el 556 ("francais-tex" ; Francais.aff
558;;;###autoload 557 "[A-Za-z\300\302\306\307\310\311\312\313\316\317\324\331\333\334\340\342\347\350\351\352\353\356\357\364\371\373\374\\]"
559(setq 558 "[^A-Za-z\300\302\306\307\310\311\312\313\316\317\324\331\333\334\340\342\347\350\351\352\353\356\357\364\371\373\374\\]"
560 ispell-dictionary-alist-3 559 "[-'^`\".@]" t nil "~tex" iso-8859-1)
561 '(("esperanto" 560 ("german" ; german.aff
562 "[A-Za-z\246\254\266\274\306\330\335\336\346\370\375\376]" 561 "[a-zA-Z\"]" "[^a-zA-Z\"]" "[']" t ("-C") "~tex" iso-8859-1)
563 "[^A-Za-z\246\254\266\274\306\330\335\336\346\370\375\376]" 562 ("german8" ; german.aff
564 "[-']" t ("-C") "~latin3" iso-8859-3) 563 "[a-zA-Z\304\326\334\344\366\337\374]"
565 ("esperanto-tex" 564 "[^a-zA-Z\304\326\334\344\366\337\374]"
566 "[A-Za-z^\\]" "[^A-Za-z^\\]" 565 "[']" t ("-C" "-d" "german") "~latin1" iso-8859-1)
567 "[-'`\"]" t ("-C" "-d" "esperanto") "~tex" iso-8859-3) 566 ("italiano" ; Italian.aff
568 ("francais7" 567 "[A-Z\300\301\310\311\314\315\322\323\331\332a-z\340\341\350\351\354\355\363\371\372]"
569 "[A-Za-z]" "[^A-Za-z]" "[`'^-]" t nil nil iso-8859-1) 568 "[^A-Z\300\301\310\311\314\315\322\323\331\332a-z\340\341\350\351\354\355\363\371\372]"
570 ("francais" ; Francais.aff 569 "[-.]" nil ("-B" "-d" "italian") "~tex" iso-8859-1)
571 "[A-Za-z\300\302\306\307\310\311\312\313\316\317\324\331\333\334\340\342\347\350\351\352\353\356\357\364\371\373\374]" 570 ("nederlands" ; Nederlands.aff
572 "[^A-Za-z\300\302\306\307\310\311\312\313\316\317\324\331\333\334\340\342\347\350\351\352\353\356\357\364\371\373\374]" 571 "[A-Za-z\300\301\302\303\304\305\307\310\311\312\313\314\315\316\317\322\323\324\325\326\331\332\333\334\340\341\342\343\344\345\347\350\351\352\353\354\355\356\357\361\362\363\364\365\366\371\372\373\374]"
573 "[-'.@]" t nil "~list" iso-8859-1) 572 "[^A-Za-z\300\301\302\303\304\305\307\310\311\312\313\314\315\316\317\322\323\324\325\326\331\332\333\334\340\341\342\343\344\345\347\350\351\352\353\354\355\356\357\361\362\363\364\365\366\371\372\373\374]"
574 ("francais-tex" ; Francais.aff 573 "[']" t ("-C") nil iso-8859-1)
575 "[A-Za-z\300\302\306\307\310\311\312\313\316\317\324\331\333\334\340\342\347\350\351\352\353\356\357\364\371\373\374\\]" 574 ("nederlands8" ; Dutch8.aff
576 "[^A-Za-z\300\302\306\307\310\311\312\313\316\317\324\331\333\334\340\342\347\350\351\352\353\356\357\364\371\373\374\\]" 575 "[A-Za-z\300\301\302\303\304\305\307\310\311\312\313\314\315\316\317\322\323\324\325\326\331\332\333\334\340\341\342\343\344\345\347\350\351\352\353\354\355\356\357\361\362\363\364\365\366\371\372\373\374]"
577 "[-'^`\".@]" t nil "~tex" iso-8859-1))) 576 "[^A-Za-z\300\301\302\303\304\305\307\310\311\312\313\314\315\316\317\322\323\324\325\326\331\332\333\334\340\341\342\343\344\345\347\350\351\352\353\354\355\356\357\361\362\363\364\365\366\371\372\373\374]"
578 577 "[']" t ("-C") nil iso-8859-1)
579 578 ("norsk" ; 8 bit Norwegian mode
580;;; Fourth part of dictionary, shortened for loaddefs.el 579 "[A-Za-z\305\306\307\310\311\322\324\330\345\346\347\350\351\362\364\370]"
581;;;###autoload 580 "[^A-Za-z\305\306\307\310\311\322\324\330\345\346\347\350\351\362\364\370]"
582(setq 581 "[\"]" nil nil "~list" iso-8859-1)
583 ispell-dictionary-alist-4 582 ("norsk7-tex" ; 7 bit Norwegian TeX mode
584 '(("german" ; german.aff 583 "[A-Za-z{}\\'^`]" "[^A-Za-z{}\\'^`]"
585 "[a-zA-Z\"]" "[^a-zA-Z\"]" "[']" t ("-C") "~tex" iso-8859-1) 584 "[\"]" nil ("-d" "norsk") "~plaintex" iso-8859-1)
586 ("german8" ; german.aff 585 ("polish" ; Polish mode
587 "[a-zA-Z\304\326\334\344\366\337\374]" 586 "[A-Za-z\241\243\246\254\257\261\263\266\274\277\306\312\321\323\346\352\361\363]"
588 "[^a-zA-Z\304\326\334\344\366\337\374]" 587 "[^A-Za-z\241\243\246\254\257\261\263\266\274\277\306\312\321\323\346\352\361\363]"
589 "[']" t ("-C" "-d" "german") "~latin1" iso-8859-1) 588 "[.]" nil nil nil iso-8859-2)
590 ("italiano" ; Italian.aff 589 ("portugues" ; Portuguese mode
591 "[A-Z\300\301\310\311\314\315\322\323\331\332a-z\340\341\350\351\354\355\363\371\372]" 590 "[a-zA-Z\301\302\311\323\340\341\342\351\352\355\363\343\372]"
592 "[^A-Z\300\301\310\311\314\315\322\323\331\332a-z\340\341\350\351\354\355\363\371\372]" 591 "[^a-zA-Z\301\302\311\323\340\341\342\351\352\355\363\343\372]"
593 "[-.]" nil ("-B" "-d" "italian") "~tex" iso-8859-1) 592 "[']" t ("-C") "~latin1" iso-8859-1)
594 ("nederlands" ; Nederlands.aff 593 ("russian" ; Russian.aff (KOI8-R charset)
595 "[A-Za-z\300\301\302\303\304\305\307\310\311\312\313\314\315\316\317\322\323\324\325\326\331\332\333\334\340\341\342\343\344\345\347\350\351\352\353\354\355\356\357\361\362\363\364\365\366\371\372\373\374]" 594 "[\341\342\367\347\344\345\263\366\372\351\352\353\354\355\356\357\360\362\363\364\365\346\350\343\376\373\375\370\371\377\374\340\361\301\302\327\307\304\305\243\326\332\311\312\313\314\315\316\317\320\322\323\324\325\306\310\303\336\333\335\330\331\337\334\300\321]"
596 "[^A-Za-z\300\301\302\303\304\305\307\310\311\312\313\314\315\316\317\322\323\324\325\326\331\332\333\334\340\341\342\343\344\345\347\350\351\352\353\354\355\356\357\361\362\363\364\365\366\371\372\373\374]" 595 "[^\341\342\367\347\344\345\263\366\372\351\352\353\354\355\356\357\360\362\363\364\365\346\350\343\376\373\375\370\371\377\374\340\361\301\302\327\307\304\305\243\326\332\311\312\313\314\315\316\317\320\322\323\324\325\306\310\303\336\333\335\330\331\337\334\300\321]"
597 "[']" t ("-C") nil iso-8859-1) 596 "" nil nil nil koi8-r)
598 ("nederlands8" ; Dutch8.aff 597 ("russianw" ; russianw.aff (CP1251 charset)
599 "[A-Za-z\300\301\302\303\304\305\307\310\311\312\313\314\315\316\317\322\323\324\325\326\331\332\333\334\340\341\342\343\344\345\347\350\351\352\353\354\355\356\357\361\362\363\364\365\366\371\372\373\374]" 598 "[\300\301\302\303\304\305\250\306\307\310\311\312\313\314\315\316\317\320\321\322\323\324\325\326\327\330\331\334\333\332\335\336\337\340\341\342\343\344\345\270\346\347\350\351\352\353\354\355\356\357\360\361\362\363\364\365\366\367\370\371\374\373\372\375\376\377]"
600 "[^A-Za-z\300\301\302\303\304\305\307\310\311\312\313\314\315\316\317\322\323\324\325\326\331\332\333\334\340\341\342\343\344\345\347\350\351\352\353\354\355\356\357\361\362\363\364\365\366\371\372\373\374]" 599 "[^\300\301\302\303\304\305\250\306\307\310\311\312\313\314\315\316\317\320\321\322\323\324\325\326\327\330\331\334\333\332\335\336\337\340\341\342\343\344\345\270\346\347\350\351\352\353\354\355\356\357\360\361\362\363\364\365\366\367\370\371\374\373\372\375\376\377]"
601 "[']" t ("-C") nil iso-8859-1))) 600 "" nil nil nil windows-1251)
602 601 ("slovak" ; Slovakian
603 602 "[A-Za-z\301\304\311\315\323\332\324\300\305\245\335\256\251\310\317\253\322\341\344\351\355\363\372\364\340\345\265\375\276\271\350\357\273\362]"
604;;; Fifth part of dictionary, shortened for loaddefs.el 603 "[^A-Za-z\301\304\311\315\323\332\324\300\305\245\335\256\251\310\317\253\322\341\344\351\355\363\372\364\340\345\265\375\276\271\350\357\273\362]"
605;;;###autoload 604 "" nil ("-B") nil iso-8859-2)
606(setq 605 ("slovenian" ; Slovenian
607 ispell-dictionary-alist-5 606 "[A-Za-z\301\304\311\315\323\332\324\300\305\245\335\256\251\310\317\253\322\341\344\351\355\363\372\364\340\345\265\375\276\271\350\357\273\362]"
608 '(("norsk" ; 8 bit Norwegian mode 607 "[^A-Za-z\301\304\311\315\323\332\324\300\305\245\335\256\251\310\317\253\322\341\344\351\355\363\372\364\340\345\265\375\276\271\350\357\273\362]"
609 "[A-Za-z\305\306\307\310\311\322\324\330\345\346\347\350\351\362\364\370]" 608 "" nil ("-B" "-d" "slovenian") nil iso-8859-2)
610 "[^A-Za-z\305\306\307\310\311\322\324\330\345\346\347\350\351\362\364\370]" 609 ("svenska" ; Swedish mode
611 "[\"]" nil nil "~list" iso-8859-1) 610 "[A-Za-z\345\344\366\351\340\374\350\346\370\347\305\304\326\311\300\334\310\306\330\307]"
612 ("norsk7-tex" ; 7 bit Norwegian TeX mode 611 "[^A-Za-z\345\344\366\351\340\374\350\346\370\347\305\304\326\311\300\334\310\306\330\307]"
613 "[A-Za-z{}\\'^`]" "[^A-Za-z{}\\'^`]" 612 "[']" nil ("-C") "~list" iso-8859-1))
614 "[\"]" nil ("-d" "norsk") "~plaintex" iso-8859-1) 613 "Base value for `ispell-dictionary-alist'.")
615 ("polish" ; Polish mode 614
616 "[A-Za-z\241\243\246\254\257\261\263\266\274\277\306\312\321\323\346\352\361\363]" 615(defvar ispell-dictionary-alist nil
617 "[^A-Za-z\241\243\246\254\257\261\263\266\274\277\306\312\321\323\346\352\361\363]"
618 "[.]" nil nil nil iso-8859-2)
619 ("portugues" ; Portuguese mode
620 "[a-zA-Z\301\302\311\323\340\341\342\351\352\355\363\343\372]"
621 "[^a-zA-Z\301\302\311\323\340\341\342\351\352\355\363\343\372]"
622 "[']" t ("-C") "~latin1" iso-8859-1)))
623
624
625;;; Sixth part of dictionary, shortened for loaddefs.el
626;;;###autoload
627(setq
628 ispell-dictionary-alist-6
629 ;; include Russian iso coding system too?
630 ;; "[']" t ("-d" "russian") "~latin1" iso-8859-1
631 '(("russian" ; Russian.aff (KOI8-R charset)
632 "[\341\342\367\347\344\345\263\366\372\351\352\353\354\355\356\357\360\362\363\364\365\346\350\343\376\373\375\370\371\377\374\340\361\301\302\327\307\304\305\243\326\332\311\312\313\314\315\316\317\320\322\323\324\325\306\310\303\336\333\335\330\331\337\334\300\321]"
633 "[^\341\342\367\347\344\345\263\366\372\351\352\353\354\355\356\357\360\362\363\364\365\346\350\343\376\373\375\370\371\377\374\340\361\301\302\327\307\304\305\243\326\332\311\312\313\314\315\316\317\320\322\323\324\325\306\310\303\336\333\335\330\331\337\334\300\321]"
634 "" nil nil nil koi8-r)
635 ("russianw" ; russianw.aff (CP1251 charset)
636 "[\300\301\302\303\304\305\250\306\307\310\311\312\313\314\315\316\317\320\321\322\323\324\325\326\327\330\331\334\333\332\335\336\337\340\341\342\343\344\345\270\346\347\350\351\352\353\354\355\356\357\360\361\362\363\364\365\366\367\370\371\374\373\372\375\376\377]"
637 "[^\300\301\302\303\304\305\250\306\307\310\311\312\313\314\315\316\317\320\321\322\323\324\325\326\327\330\331\334\333\332\335\336\337\340\341\342\343\344\345\270\346\347\350\351\352\353\354\355\356\357\360\361\362\363\364\365\366\367\370\371\374\373\372\375\376\377]"
638 "" nil nil nil windows-1251)
639 ("slovak" ; Slovakian
640 "[A-Za-z\301\304\311\315\323\332\324\300\305\245\335\256\251\310\317\253\322\341\344\351\355\363\372\364\340\345\265\375\276\271\350\357\273\362]"
641 "[^A-Za-z\301\304\311\315\323\332\324\300\305\245\335\256\251\310\317\253\322\341\344\351\355\363\372\364\340\345\265\375\276\271\350\357\273\362]"
642 "" nil ("-B") nil iso-8859-2)
643 ("slovenian" ; Slovenian
644 "[A-Za-z\301\304\311\315\323\332\324\300\305\245\335\256\251\310\317\253\322\341\344\351\355\363\372\364\340\345\265\375\276\271\350\357\273\362]"
645 "[^A-Za-z\301\304\311\315\323\332\324\300\305\245\335\256\251\310\317\253\322\341\344\351\355\363\372\364\340\345\265\375\276\271\350\357\273\362]"
646 "" nil ("-B" "-d" "slovenian") nil iso-8859-2)
647 ("svenska" ; Swedish mode
648 "[A-Za-z\345\344\366\351\340\374\350\346\370\347\305\304\326\311\300\334\310\306\330\307]"
649 "[^A-Za-z\345\344\366\351\340\374\350\346\370\347\305\304\326\311\300\334\310\306\330\307]"
650 "[']" nil ("-C") "~list" iso-8859-1)))
651
652
653;;;###autoload
654(defvar ispell-dictionary-alist
655 (append ispell-dictionary-alist-1 ispell-dictionary-alist-2
656 ispell-dictionary-alist-3 ispell-dictionary-alist-4
657 ispell-dictionary-alist-5 ispell-dictionary-alist-6)
658 "An alist of dictionaries and their associated parameters. 616 "An alist of dictionaries and their associated parameters.
659 617
660Each element of this list is also a list: 618Each element of this list is also a list:
@@ -851,8 +809,8 @@ Otherwise returns the library directory name, if that is defined."
851If nil when package is loaded, a standard menu will be set, 809If nil when package is loaded, a standard menu will be set,
852and added as a submenu of the \"Edit\" menu.") 810and added as a submenu of the \"Edit\" menu.")
853 811
854;;; Break out XEmacs menu and split into several calls to avoid having 812;; Break out XEmacs menu and split into several calls to avoid having
855;;; long lines in loaddefs.el. Detect need off following constant. 813;; long lines in loaddefs.el. Detect need off following constant.
856 814
857;;; Set up dictionary 815;;; Set up dictionary
858;;;###autoload 816;;;###autoload
@@ -911,7 +869,7 @@ Internal use.")
911 (let* ((english-dict (assoc "en" ispell-dictionary-alist)) 869 (let* ((english-dict (assoc "en" ispell-dictionary-alist))
912 (default-dict 870 (default-dict
913 (cons nil (or (cdr english-dict) 871 (cons nil (or (cdr english-dict)
914 (cdr (car ispell-dictionary-alist-1)))))) 872 (cdr (car ispell-dictionary-base-alist))))))
915 (push default-dict ispell-aspell-dictionary-alist)))) 873 (push default-dict ispell-aspell-dictionary-alist))))
916 874
917(defvar ispell-aspell-data-dir nil 875(defvar ispell-aspell-data-dir nil
@@ -1000,14 +958,14 @@ Return the new dictionary alist."
1000 "Last value of ispell-program name. Internal use.") 958 "Last value of ispell-program name. Internal use.")
1001 959
1002(defvar ispell-initialize-spellchecker-hook nil 960(defvar ispell-initialize-spellchecker-hook nil
1003 "Actions to be taken on spellchecker initialization. 961 "Normal hook run on spellchecker initialization.
1004This hook is run when an spellchecker is used for the first 962This hook is run when a spellchecker is used for the first
1005time, before ``ispell-dictionary-alist'' is set. Is intended for 963time, before `ispell-dictionary-alist' is set. It is intended for
1006sysadmins to override entries in the ispell.el base dictionary-alist 964sysadmins to override entries in `ispell-dictionary-base-alist'
1007by putting those overrides in a ``ispell-base-dicts-override-alist'' 965by putting those overrides in `ispell-base-dicts-override-alist', which is
1008alist with same format as ``ispell-dictionary-alist''. This alist 966a dynamically scoped var with same format as `ispell-dictionary-alist'.
1009will not override the auto-detected values if a recent aspell is 967This alist will not override the auto-detected values (e.g. if a recent
1010used along with emacs.") 968aspell is used along with Emacs).")
1011 969
1012(defun ispell-set-spellchecker-params () 970(defun ispell-set-spellchecker-params ()
1013 "Initialize some spellchecker parameters when changed or first used." 971 "Initialize some spellchecker parameters when changed or first used."
@@ -1021,7 +979,7 @@ used along with emacs.")
1021 (error nil)) 979 (error nil))
1022 ispell-really-aspell 980 ispell-really-aspell
1023 ispell-aspell-supports-utf8 981 ispell-aspell-supports-utf8
1024 ;; xemacs does not like [:alpha:] regexps 982 ;; XEmacs does not like [:alpha:] regexps.
1025 (string-match "^[[:alpha:]]+$" "abcde")) 983 (string-match "^[[:alpha:]]+$" "abcde"))
1026 (unless ispell-aspell-dictionary-alist 984 (unless ispell-aspell-dictionary-alist
1027 (ispell-find-aspell-dictionaries))) 985 (ispell-find-aspell-dictionaries)))
@@ -1030,11 +988,7 @@ used along with emacs.")
1030 ;; corresponding to the given spellchecker. If a recent aspell, use 988 ;; corresponding to the given spellchecker. If a recent aspell, use
1031 ;; the list of really installed dictionaries and add to it elements 989 ;; the list of really installed dictionaries and add to it elements
1032 ;; of the original list that are not present there. Allow distro info. 990 ;; of the original list that are not present there. Allow distro info.
1033 (let ((base-dicts-alist 991 (let ((found-dicts-alist
1034 (append ispell-dictionary-alist-1 ispell-dictionary-alist-2
1035 ispell-dictionary-alist-3 ispell-dictionary-alist-4
1036 ispell-dictionary-alist-5 ispell-dictionary-alist-6))
1037 (found-dicts-alist
1038 (if (and ispell-really-aspell 992 (if (and ispell-really-aspell
1039 ispell-aspell-supports-utf8) 993 ispell-aspell-supports-utf8)
1040 ispell-aspell-dictionary-alist 994 ispell-aspell-dictionary-alist
@@ -1047,7 +1001,7 @@ used along with emacs.")
1047 ;; Add dicts to ``ispell-dictionary-alist'' unless already present. 1001 ;; Add dicts to ``ispell-dictionary-alist'' unless already present.
1048 (dolist (dict (append found-dicts-alist 1002 (dolist (dict (append found-dicts-alist
1049 ispell-base-dicts-override-alist 1003 ispell-base-dicts-override-alist
1050 base-dicts-alist)) 1004 ispell-dictionary-base-alist))
1051 (unless (assoc (car dict) all-dicts-alist) 1005 (unless (assoc (car dict) all-dicts-alist)
1052 (add-to-list 'all-dicts-alist dict))) 1006 (add-to-list 'all-dicts-alist dict)))
1053 (setq ispell-dictionary-alist all-dicts-alist)))) 1007 (setq ispell-dictionary-alist all-dicts-alist))))
@@ -1057,7 +1011,7 @@ used along with emacs.")
1057 "Returns a list of valid dictionaries. 1011 "Returns a list of valid dictionaries.
1058The variable `ispell-library-directory' defines the library location." 1012The variable `ispell-library-directory' defines the library location."
1059 ;; Initialize variables and dictionaries alists for desired spellchecker. 1013 ;; Initialize variables and dictionaries alists for desired spellchecker.
1060 ;; Make sure ispell.el is loaded to avoid some autoload loops in xemacs 1014 ;; Make sure ispell.el is loaded to avoid some autoload loops in XEmacs
1061 ;; (and may be others) 1015 ;; (and may be others)
1062 (if (featurep 'ispell) 1016 (if (featurep 'ispell)
1063 (ispell-set-spellchecker-params)) 1017 (ispell-set-spellchecker-params))
@@ -1235,6 +1189,8 @@ This is passed to the ispell process using the `-p' switch.")
1235(defun ispell-decode-string (str) 1189(defun ispell-decode-string (str)
1236 "Decodes multibyte character strings. 1190 "Decodes multibyte character strings.
1237Protects against bogus binding of `enable-multibyte-characters' in XEmacs." 1191Protects against bogus binding of `enable-multibyte-characters' in XEmacs."
1192 ;; FIXME: enable-multibyte-characters is read-only, so bogus bindings are
1193 ;; really nasty (they signal an error in Emacs): Who does that? --Stef
1238 (if (and (or (featurep 'xemacs) 1194 (if (and (or (featurep 'xemacs)
1239 (and (boundp 'enable-multibyte-characters) 1195 (and (boundp 'enable-multibyte-characters)
1240 enable-multibyte-characters)) 1196 enable-multibyte-characters))
@@ -3532,7 +3488,7 @@ You can bind this to the key C-c i in GNUS or mail by adding to
3532 (goto-char (point-min)) 3488 (goto-char (point-min))
3533 (let* (boundary mimep 3489 (let* (boundary mimep
3534 (ispell-skip-region-alist-save ispell-skip-region-alist) 3490 (ispell-skip-region-alist-save ispell-skip-region-alist)
3535 ;; Nil when message came from outside (eg calling emacs as editor) 3491 ;; Nil when message came from outside (eg calling Emacs as editor)
3536 ;; Non-nil marker of end of headers. 3492 ;; Non-nil marker of end of headers.
3537 (internal-messagep 3493 (internal-messagep
3538 (re-search-forward 3494 (re-search-forward
@@ -3784,7 +3740,7 @@ Both should not be used to define a buffer-local dictionary."
3784 (while (re-search-forward " *\\([^ ]+\\)" end t) 3740 (while (re-search-forward " *\\([^ ]+\\)" end t)
3785 (setq string (match-string-no-properties 1)) 3741 (setq string (match-string-no-properties 1))
3786 ;; This can fail when string contains a word with invalid chars. 3742 ;; This can fail when string contains a word with invalid chars.
3787 ;; Error handling needs to be added between ispell and emacs. 3743 ;; Error handling needs to be added between ispell and Emacs.
3788 (if (and (< 1 (length string)) 3744 (if (and (< 1 (length string))
3789 (equal 0 (string-match ispell-casechars string))) 3745 (equal 0 (string-match ispell-casechars string)))
3790 (ispell-send-string (concat "@" string "\n")))))))) 3746 (ispell-send-string (concat "@" string "\n"))))))))
@@ -3830,29 +3786,29 @@ Both should not be used to define a buffer-local dictionary."
3830 3786
3831;;; LOCAL VARIABLES AND BUFFER-LOCAL VALUE EXAMPLES. 3787;;; LOCAL VARIABLES AND BUFFER-LOCAL VALUE EXAMPLES.
3832 3788
3833;;; Local Variable options: 3789;; Local Variable options:
3834;;; mode: name(-mode) 3790;; mode: name(-mode)
3835;;; eval: expression 3791;; eval: expression
3836;;; local-variable: value 3792;; local-variable: value
3837 3793
3838;;; The following sets the buffer local dictionary to `american' English 3794;; The following sets the buffer local dictionary to `american' English
3839;;; and spell checks only comments. 3795;; and spell checks only comments.
3840 3796
3841;;; Local Variables: 3797;; Local Variables:
3842;;; mode: emacs-lisp 3798;; mode: emacs-lisp
3843;;; comment-column: 40 3799;; comment-column: 40
3844;;; ispell-check-comments: exclusive 3800;; ispell-check-comments: exclusive
3845;;; ispell-local-dictionary: "american" 3801;; ispell-local-dictionary: "american"
3846;;; End: 3802;; End:
3847 3803
3848 3804
3849;;; MORE EXAMPLES OF ISPELL BUFFER-LOCAL VALUES 3805;;; MORE EXAMPLES OF ISPELL BUFFER-LOCAL VALUES
3850 3806
3851;;; The following places this file in nroff parsing and extended char modes. 3807;; The following places this file in nroff parsing and extended char modes.
3852;;; Local IspellParsing: nroff-mode ~nroff 3808;; Local IspellParsing: nroff-mode ~nroff
3853;;; Change IspellPersDict to IspellPersDict: to enable the following line. 3809;; Change IspellPersDict to IspellPersDict: to enable the following line.
3854;;; Local IspellPersDict ~/.ispell_lisp 3810;; Local IspellPersDict ~/.ispell_lisp
3855;;; The following were automatically generated by ispell using the 'A' command: 3811;; The following were automatically generated by ispell using the 'A' command:
3856; LocalWords: settable alist inews mh frag pdict Wildcards iconify arg tex kss 3812; LocalWords: settable alist inews mh frag pdict Wildcards iconify arg tex kss
3857; LocalWords: alists minibuffer bufferp autoload loaddefs aff Dansk KOI SPC op 3813; LocalWords: alists minibuffer bufferp autoload loaddefs aff Dansk KOI SPC op
3858; LocalWords: Francais Nederlands charset autoloaded popup nonmenu regexp num 3814; LocalWords: Francais Nederlands charset autoloaded popup nonmenu regexp num