From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2.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 iHdwMIVqYGYhewEAe85BDQ:P1 (envelope-from ) for ; Wed, 05 Jun 2024 15:39:18 +0200 Received: from aspmx1.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2.migadu.com with LMTPS id iHdwMIVqYGYhewEAe85BDQ (envelope-from ) for ; Wed, 05 Jun 2024 15:39:17 +0200 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20230601 header.b=OoZ4y8nl; 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=gmail.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1717594757; 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=X8Ium1iqVvW10NFXlPpTAQlNiDm0/MMNkvIL+I9drVE=; b=dSdiGwL89PQeo+fRfhB+3/H5DRVtgUSdL8gsNsIHRhtw3jmp/63JGBLPvjxH/EcG91j2fu HigIOnB2BxhNs6aYgqxBEejYKKQT9zA5HdPjp69+4JV/8jSlXZBbdrL7gEcwpBqhmN3USb gnclAbu4UOaNncHATMSiB1zC9vGypqK6DkeAci4/Jr4u4RxuOYedwLjhFUeOGL5MVb/N1n XdZutHGeRd0BRbjzStgqV63DueYsebYAJw8wudeSYj3zUbWFQX+Vq8kCwER1bzYywf8/OB 3ZhpKuBYCkJBsavy0mw0v5ClbSfY6noSaoDkpyDqE/+F+AoC7y3ZjWpcN13UwA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20230601 header.b=OoZ4y8nl; 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=gmail.com ARC-Seal: i=1; s=key1; d=yhetil.org; t=1717594757; a=rsa-sha256; cv=none; b=rkMFVg1gJSBuNo+vmj+AYvf8uw7mC1/3mHHOJw2GwNi/ixItsjv+e/HbtFMqvNwxNtM36o /AFIrwzn7htcIKMwiBr2PrP61qjyd05ptwuV8HPkpW5RV4+A23E2fIQW37o0WJ39/FwCeg ZAA3AqiEspZrW5iqXs5qz6CInmuo2Evx8oJXy5n8NJaWC+C29oq45JgQ9Qk9Xw9s2mlyg9 yty5VUBODgNON6HGjF2qTdSv9hnD0xY/ZrJCkYbd9jWy61XRlfry+SIsK2ZmZKJqA2y+pR Y8wkuZFJvWIzFxMQnzZaC3hCOMEPjJREUpJTteQ0lSVGPWzpHyQkjoIe8LHO8w== 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 931EF5025E for ; Wed, 5 Jun 2024 15:39:17 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sEqq2-0003fG-1g; Wed, 05 Jun 2024 09:38:02 -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 1sEqq0-0003ej-OO for emacs-orgmode@gnu.org; Wed, 05 Jun 2024 09:38:00 -0400 Received: from mail-qv1-xf41.google.com ([2607:f8b0:4864:20::f41]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1sEqpy-0003l0-6m for emacs-orgmode@gnu.org; Wed, 05 Jun 2024 09:38:00 -0400 Received: by mail-qv1-xf41.google.com with SMTP id 6a1803df08f44-6b00486127eso1115596d6.2 for ; Wed, 05 Jun 2024 06:37:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1717594675; x=1718199475; 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=X8Ium1iqVvW10NFXlPpTAQlNiDm0/MMNkvIL+I9drVE=; b=OoZ4y8nlUTeAB5KHD1n4UGL6dCP6OxUq+nzLr57OQ0scO7bBS5m4SsqTDoJTQ5MOG9 gTBH8hKmOwsaHAjVJHKio5q6//A+EkxIoTrJzJjbHKPs4/avdxq+TOfk8xFfpYGnU6Mn S3oZ5hpYlshuexDrUkFMoC/GrMLI/MPwccd+o3b7jUk6qJh+0MSijadjzuIbcfsW7HSW EmQyMvLI4A/OnTeyREKEHeuRbRUFwpQ48s65RUrdVLZ+BAO7kKoPznGIHAXRLzuUolsn orAo8uuAE+i6kIx8aHvJDy5b7MksgoRWtL3y82NgvoCEUm7drFNb/jXrTupF0laikjGV ZcbA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1717594675; x=1718199475; 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=X8Ium1iqVvW10NFXlPpTAQlNiDm0/MMNkvIL+I9drVE=; b=SAieoRmu1FuX+smZjxsJqQYEaa1xIZHuR382sYSmPt94hgRajoCYCNZPEnbU0qyO7x /jnE9V0fkXlBgvYET6jZLrS3xRUFCBSyY8+ymApYsX2fiwYlNPxJ4jr3pNZY/eleExc4 /o/3oddNwr3QwSJJu9Ka7nipUCkyk5fxXSdOkC/EB4jj7zjAnhC4FDNRgC1lC5LKiLRv 4Hmgdu1cfZJZ4a1zD54h23deREmNmQhEwRYhg8gC10NaY1cH8TtElOdr58C59JtE3o6I +d6ffFOD1vpmfjgRraEh4X0jPkUmnns2G5eIyF2qkBetHNMvlyw5o4I6Dt2k9Eh9QQnr 9y0Q== X-Forwarded-Encrypted: i=1; AJvYcCWBys+cgu3fjgmaF1Bq8eHJI84bqE/eXyxhA4hGvYiB238hQ275er4wOjz5lcPQyv0ZhF7Y6BV2K3CWmSAWeObzSiGHySI= X-Gm-Message-State: AOJu0YwG1NPDQ0RcKCQLwNMhtUk1PTUcXvzH4XzCKmtDu0nvkd3NUBVO h0f5C41qeNoWHaXAwFUqQ1NnVCRfq9CSXIap1UHZ2zmKgAwAaoc440B3oH8s X-Google-Smtp-Source: AGHT+IEff9aq1g0HTwSWyxWn6S9lvIqLvDK4FjMCy6Q7GYQoPzmbhcFJVxeekRaoEX0yH1EYHlvRfQ== X-Received: by 2002:a05:620a:178a:b0:794:ef5d:9e92 with SMTP id af79cd13be357-79523fccf54mr228429185a.6.1717594675415; Wed, 05 Jun 2024 06:37:55 -0700 (PDT) Received: from gnus (static-198-54-132-177.cust.tzulo.com. [198.54.132.177]) by smtp.gmail.com with ESMTPSA id d75a77b69052e-43ff246e2d4sm59511391cf.78.2024.06.05.06.37.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 05 Jun 2024 06:37:55 -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: <87cyov7d2c.fsf@localhost> (Ihor Radchenko's message of "Wed, 05 Jun 2024 13:07:39 +0000") References: <87mso035kq.fsf@gmail.com> <87cyov7d2c.fsf@localhost> Date: Wed, 05 Jun 2024 09:37:54 -0400 Message-ID: <874ja7ik7h.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=2607:f8b0:4864:20::f41; envelope-from=suhailsingh247@gmail.com; helo=mail-qv1-xf41.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-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Spam-Score: -9.67 X-Spam-Score: -9.67 X-Migadu-Queue-Id: 931EF5025E X-Migadu-Scanner: mx13.migadu.com X-TUID: rXToo+O1iI+S Ihor Radchenko writes: > Org mode has no idea which languages are intended to be executed, but > happen to not have their ob-lang.el backend loaded; and which > languages do not need execution. So, Org mode warns just in case. If the primary function of this check is to ensure that the user isn't missing an ob-lang.el requirement, then I propose that the check be renamed to something specific to babel. Perhaps 'suspcious-babel-language-in-src-block ? > You can always ignore this warning. I presently update (via setq) org-lint--checker after filtering out this checker. Is there a better way (i.e., one that doesn't rely on an internal variable) for non-interactive use? Perhaps an #'org-lint-remove-checker could be added to org-lint.el. For context, I have code that non-interactively invokes org-lint and reports the warnings. As such, ignoring by pressing "i" in the *Org Lint* buffer isn't an option. > (If you have better ideas about how to approach the problem of > misspelled language names, feel free to share them) I don't have a recommendation specific to the languages that only support code execution, however, for languages in general wouldn't it be better to consult something like the output of #'org-src-get-lang-mode and see if that mode is either defined or can be loaded (depending on whether or not we require the user to ensure whether the feature representing the mode is already loaded or simply that it be possible to be loaded)? -- Suhail