From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Joseph Turner Newsgroups: gmane.emacs.devel Subject: [PATCH] Make ispell localwords safe local variable Date: Mon, 14 Aug 2023 22:40:24 -0700 Message-ID: <87zg2s97x0.fsf@breatheoutbreathe.in> 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="34180"; mail-complaints-to="usenet@ciao.gmane.io" To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Tue Aug 15 12:53:43 2023 Return-path: Envelope-to: ged-emacs-devel@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 1qVrgE-0008b6-Uj for ged-emacs-devel@m.gmane-mx.org; Tue, 15 Aug 2023 12:53:43 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qVrfR-0006jN-9A; Tue, 15 Aug 2023 06:52:53 -0400 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 1qVmqr-00087G-8O for emacs-devel@gnu.org; Tue, 15 Aug 2023 01:44:21 -0400 Original-Received: from out-67.mta0.migadu.com ([91.218.175.67]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qVmqp-0000oz-7v for emacs-devel@gnu.org; Tue, 15 Aug 2023 01:44:20 -0400 X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=breatheoutbreathe.in; s=key1; t=1692078254; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type; bh=M0b47u/Xv+4McnIWjkq5X1fXY+BAqlPWd9RkfIr8bH0=; b=WaCMpZvFt0UL2tjN8iBG+I8MMJCZL71FlVnujAhkTcnLkZqlwQ6WKI4rHqI7Anq2aKSLNp r04Mq3TBB6Xy1jzIezyWE5bSKyTL3m9WroAqCcPmpDvtzAOWAWjO1WgLaPydwiC32du8tb umIk/ns9K0XV9MpTx4fER7fmVERrbxs= X-Migadu-Flow: FLOW_OUT Received-SPF: pass client-ip=91.218.175.67; envelope-from=joseph@breatheoutbreathe.in; helo=out-67.mta0.migadu.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Mailman-Approved-At: Tue, 15 Aug 2023 06:52:51 -0400 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:308753 Archived-At: --=-=-= Content-Type: text/plain Hello, In this PR , we made it possible for checkdoc/ispell to ignore localwords stored in a .dir-locals.el when run in batch mode. It seemed appropriate to upstream this fix. Joseph --=-=-= Content-Type: text/x-diff Content-Disposition: attachment; filename=0001-Make-ispell-localwords-safe-local-variable.patch >From 3af6882c316de7a551a0ce25cd7b6c35b93cd90b Mon Sep 17 00:00:00 2001 From: Joseph Turner Date: Mon, 14 Aug 2023 22:35:28 -0700 Subject: [PATCH] Make ispell localwords safe local variable * lisp/textmodes/ispell.el (ispell-buffer-session-localwords): Make safe local variable to so that checkdoc can ignore words in a project in batch mode. --- lisp/textmodes/ispell.el | 1 + 1 file changed, 1 insertion(+) diff --git a/lisp/textmodes/ispell.el b/lisp/textmodes/ispell.el index 97c4ce9f32d..c73f92aa0b3 100644 --- a/lisp/textmodes/ispell.el +++ b/lisp/textmodes/ispell.el @@ -1747,6 +1747,7 @@ Ispell is then restarted because the local words could conflict.") (defvar-local ispell-buffer-session-localwords nil "List of words accepted for session in this buffer.") +(put 'ispell-buffer-session-localwords 'safe-local-variable #'list-of-strings-p) (defvar ispell-parser 'use-mode-name "Indicates whether ispell should parse the current buffer as TeX Code. -- 2.41.0 --=-=-=--