From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Matt Armstrong Newsgroups: gmane.emacs.bugs Subject: bug#58801: [PATCH] Autoload the `calc-eval-error' variable Date: Wed, 26 Oct 2022 10:02:50 -0700 Message-ID: <87fsfaa56t.fsf@rfc20.org> 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="15994"; mail-complaints-to="usenet@ciao.gmane.io" To: 58801@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Oct 26 19:06:10 2022 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 1onjqz-0003v3-Su for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 26 Oct 2022 19:06:09 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1onjox-0006dO-GN; Wed, 26 Oct 2022 13:04:03 -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 1onjow-0006bh-C0 for bug-gnu-emacs@gnu.org; Wed, 26 Oct 2022 13:04:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1onjow-0005R3-2w for bug-gnu-emacs@gnu.org; Wed, 26 Oct 2022 13:04:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1onjov-0000Lj-QA for bug-gnu-emacs@gnu.org; Wed, 26 Oct 2022 13:04:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Matt Armstrong Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 26 Oct 2022 17:04:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 58801 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.16668037921283 (code B ref -1); Wed, 26 Oct 2022 17:04:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 26 Oct 2022 17:03:12 +0000 Original-Received: from localhost ([127.0.0.1]:55187 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1onjo7-0000Kc-PL for submit@debbugs.gnu.org; Wed, 26 Oct 2022 13:03:12 -0400 Original-Received: from lists.gnu.org ([209.51.188.17]:41482) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1onjo5-0000KV-Pt for submit@debbugs.gnu.org; Wed, 26 Oct 2022 13:03:10 -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 1onjo5-0005lA-Ki for bug-gnu-emacs@gnu.org; Wed, 26 Oct 2022 13:03:09 -0400 Original-Received: from relay10.mail.gandi.net ([217.70.178.230]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1onjnt-0005K0-2l for bug-gnu-emacs@gnu.org; Wed, 26 Oct 2022 13:03:09 -0400 Original-Received: (Authenticated sender: matt@rfc20.org) by mail.gandi.net (Postfix) with ESMTPSA id 78CE0240008 for ; Wed, 26 Oct 2022 17:02:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rfc20.org; s=gm1; t=1666803773; 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=3tlCShGs9MbQaTLJLP1P3FXGYV55c63fu036sGr0Deo=; b=C5ko9J+dxv7XEeinHpD+BhKfvjfvTnCOj7dF0YBBCRNBaV+QRvbGNFjusrNt+h6+kAoD3Q AJQbe1xb3NoiKY8acKjk2IEp2BxpYe4ei7ybOiNc1z9bcKcNnTPW8cFKgC0ShIz32NLKV0 3okFASsl3/OOmL2nXrZGeYS2RgRXo3dkisKsWJ79Fvy4MEvpz6hoPo4kgQZKo61SH4bvWy KH95F1Fx8X1/dNZ7kC7zEh3b/zfrhXUK6xl2VxteTpgo89LsZ2lUbfq5lnEtUk8BfjLPzi jlJr+6Ox1DLOZy38q6Xu1Q0un1xC/fFuI/GaZdTKA9WB0cWNcxsYEV+rIvmoRw== Original-Received: from matt by naz with local (Exim 4.96) (envelope-from ) id 1onjnm-000W2I-2O for bug-gnu-emacs@gnu.org; Wed, 26 Oct 2022 10:02:50 -0700 Received-SPF: pass client-ip=217.70.178.230; envelope-from=matt@rfc20.org; helo=relay10.mail.gandi.net 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-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: , Original-Sender: "bug-gnu-emacs" Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:246245 Archived-At: --=-=-= Content-Type: text/plain Tags: patch (rationale in the patch) In GNU Emacs 29.0.50 (build 8, x86_64-pc-linux-gnu, GTK+ Version 3.24.34, cairo version 1.16.0) of 2022-10-25 built on naz Repository revision: 9d7ba2b1998afc3664c37d9d1b6f6ca2d68356e9 Repository branch: feature/noverlay System Description: Debian GNU/Linux bookworm/sid Configured using: 'configure 'CFLAGS=-Og -g3' 'CXXFLAGS=-Og -g3' --enable-checking=yes --enable-check-lisp-object-type --with-pgtk' --=-=-= Content-Type: text/patch Content-Disposition: attachment; filename=0001-Autoload-the-calc-eval-error-variable.patch >From 526d0b31e0d836e7a3c21d831849b8c50da2420e Mon Sep 17 00:00:00 2001 From: Matt Armstrong Date: Wed, 26 Oct 2022 09:46:37 -0700 Subject: [PATCH] Autoload the `calc-eval-error' variable * lisp/calc/calc-aent.el: Autoload the `calc-eval-error' variable, because it is documented as a lisp level option of the `calc-eval' function, which is also autoloaded. Otherwise, even (require 'calc) is not enough to get the variable defined; `calc-eval' must actually be evaluated. This squashes byte compiler warnings in code using the variable. --- lisp/calc/calc-aent.el | 1 + 1 file changed, 1 insertion(+) diff --git a/lisp/calc/calc-aent.el b/lisp/calc/calc-aent.el index ef3e0d4b67..59692beff7 100644 --- a/lisp/calc/calc-aent.el +++ b/lisp/calc/calc-aent.el @@ -252,6 +252,7 @@ calc-do-calc-eval res (cdr res))) buf))))))))) +;;;###autoload (defvar calc-eval-error nil "Determines how calc handles errors. If nil, return a list containing the character position of error. -- 2.35.1 --=-=-=--