From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1.migadu.com ([2001:41d0:1008:1e59::1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms1.migadu.com with LMTPS id GFnaIqWMYGZpGwEAA41jLg (envelope-from ) for ; Wed, 05 Jun 2024 18:04:53 +0200 Received: from aspmx1.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1.migadu.com with LMTPS id SARnH6WMYGZepAAA62LTzQ (envelope-from ) for ; Wed, 05 Jun 2024 18:04:53 +0200 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=fail ("body hash did not verify") header.d=gmail.com header.s=20230601 header.b=mnFkv6UR; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" ARC-Seal: i=1; s=key1; d=yhetil.org; t=1717603493; a=rsa-sha256; cv=none; b=KI6xs731X2O/mtaelTX7e/3FKEUn3RK77ZBpm+95rvRbYTSBkfbfQtCnmuWVLx28Qv9joG NMCUlK+G8pCgTyC94WLkAt36kWf9e0Hhf5kqVd05m2w1BOb1IY1qeVPaklbzk6JhDNb3+1 C+IPULkWTANZayXvmIUdoCK2jJZXPQhmtvwH1K9EsNyuPUdrLzlJqpvU1EyUTyt1pKjumL jPNwroeTDUuaaeNTnyPkyj3FgK3eaIEw8RRM1Vg4nq1rtM8umzBpzFlzBvoh81TTjrZ8Ac AqVNnq2ksKfunm+Dgo6ddTpjCJYYCYOJDz7SwX7W7TjFJ68b5mpTgQgnTAV9BA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("body hash did not verify") header.d=gmail.com header.s=20230601 header.b=mnFkv6UR; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1717603493; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=NTNfkjiNRIwIlpWnt685P6E3gh6QUsa1pgowAN92mes=; b=nm7NyRLrYbV22o9ITworP+moWETGCwKGPk71aGvcTeQKsG4P5lm+f1YXcfgs2D4w504KYj tgUV9xrUmgZLJVCFdf0ZAyEokNzd/M/DWAbvFR8j+xYjqSO0FGccBopZTj8mN0ZCq0J7jD tqfN5KFG3GAldYgSWCGayOQskOEz7KcZ342xSQHn6OVF7ooMilsAZvBTY1L8amez5bKuS0 8mSNrNErmFuLNcxTfU1iS174+9IhS9t42OcB5JiYeNlJ429I3XDBF/yRySMxYGthG3vLFF 2UdPiB22bq56CmKgPPpJCpwCBGD/ueZSeCbWhrKudqrLT2wi+6rxnp4QqcJ+vw== Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 5012115C46 for ; Wed, 5 Jun 2024 18:04:53 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sEt7k-0004Xa-T3; Wed, 05 Jun 2024 12:04:28 -0400 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 1sEt7e-0004Vq-9T for emacs-orgmode@gnu.org; Wed, 05 Jun 2024 12:04:26 -0400 Received: from mail-qv1-xf42.google.com ([2607:f8b0:4864:20::f42]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1sEt7a-0008FP-NM for emacs-orgmode@gnu.org; Wed, 05 Jun 2024 12:04:21 -0400 Received: by mail-qv1-xf42.google.com with SMTP id 6a1803df08f44-6ae0c9ab798so5929876d6.1 for ; Wed, 05 Jun 2024 09:04:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1717603456; x=1718208256; darn=gnu.org; h=mime-version:user-agent:message-id:date:references:in-reply-to :subject:cc:to:from:from:to:cc:subject:date:message-id:reply-to; bh=cAC+thN2WjZ+NoBtWiXjDuFOyKZ8sXob5aUKm4+MZOU=; b=mnFkv6URLs69z+V6pytb+CWR6Rn46Owb7IY5IZd+uZnITPKibbqqsXrbPeHV9IPY6Q DP9rnt1UUuVbc7PQbQmfKN+zn+PC2LXf96cnNqLWl5VL+rsgnuOdwhp0cYN5p7RSxjlH PWnMUI5F/YBkWEzIlV7QAFdGTEwaLX88N1sJeMyxqyUfBlk416ORK6gKq4vrRiFg8wFS 8BbEDeP3Up9O16Sj+MBXto4qM52qdcMhu3bysEfarMYpv/Jt+cj9gRmzdjjpLKpzNPgp XUYhE64BxJdqGghcVcx1h7QT77l6LjW54kM/H1LvYnpuODyAMkFTwBNI+CBsDXNWgN9H e1Sw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1717603456; x=1718208256; h=mime-version:user-agent:message-id:date:references:in-reply-to :subject:cc:to:from:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=cAC+thN2WjZ+NoBtWiXjDuFOyKZ8sXob5aUKm4+MZOU=; b=guwQlE/2CuMgsjF8p9YfVSl38jB/ZG/VK5KHNsGAM4M4ASibL28EYdbMHqxDTjqZ7K wafe8xGLLL80kFVRmATWxde+UMp/JcEEEoJ66mz4j1Y+lgjKIXI6vVYGww+6IWwI8Frf GqkwNBUBYL9/QdO15/FIthFH8+L7q6xPymfpRqHLylCivPFzYHKgXLU1kGxhP8g6LE8C 1Pi3r3H11E/wRVpJCeOCbF4M0NhytN0CuuNfjAhq0hedH8aBIzQO+CGhoL2GNC1Cxs4r lpEMfHFX5oyCNia/3UNbSeFi95DK8+yWFsJJolM+t7EKwRDO/uAZuXnSO6F5TdguE5NB mXKQ== X-Forwarded-Encrypted: i=1; AJvYcCU9ls7LNT1SmvCLzlpCm2iDHxFKnVDb1IjmKV8/Btm6bAjRQ1rmPjo6DD2Lmik189bKbPPrp/5JVby3hnrfxDO6dQdgpQ0= X-Gm-Message-State: AOJu0YzDQvyBZWmvzEjrhIyuxbsWJUATLfbEyqD3k2PC1jAJ6qmUK+GR d+pwk16ZW4VfPwJ0f8YU67LsWaj7MeP4QPJKCJGaWLwac0rRMK/cgnNdc2PL X-Google-Smtp-Source: AGHT+IHtUAsZ0gp5oR2dSMBlqpyHNYf9TYvKjI7sfpuOkn8IROTd7Mfhe4W3qiWja2vRtIiIK+QTzA== X-Received: by 2002:a05:6214:20ee:b0:6ab:7ce8:820c with SMTP id 6a1803df08f44-6b030ab2d4amr29845816d6.5.1717603455307; Wed, 05 Jun 2024 09:04:15 -0700 (PDT) Received: from gnus (static-198-54-132-177.cust.tzulo.com. [198.54.132.177]) by smtp.gmail.com with ESMTPSA id 6a1803df08f44-6afbf7b2c75sm28230026d6.7.2024.06.05.09.04.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 05 Jun 2024 09:04:14 -0700 (PDT) From: Suhail Singh To: Ihor Radchenko Cc: Suhail Singh , emacs-orgmode@gnu.org Subject: Re: [BUG] org-lint: Spurious warning by 'suspicious-language-in-src-block [9.7.2 (release_N/A-N/A-88dd2c @ /home/user/.emacs.d/elpa/org-9.7.2/)] In-Reply-To: <87msnz5sp9.fsf@localhost> (Ihor Radchenko's message of "Wed, 05 Jun 2024 15:12:50 +0000") References: <87mso035kq.fsf@gmail.com> <87cyov7d2c.fsf@localhost> <874ja7ik7h.fsf@gmail.com> <87msnz5sp9.fsf@localhost> Date: Wed, 05 Jun 2024 12:04:13 -0400 Message-ID: <87wmn3gyv6.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Received-SPF: pass client-ip=2607:f8b0:4864:20::f42; envelope-from=suhailsingh247@gmail.com; helo=mail-qv1-xf42.google.com X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 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, FREEMAIL_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: emacs-orgmode-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN X-Migadu-Queue-Id: 5012115C46 X-Migadu-Scanner: mx12.migadu.com X-Migadu-Spam-Score: 2.66 X-Spam-Score: 2.66 X-TUID: A5FV/xXZj7YP --=-=-= Content-Type: text/plain Ihor Radchenko writes: > There is currently no such way. Although, it would be nice to have such > a feature. Patches welcome! See attached. --=-=-= Content-Type: text/x-patch Content-Disposition: attachment; filename=0001-org-lint-Add-function-to-remove-checker-s.patch Content-Description: Add org-lint-remove-checker >From 7d7a240d82202fcb3323453648dd2d8b78d22a6f Mon Sep 17 00:00:00 2001 From: Suhail Date: Wed, 5 Jun 2024 11:55:10 -0400 Subject: [PATCH] org-lint: Add function to remove checker(s) * lisp/org-lint.el (org-lint-remove-checker): Remove one or more checkers from org-lint--checkers. TINYCHANGE --- lisp/org-lint.el | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/lisp/org-lint.el b/lisp/org-lint.el index aed774ee2..ec28f5255 100644 --- a/lisp/org-lint.el +++ b/lisp/org-lint.el @@ -159,6 +159,16 @@ (defun org-lint-add-checker (seq-remove (lambda (c) (eq name (org-lint-checker-name c))) org-lint--checkers)))) +;;;###autoload +(defun org-lint-remove-checker (name &rest names) + "Remove checker(s) from linter. +NAME is the unique check identifier, as a non-nil symbol. NAMES +are additional check identifiers to be removed." + (let ((removelist (cons name names))) + (setq org-lint--checkers + (seq-remove (lambda (c) (memq (org-lint-checker-name c) removelist)) + org-lint--checkers)))) + ;;; Reports UI base-commit: bb633b67400de67b37317b6ae0741034c196c8d9 -- 2.45.1 --=-=-= Content-Type: text/plain > Thanks! It is indeed a good idea. > I added this check on bugfix. > https://git.savannah.gnu.org/cgit/emacs/org-mode.git/commit/?id=51aea4946 Thank you! -- Suhail --=-=-=--