From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Bruno Boal Newsgroups: gmane.emacs.bugs Subject: bug#74363: [PATCH] Type correction and docstring change in `erc-spelling-dictionaries' Date: Fri, 15 Nov 2024 01:22:56 +0000 Message-ID: <87zfm1b89b.fsf@bboal.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="16229"; mail-complaints-to="usenet@ciao.gmane.io" To: 74363@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Nov 15 06:13:24 2024 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1tBoe3-00045W-ML for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 15 Nov 2024 06:13:23 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tBodl-00058L-Ps; Fri, 15 Nov 2024 00:13:05 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tBodj-000583-KU for bug-gnu-emacs@gnu.org; Fri, 15 Nov 2024 00:13:04 -0500 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tBodj-0007Xu-C3 for bug-gnu-emacs@gnu.org; Fri, 15 Nov 2024 00:13:03 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=MIME-Version:Date:From:To:Subject; bh=t/ZqvE4jfK8PNfXh0pWZhaSrf8FcLBGdZwC/toxXRAA=; b=NqjS0ln07U6pL7fQvUz0g7KvAzNCgUHDkO8vVUwbu4XowVjek6m+jKhK9JzjGbOt3Lx7w8SDkar9UoTfJBnkKtdtjxJK/WkEmUp6/29sktq9H42j/wpjIqc7SBMXo1mGX023iaVIszvKOa2fl1jTISOzhdIefJefY7grXfM6M2LodGH/RSocU+V3Js2pU2eQoqAVKhmovdVs9fS5mNs5ZRpGBKaCiKRGYY6fV0H4dg0L+mJ4nAv4v3OOzkt+3GyV3yoDFdlx8zqJSRKn5jgjltwtc1LpcTpUPBFibftZkQ1I5nNe6lz+6JsTaglmtlPgZxgpxrYbFgpXDffJVxFqPw==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1tBodi-0008Vz-8c for bug-gnu-emacs@gnu.org; Fri, 15 Nov 2024 00:13:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Bruno Boal Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 15 Nov 2024 05:13:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 74363 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.173164757232705 (code B ref -1); Fri, 15 Nov 2024 05:13:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 15 Nov 2024 05:12:52 +0000 Original-Received: from localhost ([127.0.0.1]:48111 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tBodX-0008VQ-DE for submit@debbugs.gnu.org; Fri, 15 Nov 2024 00:12:52 -0500 Original-Received: from lists.gnu.org ([209.51.188.17]:59804) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tBl3H-0006q4-0D for submit@debbugs.gnu.org; Thu, 14 Nov 2024 20:23:12 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tBl3G-0007TL-Ox for bug-gnu-emacs@gnu.org; Thu, 14 Nov 2024 20:23:10 -0500 Original-Received: from mout-p-103.mailbox.org ([80.241.56.161]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_CHACHA20_POLY1305:256) (Exim 4.90_1) (envelope-from ) id 1tBl3E-0001zz-Or for bug-gnu-emacs@gnu.org; Thu, 14 Nov 2024 20:23:10 -0500 Original-Received: from smtp202.mailbox.org (smtp202.mailbox.org [10.196.197.202]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mout-p-103.mailbox.org (Postfix) with ESMTPS id 4XqK5Z6Grwz9snK for ; Fri, 15 Nov 2024 02:22:58 +0100 (CET) Received-SPF: pass client-ip=80.241.56.161; envelope-from=egomet@bboal.com; helo=mout-p-103.mailbox.org X-Spam_score_int: -25 X-Spam_score: -2.6 X-Spam_bar: -- X-Spam_report: (-2.6 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, RCVD_IN_VALIDITY_SAFE_BLOCKED=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Mailman-Approved-At: Fri, 15 Nov 2024 00:12:49 -0500 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:295379 Archived-At: --=-=-= Content-Type: text/plain Tags: patch Salutations, This patch addresses a minor incorrection in the :type of the variable `erc-spelling-dictionaries' in the erc-spelling library. The :group keyword is also dropped, as it inherits from the defgroup declared earlier in the file. Additionally, a change to the docstring is proposed to better adhere to the examples and explanations of the manual. Note that the initial form of :type was preserved for clarity instead of the alternative option: (alist :value-type (group string)) Best regards --=-=-= Content-Type: text/patch Content-Disposition: attachment; filename=0001-Type-correction-and-docstring-change-in-erc-spelling.patch >From ae9fef20af624c885e3da3583326a2546057e7ce Mon Sep 17 00:00:00 2001 From: Bruno Boal Date: Thu, 14 Nov 2024 23:58:43 +0000 Subject: [PATCH] Type correction and docstring change in `erc-spelling-dictionaries' --- lisp/erc/erc-spelling.el | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/lisp/erc/erc-spelling.el b/lisp/erc/erc-spelling.el index b2f565d71bf..558cef2d2b2 100644 --- a/lisp/erc/erc-spelling.el +++ b/lisp/erc/erc-spelling.el @@ -52,15 +52,17 @@ (define-erc-module spelling nil (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 strings with the form (KEY VALUE) where KEY +is a buffer name and VALUE, the name of the dictionary to be +associated. + 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." +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. -- 2.47.0 --=-=-= Content-Type: text/plain -- Bruno Boal GPG Key: 7DCD 57C5 CF25 EE42 A561 3382 74AE 782E 08F0 E5A8 --=-=-=--