Stefan Kangas <stefankangas@HIDDEN>
to control <at> debbugs.gnu.org
.
Full text available.Received: (at submit) by debbugs.gnu.org; 25 Dec 2022 17:08:14 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Sun Dec 25 12:08:14 2022 Received: from localhost ([127.0.0.1]:50059 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1p9UTt-0006iB-Hv for submit <at> debbugs.gnu.org; Sun, 25 Dec 2022 12:08:13 -0500 Received: from lists.gnu.org ([209.51.188.17]:46382) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <drew.adams@HIDDEN>) id 1p9UTq-0006i1-L7 for submit <at> debbugs.gnu.org; Sun, 25 Dec 2022 12:08:12 -0500 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 <drew.adams@HIDDEN>) id 1p9UTo-0000s4-QM for bug-gnu-emacs@HIDDEN; Sun, 25 Dec 2022 12:08:09 -0500 Received: from mx0a-00069f02.pphosted.com ([205.220.165.32]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <drew.adams@HIDDEN>) id 1p9UTm-0007Pu-Fu for bug-gnu-emacs@HIDDEN; Sun, 25 Dec 2022 12:08:08 -0500 Received: from pps.filterd (m0246627.ppops.net [127.0.0.1]) by mx0b-00069f02.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 2BPFupmx011043 for <bug-gnu-emacs@HIDDEN>; Sun, 25 Dec 2022 17:08:00 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=from : to : subject : date : message-id : content-type : content-transfer-encoding : mime-version; s=corp-2022-7-12; bh=XQ4RGZ8ogIAZztCcjwSp4GrutNcyi+BdbwdMxF1/PBM=; b=UuV+UbrgYDM58Y1H4Hj38XSimB2FaQQpmk0aUn+jsPYF+KVsJGYGFLaNSNlsU/GZvt3M tXlFEKHFuybpKp2dzTS6v0x3lxflZ+fR3oD1xEg0v9KR8b8vndagIIchgWUvOAlQ96xh hgh15cI0E+ZGSEBZDLGN/kTIreCivEcRBgSx2DbdYoURHYV1LwuAb4Y9D9EHACRED5bU 8xaSsdjcxh9oLlZtrssrOdFAuLP1oi/iQinX2+fg9V0+6Opph/U2FgEg6wjOLKaOc1tM fd8B4AiiPbS8xGWPCW1EGu8bqifgaOIvwzRaiMSwzgOAN4Kmgo8S+nTPK6gD5ewfx8xp cA== Received: from iadpaimrmta02.imrmtpd1.prodappiadaev1.oraclevcn.com (iadpaimrmta02.appoci.oracle.com [147.154.18.20]) by mx0b-00069f02.pphosted.com (PPS) with ESMTPS id 3mnr119jbn-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK) for <bug-gnu-emacs@HIDDEN>; Sun, 25 Dec 2022 17:08:00 +0000 Received: from pps.filterd (iadpaimrmta02.imrmtpd1.prodappiadaev1.oraclevcn.com [127.0.0.1]) by iadpaimrmta02.imrmtpd1.prodappiadaev1.oraclevcn.com (8.17.1.5/8.17.1.5) with ESMTP id 2BPE0SDn018896 for <bug-gnu-emacs@HIDDEN>; Sun, 25 Dec 2022 17:07:59 GMT Received: from nam10-mw2-obe.outbound.protection.outlook.com (mail-mw2nam10lp2100.outbound.protection.outlook.com [104.47.55.100]) by iadpaimrmta02.imrmtpd1.prodappiadaev1.oraclevcn.com (PPS) with ESMTPS id 3mnqva6mgw-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK) for <bug-gnu-emacs@HIDDEN>; Sun, 25 Dec 2022 17:07:58 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=gacQqZ3xsRpmfYu1vQ0i1KL7R441yXrzDTwCLXTjY2bThmEwPTVyHr34z49KmWs06Cz+aeVlrq39wzEwd6k4zzNZyKsKTa6ls5v2Nw5eLIhRJSCAv1X+sZEhp0b5WZrw7oS9L6MzKqHr5edOMUXwuIlTPTT6LRfCnV1A2nezkUoK6Wa/uHVhGXCC4ejamDTumm5YM6tBkFmv61Uqwmh8iJtb5KG8aXN/KHxDtan4aiFKVE7B7Z3YYuUcQD7JzF74MZBm03ezvXZV9wlc750W8Xaj3hR+61gOP27crw4hC4CJsfmkDk1onDqVIud7VXk2waBmcuZB6OCwqvDwDZFHqw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=XQ4RGZ8ogIAZztCcjwSp4GrutNcyi+BdbwdMxF1/PBM=; b=DFNOFpW/6L0v+ogsklr5WAQDEl8TmdfppmWUNpAaHNNb8y2vx4gMSmHp00LI7ADpxp6i0so7OAiBTNOEz88mmzmEa+7DtFlqrJPVxIGo0hfwKb/eTr/NU8l3bvlKdlXS6cAE54rGYVfHFgn2g2cQWxke4N5ILopfBKh65o/IwAPNYbrsPg2xkbFWzOgrIXhwkYSJ81NUwA552kiB2RM2QjH5Pqe0kDSSc47FZQe0i8YvawQPFmVOwAb2K0FWrfaE4Gz/cCScz96kUbd2uEgDk0YfqegCIkQAv4vN6Na3atnhjljqyu5p42UzyBBunRjpez9igbmVO9iEn10XEaTO+g== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=oracle.com; dmarc=pass action=none header.from=oracle.com; dkim=pass header.d=oracle.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.onmicrosoft.com; s=selector2-oracle-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=XQ4RGZ8ogIAZztCcjwSp4GrutNcyi+BdbwdMxF1/PBM=; b=mvcnsH5Fp9TAmr2yoByKaoiujGWZvFkyoMNj8GNXEOyeBoMhuK7x6xhwZ9hXP3OuDS6be/01KISMOHsfnAw4vwrGxPv5ujRUG6xxFIwY5teSnBD/1gx6HeouuBmi1iMvy9FBsehhrhvJyrI0ZMvGXRXK+qOu8UWSPUIp3/QuG8U= Received: from SJ0PR10MB5488.namprd10.prod.outlook.com (2603:10b6:a03:37e::19) by CH3PR10MB7329.namprd10.prod.outlook.com (2603:10b6:610:12c::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5944.13; Sun, 25 Dec 2022 17:07:56 +0000 Received: from SJ0PR10MB5488.namprd10.prod.outlook.com ([fe80::7c3c:e53d:5276:ef29]) by SJ0PR10MB5488.namprd10.prod.outlook.com ([fe80::7c3c:e53d:5276:ef29%8]) with mapi id 15.20.5944.016; Sun, 25 Dec 2022 17:07:55 +0000 From: Drew Adams <drew.adams@HIDDEN> To: "bug-gnu-emacs@HIDDEN" <bug-gnu-emacs@HIDDEN> Subject: 28.2; Byte-compiler warning for free variable Thread-Topic: 28.2; Byte-compiler warning for free variable Thread-Index: AdkYg1zrSgm/KrNET0WZtHM0DZPAcA== Date: Sun, 25 Dec 2022 17:07:55 +0000 Message-ID: <SJ0PR10MB54883F5CE8A4E3D116BBB0D5F3EF9@HIDDEN> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ms-publictraffictype: Email x-ms-traffictypediagnostic: SJ0PR10MB5488:EE_|CH3PR10MB7329:EE_ x-ms-office365-filtering-correlation-id: 63ea860a-715b-4dd1-c14f-08dae69a90b7 x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: dMlt+b64cnup1ynaKN87Re4LjDvj7z/rQS7OnICAIfzUb6OGlASQ7emVGenOV5DL9TLl3cfTadgWnpGryWfGyCMnVCGxOLaf21rNWxELga7mDQzalhZLpKidloCWK+Ay+RKTJ5++iOPtRAKOltzzWpp4s08Kn2sJz7KHHUZpy0xbbf6sJ7WxLjkKBP3D5PqEXnOpBn5TkhJGTfeDONVTwMvZeoYfhqwXUa0HETyGtC/1D+THrLZ5fAdmbwle1/AxEIzgZeFXTpLlGaYzfOMKMxjVbMOBe7DWQAMelJLvFJ7cQh7/1Q3DXV8N0tQ8yYjEv8mPyds0FuM+jG9sy32P4lDg/Sxm1pV26OKE9ZHm2x4Z5oesNlCo3rwTaPRJ/dx4Suuh2j+XTBBvpe780VCkKJJBA/Pqlz5MPcTOnh9HB1qHLCHhJlfVgDf84SNfoQQsrBfTMgudB4f9v3hTk5xlIElROc3JGbtHZwx7gC2ZSlRLEiMzPTNA2quPQ0bMzliFVHxriBOdJVKR9ZilG+L0WJVY6tw9ga98DwbYtECt8oE9HIen/4zBPEMmNsX/lmtxPKU0bLsRx4Unrkoc4r4yYeNRJnI3SJuJ9G6AaUdNSy3LJPZIjg7je+FKV8oEzxeoO5Ldrrm0CUwjFkfwi5kzcSKos5xmzEVnsiBe+xURcaGCFJTAmnu5V7+rrVxcczWGvH+dB1R8+m831TzWZN487jmIvXFhwQ3yF1z6ZPtjBG0= x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:SJ0PR10MB5488.namprd10.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230022)(366004)(376002)(346002)(136003)(39850400004)(396003)(451199015)(45080400002)(55016003)(44832011)(33656002)(6916009)(38100700002)(316002)(2906002)(83380400001)(122000001)(71200400001)(186003)(478600001)(86362001)(9686003)(26005)(38070700005)(6506007)(8676002)(64756008)(66446008)(52536014)(66476007)(8936002)(7696005)(41300700001)(76116006)(66946007)(66556008)(5660300002)(4533004); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange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4r0pGrVDdpOAGhyGKW6hIjCADiivDivTDUXI/Btn9h1HrVxYq?= =?us-ascii?Q?DQcxJ9AtR8cKZPE8UwPWsskI2TUGvigMZTcsHDhkWckm50LKVTISD+2UVFd6?= =?us-ascii?Q?jvFWyK7Hbss/GB98ZtXJmargYKQjgU/dO7sjKe6MuD0OnScBqutt1RDvV+iu?= =?us-ascii?Q?BmWRteVgK+LLhOjQpRrzUk6Nzf9NJrkM2FBQFikXRvscrU8okILrzX7OGIqk?= =?us-ascii?Q?1tj2qPDmSsZYghNRJO30qw+y2QdXT3FgWgDA2ZzuYjgQ+73MmAG/nmHUB+ds?= =?us-ascii?Q?5I3sM+PMQgue4tmASt68Uqvk1oujCdxrqpuw0COAFvzwrXPK9/AmtlektH0n?= =?us-ascii?Q?mYBajE4mCL4yZwpYFk4FgGJRImkdfpxhApB3SvXJ44dILWeKz0SABxntYucW?= =?us-ascii?Q?D+Ihwq1AlCTGVBG+o9dLgKd4n7faTTE65A3UK2GMA2XHeYpQ5g3Wh9CM1xxB?= =?us-ascii?Q?w9QCUlXvlBmCHbBJxzYJNSw0d7PrDqgrzoJZptEX9ulr4xrO3I/F/gfR0Zsp?= =?us-ascii?Q?PKoXL47oFlmb3gtghCKhNisf0HUV7c35vDpqgcwKIz5Igu6QEUYaxiDRfQL7?= =?us-ascii?Q?sNxEd0yGCjZCiC+TtE6mjExeehNdcaPihZY5M9Kg59jvBu4LnrHLaOWcDLDW?= =?us-ascii?Q?4GLFpkFIHKgyMg9Hxv+wxrGRM//eghYBlesC00uhbfG4qrJdGJ8+Ibtr+63r?= =?us-ascii?Q?eq3NIj7Eb++rxbViA5c+z6atky2lciK68Y//gAOF?= Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: oracle.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: SJ0PR10MB5488.namprd10.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 63ea860a-715b-4dd1-c14f-08dae69a90b7 X-MS-Exchange-CrossTenant-originalarrivaltime: 25 Dec 2022 17:07:55.3504 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 4e2c6054-71cb-48f1-bd6c-3a9705aca71b X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: kQFzjgNPaToAhz+u730J5I4LhZ29FGUFZjkBaf7QPqJGxQD53OKsCWbYPxtrHo1SuwUT6iIpcHSrs365NXRMBg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: CH3PR10MB7329 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.205,Aquarius:18.0.923,Hydra:6.0.545,FMLib:17.11.122.1 definitions=2022-12-25_14,2022-12-23_01,2022-06-22_01 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 mlxlogscore=999 suspectscore=0 bulkscore=0 mlxscore=0 spamscore=0 phishscore=0 malwarescore=0 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2212070000 definitions=main-2212250151 X-Proofpoint-ORIG-GUID: xfwIDp5BLVD4OOlp4QlpC9jmMUMfe-Y5 X-Proofpoint-GUID: xfwIDp5BLVD4OOlp4QlpC9jmMUMfe-Y5 Received-SPF: pass client-ip=205.220.165.32; envelope-from=drew.adams@HIDDEN; helo=mx0a-00069f02.pphosted.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 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_LOW=-0.7, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.3 (-) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -2.3 (--) You might not consider this a bug, or you might consider it not worth trying to fix. That's fine by me. I think it's worth reporting, at least. Maybe something can be done for it, or maybe you can let me know a good way to work around it. Unlike `defvar', `defconst', alters the value each time it's evaluated. E.g., if you load a file with (defconst foo bar "...") more than once then the value of `foo' gets set each time to whatever is the current value of `bar'. That's normal and desirable (and consistent with other Lisps, such as CL). How to ensure that a defconst sets the value only once, when the file it's in is loaded? A defvar does that, but a defconst does not. Maybe there's a better way, but I've been using this so far: (unless (boundp 'foo) (defconst foo bar "...")) But that results in this byte-compiler warning: In blah-fun: toto.el:236:34:Warning: reference to free variable `foo' An alternative is to use a defvar and just say in its doc string that it's intended as a constant (don't set it etc.). Maybe that's less confusing to users than seeing the warning? Dunno. In GNU Emacs 28.2 (build 2, x86_64-w64-mingw32) of 2022-09-13 built on AVALON Windowing system distributor 'Microsoft Corp.', version 10.0.19044 System Description: Microsoft Windows 10 Pro (v10.0.2009.19044.2364) Configured using: 'configure --with-modules --without-dbus --with-native-compilation --without-compress-install CFLAGS=3D-O2' Configured features: ACL GIF GMP GNUTLS HARFBUZZ JPEG JSON LCMS2 LIBXML2 MODULES NATIVE_COMP NOTIFY W32NOTIFY PDUMPER PNG RSVG SOUND THREADS TIFF TOOLKIT_SCROLL_BARS XPM ZLIB (NATIVE_COMP present but libgccjit not available)
Drew Adams <drew.adams@HIDDEN>
:bug-gnu-emacs@HIDDEN
.
Full text available.bug-gnu-emacs@HIDDEN
:bug#60315
; Package emacs
.
Full text available.
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997 nCipher Corporation Ltd,
1994-97 Ian Jackson.