]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix customization type of erc-spelling-dictionaries
authorBruno Boal <egomet@bboal.com>
Thu, 14 Nov 2024 23:58:43 +0000 (23:58 +0000)
committerEshel Yaron <me@eshelyaron.com>
Wed, 20 Nov 2024 16:14:23 +0000 (17:14 +0100)
* lisp/erc/erc-spelling.el (erc-spelling-dictionaries): Update :type
specification to reflect shape expected by `erc-spelling-init', and
improve description in doc string.  (Bug#74363)

Copyright-paperwork-exempt: yes
(cherry picked from commit 29098a291f535c8e2be114171308169f025de43f)

lisp/erc/erc-spelling.el

index b2f565d71bf7edefa58dba6075f2042fdb3e5158..5ff28fa14e87898874557e79f4307b5d1f629988 100644 (file)
 
 (defcustom erc-spelling-dictionaries nil
   "An alist mapping buffer names to dictionaries.
-The `car' of every cell is a buffer name, the `cadr' is the
-string name of an associated dictionary.
+
+Each element is a list of the form (KEY VALUE), where KEY is a buffer
+name and VALUE a locale or dictionary name known to `ispell', for
+example: ((\"Libera.Chat\" \"en_US\") (\"#esperanto\" \"esperanto\")).
+
 The dictionary is inherited from server buffers, so if you want a
 default dictionary for some server, you can use a server buffer
 name here."
   :type '(choice (const nil)
-                 (repeat (cons (string :tag "Buffer name")
-                               (string :tag "Dictionary"))))
-  :group 'erc-spelling)
+                 (repeat (list (string :tag "Buffer name")
+                               (string :tag "Dictionary")))))
 
 (defun erc-spelling-init (buffer)
   "Enable flyspell mode in an ERC buffer.