From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms1.migadu.com with LMTPS id aF8zD3e1YGYOmgAAqHPOHw:P1 (envelope-from ) for ; Wed, 05 Jun 2024 20:59:03 +0200 Received: from aspmx1.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0.migadu.com with LMTPS id aF8zD3e1YGYOmgAAqHPOHw (envelope-from ) for ; Wed, 05 Jun 2024 20:59:03 +0200 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b="p/aldDZx"; 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"; dmarc=pass (policy=none) header.from=posteo.net ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1717613943; 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=c7oNm8H9DopfXyoS52yC5lhNGbqee587+sPd1I+Dtz0=; b=hHVQHFfuJyFd9RELNfmTuBx5HfdC22x8YCxPAsrVzoLcl+6Ka8Im27rrvL8Dw0oNBfFToK hz7oJ7pgzwJsHgV9uQ07UAgwYYtMbl7dhSgd1zk/jUvXgC9NjpLiE+3ozqhdWyPG189Gzj Fk21FgMiIvjLTCSkSXhRFvUgsQIvGX+IrflpaaJX7vbkEiqek5qB7wnb+YByVlIEtbPkEa VM8UW9iGc9hoH3t9Q/0/BKYCxygTPxUNfaaU8MhqbRpzJ7Oaro0pNhrhBM5OpZVJKnqZTT xmxotSw2rgy93tlxwDarsFgd4G4UBIN50Ilhaesq1o7ZtHL+lPEsK7fnoT07Iw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b="p/aldDZx"; 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"; dmarc=pass (policy=none) header.from=posteo.net ARC-Seal: i=1; s=key1; d=yhetil.org; t=1717613943; a=rsa-sha256; cv=none; b=JR/avwXUhY3Xwt7RdA7eohxRz6mPgE0mk7VFgtnnf+yS3+jRECpzHTiBlMCGmmH1ROuxKe JCBunbUEk68ghntRRXZnQjk0zqU3/zO4/G/SdW5GHOw4oS11eOpyXMg2nxNdiP87chY2yg AiuTYb1Qcd+y/JIQR5uGgbDQG4TeYm3LVAuP9jIStYP75BbOExNUzJlweqF8Rhz8HiLOT4 ppGL6Z+vfYjRGKcyxm/T5nEUcc2IHdmF3Nl94XqfRD25caGwyBQ/4qPspdTESqIrBF2zjC gWkL9emj+NKm4W5RxxaZqJJE7y4M6k58GF8pZlhxTkxvAFFEyOQEo6ngo2FdNQ== 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 148DF12F2E for ; Wed, 5 Jun 2024 20:59:03 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sEvq1-0006t5-9e; Wed, 05 Jun 2024 14:58:21 -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 1sEvpz-0006sL-DQ for emacs-orgmode@gnu.org; Wed, 05 Jun 2024 14:58:19 -0400 Received: from mout01.posteo.de ([185.67.36.65]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sEvpx-0003ib-3r for emacs-orgmode@gnu.org; Wed, 05 Jun 2024 14:58:19 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id 7F850240027 for ; Wed, 5 Jun 2024 20:58:14 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1717613894; bh=RsP3J9MBgwWbGqM4Dfc335wibH6keC3fkF9ZeZmN0fI=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:Content-Type: From; b=p/aldDZxTwN0nwxKb5adxk9OCVMzE8mSIKnLII4UxQC0KdC0jL6teWZSrJ0qLoXbq WH1H2boJP42mjAsYcHBoHoHA6wNQVi3MXAuwvf1WPtjwYMOUtEdH9zOTVSYTdD2+eM ispejg7c0JpCv6fmtLWrC2ZmgFtfDtDcLHuUCnwZ6Ar/fbI4C1aIaqmN5upacLkAG0 TVzvXZz5YYx3L+b6cantd2UAyNVGtY8EqhKs8uuP6UKqUo5op4e7urLj30bjn/sK2B itp5qNjUZmmNiUJiOtzK+e1/i65VV1CM2ktcti3ZbilfEuIfkkyiktcIek79HQvv5+ c2bK5L0Rvd4yQ== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4VvcDP6rYBz6tmv; Wed, 5 Jun 2024 20:58:13 +0200 (CEST) From: Ihor Radchenko To: Suhail Singh Cc: 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: <87wmn3gyv6.fsf@gmail.com> References: <87mso035kq.fsf@gmail.com> <87cyov7d2c.fsf@localhost> <874ja7ik7h.fsf@gmail.com> <87msnz5sp9.fsf@localhost> <87wmn3gyv6.fsf@gmail.com> Date: Wed, 05 Jun 2024 18:59:57 +0000 Message-ID: <874ja75i6q.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=185.67.36.65; envelope-from=yantar92@posteo.net; helo=mout01.posteo.de X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 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, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, 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-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Spam-Score: -9.54 X-Spam-Score: -9.54 X-Migadu-Queue-Id: 148DF12F2E X-Migadu-Scanner: mx13.migadu.com X-TUID: 0237ReKZdEle Suhail Singh writes: > Ihor Radchenko writes: > >> There is currently no such way. Although, it would be nice to have such >> a feature. Patches welcome! > > See attached. Thanks! > +;;;###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)))) This would work, but it modifies the checker list destructively. What about introducing some kind of selector variable instead? Something like org-lint-default-selector = '((not misspelled-export-option) :categories export :trust high) Then, we can make `org-lint' accept ARG to have this `org-lint-default-selector' format, in addition to currently supported list of checker names. -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at