From unknown Sat Jun 21 10:33:17 2025
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
X-Mailer: MIME-tools 5.509 (Entity 5.509)
Content-Type: text/plain; charset=utf-8
From: bug#75310 <75310@debbugs.gnu.org>
To: bug#75310 <75310@debbugs.gnu.org>
Subject: Status: Eliminate obsolete alias warning
Reply-To: bug#75310 <75310@debbugs.gnu.org>
Date: Sat, 21 Jun 2025 17:33:17 +0000
retitle 75310 Eliminate obsolete alias warning
reassign 75310 emacs
submitter 75310 Peter Oliver
severity 75310 wishlist
thanks
From debbugs-submit-bounces@debbugs.gnu.org Fri Jan 03 06:42:00 2025
Received: (at submit) by debbugs.gnu.org; 3 Jan 2025 11:42:00 +0000
Received: from localhost ([127.0.0.1]:49812 helo=debbugs.gnu.org)
by debbugs.gnu.org with esmtp (Exim 4.84_2)
(envelope-from )
id 1tTg40-0002LQ-AN
for submit@debbugs.gnu.org; Fri, 03 Jan 2025 06:42:00 -0500
Received: from lists.gnu.org ([2001:470:142::17]:53876)
by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
(Exim 4.84_2) (envelope-from )
id 1tTg3z-0002LD-10
for submit@debbugs.gnu.org; Fri, 03 Jan 2025 06:41:59 -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 )
id 1tTg3t-0003Fr-Af
for bug-gnu-emacs@gnu.org; Fri, 03 Jan 2025 06:41:53 -0500
Received: from mail-wm1-x32d.google.com ([2a00:1450:4864:20::32d])
by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
(Exim 4.90_1) (envelope-from )
id 1tTg3q-0008VH-Tu
for bug-gnu-emacs@gnu.org; Fri, 03 Jan 2025 06:41:53 -0500
Received: by mail-wm1-x32d.google.com with SMTP id
5b1f17b1804b1-4364a37a1d7so128406205e9.3
for ; Fri, 03 Jan 2025 03:41:50 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=mavit.org.uk; s=google; t=1735904509; x=1736509309; darn=gnu.org;
h=mime-version:message-id:subject:to:from:date:from:to:cc:subject
:date:message-id:reply-to;
bh=pGH+GSeV/D4p2PU8zg2j3M18qt6v3AUMZRezPODlTjU=;
b=aBR3//7k9o2LY8UfbbhKNSpRMEwzTnc5VcgU9mHeqKrWyCSbAgISKaVuXwznwJc4wd
Q8t/NRuBXW3rfvKylCF/3GMHC7FiDhCBN+wBs5JZlgYV10YLF7Am+2nZxprCLGDlSVzn
9K7KptICVUa0yu+1fwKbRBCSVTx0ctwW6meno=
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20230601; t=1735904509; x=1736509309;
h=mime-version:message-id:subject:to:from:date:x-gm-message-state
:from:to:cc:subject:date:message-id:reply-to;
bh=pGH+GSeV/D4p2PU8zg2j3M18qt6v3AUMZRezPODlTjU=;
b=NOhJmqcartBXXfzSTXwLV2Ym6aJ+vLkT+DZ1S1tcHDSdDRbzqgvGRqKQ6AQEpGuv/T
6Ih0ZSqJj/QlH1KONoknDLqHRmL/HdhCQ2lA2LFUjrwS9uy1kY6UlzIDJZynW4UOSPWy
ecDEW42tlOoom12mTFIcx8OdD0azonX29Sgh9fq6qPBZCEDnla205UjZ+63HpWx5z56j
jXgEmgwL6aNLPUvDQ87t6e4PKmP917F0YxPUBpCJHM4DpvrxYRKotDrycrbR5fUuIflC
BBXgXsMxDs5Xc1tv9eCcTfmEAC9QRwOOToPkk2WczXuogvIGvulcL0YFgJDSVBGgrF5O
Lbag==
X-Gm-Message-State: AOJu0YxYxrTE5otLkz793ubFW6aGQxZE6ttGSbKea3Q8N4j5lyV40gi+
f7ipAkMMJ/92E5o0YlsDgqv67370wsHzONk2db8AZoSvAGqjVvOTyr2BPES50QvrUdOilcOSSho
=
X-Gm-Gg: ASbGncukdKeDEC0CzHQW5JYVWHNsv0tT8cvB8AjISZiuwCSKE446X6C5gKMkIvBBonJ
uYuVORf9DYBrjiHDhGxyZlmotcKWT/++aKcTKUB9YWuRJrbxXpC9U9jLpKr0b0EGG3Qyg0ZsMuN
oSkFWs2uX+pS6dV7IfP6F4Xj9Zx3wYOYCQCvEiXqFpzJNaUdkUO8yB5pxwhLn21WNj0/dwJTVaO
BtiSH22W0lrKpSDWRLCKxEKUeMzC9H+Q3fPLeXaXZVCuOIkcbyPozas8+pBkWHuZSPIdGoOHMNk
mebMOW4jjVLtfnwqbN/8A2XHoiT7Ibt0t+hpQZ+O7jGTkejZCpHSCywLwC4Od13513Pg
X-Google-Smtp-Source: AGHT+IFymcpHA9qQkqQ+yWga8lU7xLuaSaSW0dB9t3ptwr+9Chz1Y638zoIbcJx5zOOD2seWHJbQnQ==
X-Received: by 2002:adf:cb06:0:b0:385:f44a:a3b with SMTP id
ffacd0b85a97d-38a223f75d3mr27915163f8f.41.1735904508444;
Fri, 03 Jan 2025 03:41:48 -0800 (PST)
Received: from froglet.home.mavit.org.uk
(dudl-14-b2-v4wan-165806-cust1021.vm31.cable.virginm.net. [82.32.147.254])
by smtp.gmail.com with ESMTPSA id
ffacd0b85a97d-38a5524f064sm14575746f8f.101.2025.01.03.03.41.47
for
(version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
Fri, 03 Jan 2025 03:41:47 -0800 (PST)
Received: from froglet.home.mavit.org.uk (localhost [127.0.0.1])
by froglet.home.mavit.org.uk (8.18.1/8.17.1) with ESMTPS id 503Bfkdg009262
(version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NOT)
for ; Fri, 3 Jan 2025 11:41:46 GMT
Received: from localhost (mavit@localhost)
by froglet.home.mavit.org.uk (8.18.1/8.18.1/Submit) with ESMTP id
503Bfk4d009259
for ; Fri, 3 Jan 2025 11:41:46 GMT
X-Authentication-Warning: froglet.home.mavit.org.uk: mavit owned process doing
-bs
Date: Fri, 3 Jan 2025 11:41:46 +0000 (GMT)
From: Peter Oliver
To: bug-gnu-emacs@gnu.org
Subject: Eliminate obsolete alias warning
Message-ID:
MIME-Version: 1.0
Content-Type: multipart/mixed;
boundary="-1463811584-563409348-1735904506=:4880"
Received-SPF: pass client-ip=2a00:1450:4864:20::32d;
envelope-from=p.d.oliver@mavit.org.uk; helo=mail-wm1-x32d.google.com
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,
RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001,
SPF_PASS=-0.001 autolearn=ham autolearn_force=no
X-Spam_action: no action
X-Spam-Score: 0.7 (/)
X-Debbugs-Envelope-To: submit
X-BeenThere: debbugs-submit@debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id:
List-Unsubscribe: ,
List-Archive:
List-Post:
List-Help:
List-Subscribe: ,
Errors-To: debbugs-submit-bounces@debbugs.gnu.org
Sender: "Debbugs-submit"
X-Spam-Score: -0.3 (/)
This message is in MIME format. The first part should be readable text,
while the remaining parts are likely unreadable without MIME-aware tools.
---1463811584-563409348-1735904506=:4880
Content-Type: text/plain; format=flowed; charset=US-ASCII
A patch is attached to eliminate a warning in lisp/treesit.el.
--
Peter Oliver
---1463811584-563409348-1735904506=:4880
Content-Type: text/plain; charset=US-ASCII; name=0001-Eliminate-obsolete-alias-warning.patch
Content-Transfer-Encoding: BASE64
Content-ID: <7483bcb0-9a8c-5f9a-83d8-834c2793dfad@froglet.home.mavit.org.uk>
Content-Description:
Content-Disposition: attachment; filename=0001-Eliminate-obsolete-alias-warning.patch
RnJvbSAyYTU3ZjBlOGI4NGVhOGM5OTYyN2IyZTU3NmNmNzEzODZmN2M4YWE2
IE1vbiBTZXAgMTcgMDA6MDA6MDAgMjAwMQ0KRnJvbTogUGV0ZXIgT2xpdmVy
IDxnaXRAbWF2aXQub3JnLnVrPg0KRGF0ZTogRnJpLCAzIEphbiAyMDI1IDEx
OjM2OjE2ICswMDAwDQpTdWJqZWN0OiBbUEFUQ0hdIEVsaW1pbmF0ZSBvYnNv
bGV0ZSBhbGlhcyB3YXJuaW5nDQoNCiogbGlzcC90cmVlc2l0LmVsICh0cmVl
c2l0LXRyYW5zcG9zZS1zZXhwcyk6IFJlcGxhY2Ugb2Jzb2xldGUgYWxpYXMg
bG9vcA0KICB3aXRoIGNsLWxvb3ANCi0tLQ0KIGxpc3AvdHJlZXNpdC5lbCB8
IDIgKy0NCiAxIGZpbGUgY2hhbmdlZCwgMSBpbnNlcnRpb24oKyksIDEgZGVs
ZXRpb24oLSkNCg0KZGlmZiAtLWdpdCBhL2xpc3AvdHJlZXNpdC5lbCBiL2xp
c3AvdHJlZXNpdC5lbA0KaW5kZXggZjNjNTUzZmRiOGYuLjA1Y2E2YjkzNTg1
IDEwMDY0NA0KLS0tIGEvbGlzcC90cmVlc2l0LmVsDQorKysgYi9saXNwL3Ry
ZWVzaXQuZWwNCkBAIC0yNjQ4LDcgKzI2NDgsNyBAQCB0cmVlc2l0LXRyYW5z
cG9zZS1zZXhwcw0KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHBh
cmVudCAoKyBhcmcgKHRyZWVzaXQtbm9kZS1pbmRleCBwcmV2IHQpKSB0KSkp
DQogICAgICAgICAgICAgICAgIChjb25zICh0cmVlc2l0LW5vZGUtZW5kIG4p
DQogICAgICAgICAgICAgICAgICAgICAgICh0cmVlc2l0LW5vZGUtc3RhcnQg
bikpKSkNCi0gICAgICAgICAgKGxvb3AgKHRyZWVzaXQtbm9kZS1uZXh0LXNp
YmxpbmcgcHJldiB0KQ0KKyAgICAgICAgICAoY2wtbG9vcCAodHJlZXNpdC1u
b2RlLW5leHQtc2libGluZyBwcmV2IHQpDQogICAgICAgICAgICAgICAgICh0
cmVlc2l0LW5vZGUtbmV4dC1zaWJsaW5nIG5leHQgdCkpKSkpKSkNCiANCiA7
OzsgTmF2aWdhdGlvbiwgZGVmdW4sIHRoaW5ncw0KLS0gDQoyLjQ3LjENCg0K
---1463811584-563409348-1735904506=:4880--
From debbugs-submit-bounces@debbugs.gnu.org Fri Jan 03 07:02:35 2025
Received: (at 75310) by debbugs.gnu.org; 3 Jan 2025 12:02:35 +0000
Received: from localhost ([127.0.0.1]:49853 helo=debbugs.gnu.org)
by debbugs.gnu.org with esmtp (Exim 4.84_2)
(envelope-from )
id 1tTgNv-0003Hk-6z
for submit@debbugs.gnu.org; Fri, 03 Jan 2025 07:02:35 -0500
Received: from eggs.gnu.org ([2001:470:142:3::10]:53398)
by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
(Exim 4.84_2) (envelope-from ) id 1tTgNt-0003HW-AY
for 75310@debbugs.gnu.org; Fri, 03 Jan 2025 07:02:33 -0500
Received: from fencepost.gnu.org ([2001:470:142:3::e])
by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
(Exim 4.90_1) (envelope-from )
id 1tTgNn-0004dg-5U; Fri, 03 Jan 2025 07:02:27 -0500
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org;
s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date:
mime-version; bh=EAIwsryyWpEsaPwwJD3QcXXPMFqh2VksUYlaw2SuPuU=; b=naAPiq3c9heV
2fR9+GkKaG/rj2UOc+oryLCWms7oLQp5BLnC4HMOaeWRq+s2sXD4qJ9Wgmw7S7mgTQjBhyKEYHnEJ
nOZ+BGilDbUCu+tVSptiw1A4Z3iq669CLOLnavmF7ZVP770WtVA3UUFB/c6mQw4wSu1YQ1dLg8LAf
5BnjrmWazvkVccVu/TphgtMBvdRwTIk4PZknX+LJo39go3nHy9gzK9YFLCb/ssIk/yZO2B8mIXd3f
HxHtChkKb0WgiLynAmVnf7qMB6qsLvj7FapQWyAhp2FhInVOinEqtSOjCwYCA8SCpgwaSHdB2xkqT
D5KlHQBVE9v/MtLT0AEL5g==;
Date: Fri, 03 Jan 2025 14:02:21 +0200
Message-Id: <86h66ggl6a.fsf@gnu.org>
From: Eli Zaretskii
To: Peter Oliver
In-Reply-To: (message from
Peter Oliver on Fri, 3 Jan 2025 11:41:46 +0000 (GMT))
Subject: Re: bug#75310: Eliminate obsolete alias warning
References:
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 75310
Cc: 75310@debbugs.gnu.org
X-BeenThere: debbugs-submit@debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id:
List-Unsubscribe: ,
List-Archive:
List-Post:
List-Help:
List-Subscribe: ,
Errors-To: debbugs-submit-bounces@debbugs.gnu.org
Sender: "Debbugs-submit"
X-Spam-Score: -3.3 (---)
> Date: Fri, 3 Jan 2025 11:41:46 +0000 (GMT)
> From: Peter Oliver
>
> A patch is attached to eliminate a warning in lisp/treesit.el.
>
> From 2a57f0e8b84ea8c99627b2e576cf71386f7c8aa6 Mon Sep 17 00:00:00 2001
> From: Peter Oliver
> Date: Fri, 3 Jan 2025 11:36:16 +0000
> Subject: [PATCH] Eliminate obsolete alias warning
>
> * lisp/treesit.el (treesit-transpose-sexps): Replace obsolete alias loop
> with cl-loop
I don't get any warning, and this 'loop' is not an obsolete alias:
(and (treesit-available-p)
(named-let loop ((res nil) <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
(buffers (buffer-list)))
(if (null buffers)
(mapc (lambda (b)
(with-current-buffer b
(setq-local treesit-font-lock-level val)
(treesit-font-lock-recompute-features)
(treesit-font-lock-fontify-region (point-min)
(point-max))))
res)
(let ((buffer (car buffers)))
(with-current-buffer buffer
(if treesit-font-lock-settings
(loop (append res (list buffer)) (cdr buffers))
(loop res (cdr buffers)))))))))
From debbugs-submit-bounces@debbugs.gnu.org Fri Jan 03 09:11:11 2025
Received: (at 75310) by debbugs.gnu.org; 3 Jan 2025 14:11:11 +0000
Received: from localhost ([127.0.0.1]:50096 helo=debbugs.gnu.org)
by debbugs.gnu.org with esmtp (Exim 4.84_2)
(envelope-from )
id 1tTiON-0001BH-DP
for submit@debbugs.gnu.org; Fri, 03 Jan 2025 09:11:11 -0500
Received: from mail-wm1-x32a.google.com ([2a00:1450:4864:20::32a]:59782)
by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
(Exim 4.84_2) (envelope-from )
id 1tTiOL-0001AV-3y
for 75310@debbugs.gnu.org; Fri, 03 Jan 2025 09:11:10 -0500
Received: by mail-wm1-x32a.google.com with SMTP id
5b1f17b1804b1-436281c8a38so88311885e9.3
for <75310@debbugs.gnu.org>; Fri, 03 Jan 2025 06:11:09 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=mavit.org.uk; s=google; t=1735913463; x=1736518263; darn=debbugs.gnu.org;
h=mime-version:references:message-id:in-reply-to:subject:cc:to:from
:date:from:to:cc:subject:date:message-id:reply-to;
bh=MOkatvWKa7xRhlMqYuJEK3Sfsqb1BiFJ9XE39Yf3tsI=;
b=PUN1b0OmwxJpoxhqbT8Ogq3LX/3FwiDQe0iwc13KRWKRLvNBfkeyni771daZV2tg0H
BdSEiwArzLHHeyHDNInuK3EHM+5z+m4CV7r5fCw0U8kxJrVAffoGKtKpGSs3RlcQ/IHD
/PmuuIDwijoOOTFBWeUmKVhbxX/Eq16+W0yxU=
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20230601; t=1735913463; x=1736518263;
h=mime-version:references:message-id:in-reply-to:subject:cc:to:from
:date:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to;
bh=MOkatvWKa7xRhlMqYuJEK3Sfsqb1BiFJ9XE39Yf3tsI=;
b=bE+dE5UMwLTmVRJ5oJvnISZns2bRtczhGCqG8MoYhlyaYEbejCETsaFQetahBGwVvt
iMTlULTQUI3vQZgp0NOuPNJc6OYpT4WyevS2bhdzJAtqTMqgolV7gX3Jl7pWO9aRKk7/
Ugp9lwz0f4bMo/+f/BfBo/jAAubu93AivPL6ntsPMDx55bQRPGLsbZ2ZsxThuwXv5Bxa
GDv6fTQVrTv2q6TjKAFxwFy++OXSFYcschcSuOZw5RENGEs/LCSb8s7QM9xCeHis/0pN
iLt24s0XjSoXE7l9jsJMNjUyXMH9Z5ANiexPWGPVNcKvc1ABOKpzve1Cp6mmaC2aoyu6
QOcA==
X-Gm-Message-State: AOJu0YzHlma3voDWRrJphCgAXYngO6irx3ruLWz8NhK2odcpUxSx1rC5
kv2s2XReeSk1kUxj7tCp9KDPGj4sJrEwhY+QEZBSSObr8xa+9KysrqUyRpDJxw==
X-Gm-Gg: ASbGnctSTMyBg6GXzleoJKn911+YbbEEJg+gaJ8XgY52j8hyrphhmMgh8zySAHGw3k7
Pgwt6Hngqi+ucXvjIhyV1UDZ+8SMDFu+pJk8Amnym1aWezSUoOHFpgKZ/cqvHpTKgFlsN/IQ0UY
jFzt9O7/im08nVLdhqqP9LRgDAXKdovwJL7M7bEmLyKR7513iBGb6ojoaVA7juSm4EcJdlJochf
wtgf+1thxUHHRbp207ABUXLZCwM/a/RX6qOYj82WFP97IG9hdto9ERZpkeIHhD1IlMDhaH+X1m2
jyHzBcVrxKi1FniAyLLMHmxzb9gqDpAqkH1m3CbBLMOSdo+9jGU3kxoq3vRSss8AkZj3
X-Google-Smtp-Source: AGHT+IHy2++Zyo+VNYGjnZNQZ9Kf5dT8HScGz54DMXJFtIQotVbraqvEcFER1dEYDli73PZvxA7Y8Q==
X-Received: by 2002:a05:600c:1c87:b0:434:ffe3:bc7d with SMTP id
5b1f17b1804b1-4366864646fmr433458085e9.16.1735913462946;
Fri, 03 Jan 2025 06:11:02 -0800 (PST)
Received: from froglet.home.mavit.org.uk
(dudl-14-b2-v4wan-165806-cust1021.vm31.cable.virginm.net. [82.32.147.254])
by smtp.gmail.com with ESMTPSA id
5b1f17b1804b1-43656b015absm518342285e9.13.2025.01.03.06.11.02
(version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
Fri, 03 Jan 2025 06:11:02 -0800 (PST)
Received: from froglet.home.mavit.org.uk (localhost [127.0.0.1])
by froglet.home.mavit.org.uk (8.18.1/8.17.1) with ESMTPS id 503EB14E094914
(version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NOT);
Fri, 3 Jan 2025 14:11:01 GMT
Received: from localhost (mavit@localhost)
by froglet.home.mavit.org.uk (8.18.1/8.18.1/Submit) with ESMTP id
503EB0Xr094909; Fri, 3 Jan 2025 14:11:01 GMT
X-Authentication-Warning: froglet.home.mavit.org.uk: mavit owned process doing
-bs
Date: Fri, 3 Jan 2025 14:11:00 +0000 (GMT)
From: Peter Oliver
To: Eli Zaretskii
Subject: Re: bug#75310: Eliminate obsolete alias warning
In-Reply-To: <86h66ggl6a.fsf@gnu.org>
Message-ID: <02134785-ad5d-8b9a-4b51-64e8d466b038@mavit.org.uk>
References:
<86h66ggl6a.fsf@gnu.org>
MIME-Version: 1.0
Content-Type: text/plain; charset=US-ASCII; format=flowed
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 75310
Cc: 75310@debbugs.gnu.org
X-BeenThere: debbugs-submit@debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id:
List-Unsubscribe: ,
List-Archive:
List-Post:
List-Help:
List-Subscribe: ,
Errors-To: debbugs-submit-bounces@debbugs.gnu.org
Sender: "Debbugs-submit"
X-Spam-Score: -1.0 (-)
On Fri, 3 Jan 2025, Eli Zaretskii wrote:
>> Date: Fri, 3 Jan 2025 11:41:46 +0000 (GMT)
>> From: Peter Oliver
>>
>> A patch is attached to eliminate a warning in lisp/treesit.el.
>>
>> From 2a57f0e8b84ea8c99627b2e576cf71386f7c8aa6 Mon Sep 17 00:00:00 2001
>> From: Peter Oliver
>> Date: Fri, 3 Jan 2025 11:36:16 +0000
>> Subject: [PATCH] Eliminate obsolete alias warning
>>
>> * lisp/treesit.el (treesit-transpose-sexps): Replace obsolete alias loop
>> with cl-loop
>
> I don't get any warning, and this 'loop' is not an obsolete alias:
I see the warning with emacs -Q if I (require 'cl).
Apologies for the bad fix.
--
Peter Oliver
From debbugs-submit-bounces@debbugs.gnu.org Fri Jan 03 09:18:02 2025
Received: (at 75310) by debbugs.gnu.org; 3 Jan 2025 14:18:02 +0000
Received: from localhost ([127.0.0.1]:50112 helo=debbugs.gnu.org)
by debbugs.gnu.org with esmtp (Exim 4.84_2)
(envelope-from )
id 1tTiUz-0001W0-MF
for submit@debbugs.gnu.org; Fri, 03 Jan 2025 09:18:02 -0500
Received: from eggs.gnu.org ([2001:470:142:3::10]:37918)
by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
(Exim 4.84_2) (envelope-from ) id 1tTiUy-0001Vi-8r
for 75310@debbugs.gnu.org; Fri, 03 Jan 2025 09:18:01 -0500
Received: from fencepost.gnu.org ([2001:470:142:3::e])
by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
(Exim 4.90_1) (envelope-from )
id 1tTiUs-0006pl-O6; Fri, 03 Jan 2025 09:17:54 -0500
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org;
s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date:
mime-version; bh=+/ccpXLAmagMJdI5gV3tuqruCLbKxsqqCApezRRYOhI=; b=cTgks4hmzg4k
G3sQ3HKrBxKLkAdIf1Hdhi0wp6b9OEWvR5/lb4vKiKcrUQnnTJWzt/13QgwSyrjJJ1XsLdd09n6sG
/Tjylx/Q22HZFSlyGNmzZFwpGnuIMWYGw9bnpUGbq6tsKVBY4ghjMd/8VPmksAD/y/d8o9BLs1agG
/Mm0Bkfrz2qvdG5oajpfQLyBYNi9nTedtlLxNhAg/9mVtJbbH2Z4xG0nKYLGzNMefFdnYBFTJ4r4E
v9BgOn32Q9DqpfEQnaVVteFEM72G+jGsZTAxWVcSuN2RMXXgIgY52gI/GGDluHrXWMPWstMyauyAT
FhHxVltPnZTQCUzmZ1kvVw==;
Date: Fri, 03 Jan 2025 16:17:34 +0200
Message-Id: <86bjwogewx.fsf@gnu.org>
From: Eli Zaretskii
To: Peter Oliver
In-Reply-To: <02134785-ad5d-8b9a-4b51-64e8d466b038@mavit.org.uk> (message from
Peter Oliver on Fri, 3 Jan 2025 14:11:00 +0000 (GMT))
Subject: Re: bug#75310: Eliminate obsolete alias warning
References:
<86h66ggl6a.fsf@gnu.org> <02134785-ad5d-8b9a-4b51-64e8d466b038@mavit.org.uk>
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 75310
Cc: 75310@debbugs.gnu.org
X-BeenThere: debbugs-submit@debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id:
List-Unsubscribe: ,
List-Archive:
List-Post:
List-Help:
List-Subscribe: ,
Errors-To: debbugs-submit-bounces@debbugs.gnu.org
Sender: "Debbugs-submit"
X-Spam-Score: -3.3 (---)
> Date: Fri, 3 Jan 2025 14:11:00 +0000 (GMT)
> From: Peter Oliver
> cc: 75310@debbugs.gnu.org
>
> On Fri, 3 Jan 2025, Eli Zaretskii wrote:
>
> >> Date: Fri, 3 Jan 2025 11:41:46 +0000 (GMT)
> >> From: Peter Oliver
> >>
> >> A patch is attached to eliminate a warning in lisp/treesit.el.
> >>
> >> From 2a57f0e8b84ea8c99627b2e576cf71386f7c8aa6 Mon Sep 17 00:00:00 2001
> >> From: Peter Oliver
> >> Date: Fri, 3 Jan 2025 11:36:16 +0000
> >> Subject: [PATCH] Eliminate obsolete alias warning
> >>
> >> * lisp/treesit.el (treesit-transpose-sexps): Replace obsolete alias loop
> >> with cl-loop
> >
> > I don't get any warning, and this 'loop' is not an obsolete alias:
>
> I see the warning with emacs -Q if I (require 'cl).
You get the warning when you load cl, or when you load treesit after
cl? Or something else?
IOW, can you show a minimal recipe for reproducing the problem,
starting from "emacs -Q"?
Thanks.
From debbugs-submit-bounces@debbugs.gnu.org Fri Jan 03 09:47:59 2025
Received: (at 75310) by debbugs.gnu.org; 3 Jan 2025 14:47:59 +0000
Received: from localhost ([127.0.0.1]:50198 helo=debbugs.gnu.org)
by debbugs.gnu.org with esmtp (Exim 4.84_2)
(envelope-from )
id 1tTixz-0003EX-2e
for submit@debbugs.gnu.org; Fri, 03 Jan 2025 09:47:59 -0500
Received: from mail-wr1-x42d.google.com ([2a00:1450:4864:20::42d]:55416)
by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
(Exim 4.84_2) (envelope-from )
id 1tTixx-0003EN-0S
for 75310@debbugs.gnu.org; Fri, 03 Jan 2025 09:47:57 -0500
Received: by mail-wr1-x42d.google.com with SMTP id
ffacd0b85a97d-38a34e8410bso3965754f8f.2
for <75310@debbugs.gnu.org>; Fri, 03 Jan 2025 06:47:56 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=mavit.org.uk; s=google; t=1735915676; x=1736520476; darn=debbugs.gnu.org;
h=mime-version:references:message-id:in-reply-to:subject:cc:to:from
:date:from:to:cc:subject:date:message-id:reply-to;
bh=cJq+UJa/L5zIlXp5GRK9gh8aZLgns5tFu2fTFw7Psh4=;
b=S8FlPcWPx4hjhZ9WqeuSxHASBoljc5oEaSUBFYNHCX/BEjUVKsRYSwYvdWhWJFJbb0
ABP4aFROuErTfz2rVos/eSMOk14xKF7fqg3u0bbYYbUgAaRsntbAiArAT2/5jU4BQpL0
Sr/RlFKw1BSt1CucdbxROKIKdN1bwrlXg/8tc=
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20230601; t=1735915676; x=1736520476;
h=mime-version:references:message-id:in-reply-to:subject:cc:to:from
:date:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to;
bh=cJq+UJa/L5zIlXp5GRK9gh8aZLgns5tFu2fTFw7Psh4=;
b=fIlSV0tSGd885Znhm7+l9z5bWqLROycPn6Zr4b4/C02O1VSFZtGcLn6DNHRY3Z8/u3
oErb81vsr5Uu1/xunRqYP8mroE88Y1L2fHQYtOgFAP/DUOXQ19OJH/0D20wtX2Dzf1Pb
UJ5M9WQPX0ykppk3/ckvdk79dmFjmZZlyNffhv19XKPN142R5V2d6Gvo/yXr/cIk2L99
lX+ayVZ6L4SXfTa8RYPFYPpuS4LMynCOjf+Z2te/PhQyzxQuSOWdacjHzLnQ/v/yvfLK
l9sfEc8ExYQL/pSK6jwMNHMv470aOceW2FGVDVx9AmSK9wQyCGquUERyVSX/5ySnS1Rc
8irQ==
X-Gm-Message-State: AOJu0Yy3e3Z5UugybTHeOkSquoOGJsvBp7CyCIIrGoR3ukdacwYvsLX4
sPVT4aOr3bRTpHWk2zD08B6g9bb9ZEwRt0DZo04ptb/pFEnfys4E5x/c4bQnhw==
X-Gm-Gg: ASbGnctHzm39n7b1yCui6jjrTNyIuPNbzxeU2WSc2nHH8pOOLKPECppRALRVVuHgaj7
mmJ0DtcJBEMMowAZInLd0F3DJpjpnb1coJBrQtefR4wQdI5GJ01hiUPzou8y6dYeXNHI/UbY9UR
lNDLdVp/O+Rk+5Kpd+TLB63hOh1USpV7OwT+Q+gv7mXy5yWiWl5F2dk/RcsuNpRkR8JGrPFg6rb
TaX/OzGt5LAsORsLwvO6/0WWw/cV7oUC72WPfqhgeSHx8pSNaS+ZQp45IYKQnvDFqo56/BprevZ
dQSC13kPv/unwnZbM/pwr604rNIkjDEFuheAshSjfRT+zUJX5QvwFnZax/ir/89T8i23
X-Google-Smtp-Source: AGHT+IG8ghRYfs3dm7GkbCZWu0Lu+C6Q4fsr8XGs9/hcUae1f/ptWi/wdgpruDxet25UQq5gPKaueA==
X-Received: by 2002:a5d:6486:0:b0:386:5b2:a9d9 with SMTP id
ffacd0b85a97d-38a22408e42mr48689346f8f.53.1735915675523;
Fri, 03 Jan 2025 06:47:55 -0800 (PST)
Received: from froglet.home.mavit.org.uk
(dudl-14-b2-v4wan-165806-cust1021.vm31.cable.virginm.net. [82.32.147.254])
by smtp.gmail.com with ESMTPSA id
5b1f17b1804b1-436611ea487sm482926085e9.8.2025.01.03.06.47.54
(version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
Fri, 03 Jan 2025 06:47:55 -0800 (PST)
Received: from froglet.home.mavit.org.uk (localhost [127.0.0.1])
by froglet.home.mavit.org.uk (8.18.1/8.17.1) with ESMTPS id 503Elsiq143301
(version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NOT);
Fri, 3 Jan 2025 14:47:54 GMT
Received: from localhost (mavit@localhost)
by froglet.home.mavit.org.uk (8.18.1/8.18.1/Submit) with ESMTP id
503ElrvA143298; Fri, 3 Jan 2025 14:47:53 GMT
X-Authentication-Warning: froglet.home.mavit.org.uk: mavit owned process doing
-bs
Date: Fri, 3 Jan 2025 14:47:53 +0000 (GMT)
From: Peter Oliver
To: Eli Zaretskii
Subject: Re: bug#75310: Eliminate obsolete alias warning
In-Reply-To: <86bjwogewx.fsf@gnu.org>
Message-ID:
References:
<86h66ggl6a.fsf@gnu.org> <02134785-ad5d-8b9a-4b51-64e8d466b038@mavit.org.uk>
<86bjwogewx.fsf@gnu.org>
MIME-Version: 1.0
Content-Type: multipart/mixed;
boundary="-1463811584-388486214-1735915673=:4880"
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 75310
Cc: 75310@debbugs.gnu.org
X-BeenThere: debbugs-submit@debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id:
List-Unsubscribe: ,
List-Archive:
List-Post:
List-Help:
List-Subscribe: ,
Errors-To: debbugs-submit-bounces@debbugs.gnu.org
Sender: "Debbugs-submit"
X-Spam-Score: -1.0 (-)
This message is in MIME format. The first part should be readable text,
while the remaining parts are likely unreadable without MIME-aware tools.
---1463811584-388486214-1735915673=:4880
Content-Type: text/plain; charset=ISO-8859-7; format=flowed
Content-Transfer-Encoding: 8BIT
On Fri, 3 Jan 2025, Eli Zaretskii wrote:
> IOW, can you show a minimal recipe for reproducing the problem,
> starting from "emacs -Q"?
$ src/emacs -Q --batch --eval "(progn (message emacs-version) (require 'cl) (require 'treesit))"
31.0.50
Package cl is deprecated
lisp/treesit.el: Warning: Ąloop˘ is an obsolete alias (as of 27.1); use Ącl-loop˘ instead.
--
Peter Oliver
---1463811584-388486214-1735915673=:4880--
From debbugs-submit-bounces@debbugs.gnu.org Fri Jan 03 10:27:53 2025
Received: (at 75310) by debbugs.gnu.org; 3 Jan 2025 15:27:53 +0000
Received: from localhost ([127.0.0.1]:51633 helo=debbugs.gnu.org)
by debbugs.gnu.org with esmtp (Exim 4.84_2)
(envelope-from )
id 1tTjaa-0005nV-Jw
for submit@debbugs.gnu.org; Fri, 03 Jan 2025 10:27:52 -0500
Received: from eggs.gnu.org ([2001:470:142:3::10]:53870)
by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
(Exim 4.84_2) (envelope-from ) id 1tTjaY-0005nI-1d
for 75310@debbugs.gnu.org; Fri, 03 Jan 2025 10:27:50 -0500
Received: from fencepost.gnu.org ([2001:470:142:3::e])
by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
(Exim 4.90_1) (envelope-from )
id 1tTjaS-0002ZD-Ih; Fri, 03 Jan 2025 10:27:44 -0500
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org;
s=fencepost-gnu-org; h=MIME-version:References:Subject:In-Reply-To:To:From:
Date; bh=aF5xsN/6qzhyTWv4Q9N9H+LH+0cv0TgZsR0mAhjZ1ts=; b=NG0ak0LV/kymQzyFh5di
ztoEWpymxPj1MU5nCdAI6aWv0kvZiWP+AkOyDAU1UmAYnkfPHueSYn+kHuBfDmYVsOpY/DHuNyDTM
Bin7BqRY8MkZLJuy8Yxgi1V7OG27Nppqz9UByOs5PiW07kVk/XOniUzbYGTo8dawAuj+fqMcS98/+
614iuZdzVY/ly7bsUzbiaISR4ZipwZnUpWe+rcL8sPBmCgvrrdTtVkUvjd2oawk4PrBACh38LKMoz
f1IICmcGHpG4tuMJ2C586KGnxe4BZ1wn/scnOtqwTAbLifXii1RqYpFk7FacBewLdCxGNUsXPBZwr
XWY+dcsnfgXiLQ==;
Date: Fri, 03 Jan 2025 17:27:42 +0200
Message-Id: <868qrrhq8h.fsf@gnu.org>
From: Eli Zaretskii
To: Peter Oliver ,
Yuan Fu
In-Reply-To: (message from
Peter Oliver on Fri, 3 Jan 2025 14:47:53 +0000 (GMT))
Subject: Re: bug#75310: Eliminate obsolete alias warning
References:
<86h66ggl6a.fsf@gnu.org> <02134785-ad5d-8b9a-4b51-64e8d466b038@mavit.org.uk>
<86bjwogewx.fsf@gnu.org>
MIME-version: 1.0
Content-type: text/plain; charset=iso-8859-7
Content-Transfer-Encoding: 8bit
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 75310
Cc: 75310@debbugs.gnu.org
X-BeenThere: debbugs-submit@debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id:
List-Unsubscribe: ,
List-Archive:
List-Post:
List-Help:
List-Subscribe: ,
Errors-To: debbugs-submit-bounces@debbugs.gnu.org
Sender: "Debbugs-submit"
X-Spam-Score: -3.3 (---)
> Date: Fri, 3 Jan 2025 14:47:53 +0000 (GMT)
> From: Peter Oliver
> cc: 75310@debbugs.gnu.org
>
> On Fri, 3 Jan 2025, Eli Zaretskii wrote:
>
> > IOW, can you show a minimal recipe for reproducing the problem,
> > starting from "emacs -Q"?
>
> $ src/emacs -Q --batch --eval "(progn (message emacs-version) (require 'cl) (require 'treesit))"
> 31.0.50
> Package cl is deprecated
> lisp/treesit.el: Warning: Ąloop˘ is an obsolete alias (as of 27.1); use Ącl-loop˘ instead.
Thanks.
Yuan, I think it would be good to rename 'loop' there to some other
name, do you agree?
From debbugs-submit-bounces@debbugs.gnu.org Fri Jan 03 13:52:41 2025
Received: (at control) by debbugs.gnu.org; 3 Jan 2025 18:52:41 +0000
Received: from localhost ([127.0.0.1]:52059 helo=debbugs.gnu.org)
by debbugs.gnu.org with esmtp (Exim 4.84_2)
(envelope-from )
id 1tTmmn-0001Do-B1
for submit@debbugs.gnu.org; Fri, 03 Jan 2025 13:52:41 -0500
Received: from mail-ed1-x535.google.com ([2a00:1450:4864:20::535]:60713)
by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
(Exim 4.84_2) (envelope-from )
id 1tTmml-0001Da-2R
for control@debbugs.gnu.org; Fri, 03 Jan 2025 13:52:39 -0500
Received: by mail-ed1-x535.google.com with SMTP id
4fb4d7f45d1cf-5d90a5581fcso2876318a12.1
for ; Fri, 03 Jan 2025 10:52:39 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=gmail.com; s=20230601; t=1735930358; x=1736535158; darn=debbugs.gnu.org;
h=to:subject:message-id:date:mime-version:from:from:to:cc:subject
:date:message-id:reply-to;
bh=FDkn0FA4DFs9Rldr3V0Z9nGYvS7xsYOLW3SztnB2hAI=;
b=bRM+HKFPf111D4ds6BMP+ddY6snlJRwsTuCLPRYnUnNBxBdj9zktul/rM5+rSbMFwW
KzgmbmyPp/EMOaTs7OKcstGF9MykqJB3Fnqwd60bzSwrZj7XiTqpR1qcul3NIEV/6N31
5zXCgTxuwKruW7rXlxFDzA+dnEA0PWsYcrDrDPvDztioyRE+ab5SUof49MLACj/v5jFY
4MrPV4ohgh56R2PrsJZPvtPyFvjcxpEemB8eZ2GHw9j3ndW3N7fL8fDL6oNhMk9ErcYL
CrxkafwnEsKZfwZ3lFON0VGRmry68JwLkID5d4usSUSd70VTvu2FVdksouOmq5PncXi+
0e9g==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20230601; t=1735930358; x=1736535158;
h=to:subject:message-id:date:mime-version:from:x-gm-message-state
:from:to:cc:subject:date:message-id:reply-to;
bh=FDkn0FA4DFs9Rldr3V0Z9nGYvS7xsYOLW3SztnB2hAI=;
b=VjWIM3t7tOLJteOiVVlsQQtX/EJcqexSJ4oWXPzcbbTxkYIoyNowS3FLVHcjoNUqdw
PiNOz2KlcQLNvIVb6/8ifV+YXLhvw1RBG2GU+yqz8Q+dYYt0qQgzC3FK91usYtzKt7An
93RXliJDrVG5xRjlX1MHlG7Zvbh7NQVgGgep3GJqV4mpywnO0oiyiAmwrPlbjnqj81Rg
F7RkFECe49sw2q3ezAtlJb5UpnSIiWdOJpAckMFUTHkU3w5iI4oTes3ba/ggPgEAhYGo
D/A2NY6EYyBd7IreWme3H0jTvhASLTAhKCQKB8iVeMqUvniDlsylJm0vUlzw+/m+Z+A7
PCmA==
X-Gm-Message-State: AOJu0YyT8W55Ebp5hNZ0Pl92zcAj5zPRgRW6Z3hPFKiFs7hoyFWpJGyT
TwAVzk7ehhdE1u5A+uXjPw7a71TxnxuSekz9wxvilR4Q9U57sLGZ83HqeTnjKhSvgSntgVxQzPf
Sycek83rL29zsCdIuPrcnRxOEeTloeDRS
X-Gm-Gg: ASbGncv5P4S3U8Hw/JAZo7s9r0V+g22syzEGYzfUc4C3ULhv0s5Dk+b7LqlfJ8tfOeV
2xf144vhAIMYAjMaNuTUxm5sfiMlRbNFd82RD/SU=
X-Google-Smtp-Source: AGHT+IH5iFEQpA6KubZ04edLX18bTi7mzaq6CUbwQYJ0CyVSJlnTBeR3t3Eb+Q/KMpE9uoL3MJQVYRLQceOeNEpyT/0=
X-Received: by 2002:a05:6402:2109:b0:5cf:e66f:678d with SMTP id
4fb4d7f45d1cf-5d81de083bamr45812529a12.28.1735930357534; Fri, 03 Jan 2025
10:52:37 -0800 (PST)
Received: from 753933720722 named unknown by gmailapi.google.com with
HTTPREST; Fri, 3 Jan 2025 12:52:37 -0600
From: Stefan Kangas
MIME-Version: 1.0
Date: Fri, 3 Jan 2025 12:52:37 -0600
Message-ID:
Subject: control message for bug #75310
To: control@debbugs.gnu.org
Content-Type: text/plain; charset="UTF-8"
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: control
X-BeenThere: debbugs-submit@debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id:
List-Unsubscribe: ,
List-Archive:
List-Post:
List-Help:
List-Subscribe: ,
Errors-To: debbugs-submit-bounces@debbugs.gnu.org
Sender: "Debbugs-submit"
X-Spam-Score: -1.0 (-)
severity 75310 wishlist
quit
From debbugs-submit-bounces@debbugs.gnu.org Sat Jan 04 02:33:41 2025
Received: (at 75310) by debbugs.gnu.org; 4 Jan 2025 07:33:41 +0000
Received: from localhost ([127.0.0.1]:53191 helo=debbugs.gnu.org)
by debbugs.gnu.org with esmtp (Exim 4.84_2)
(envelope-from )
id 1tTyfE-0008MK-Qn
for submit@debbugs.gnu.org; Sat, 04 Jan 2025 02:33:41 -0500
Received: from mail-pl1-x62a.google.com ([2607:f8b0:4864:20::62a]:55796)
by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
(Exim 4.84_2) (envelope-from ) id 1tTyfC-0008M5-93
for 75310@debbugs.gnu.org; Sat, 04 Jan 2025 02:33:39 -0500
Received: by mail-pl1-x62a.google.com with SMTP id
d9443c01a7336-21644aca3a0so107692075ad.3
for <75310@debbugs.gnu.org>; Fri, 03 Jan 2025 23:33:38 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=gmail.com; s=20230601; t=1735976017; x=1736580817; darn=debbugs.gnu.org;
h=to:references:message-id:content-transfer-encoding:cc:date
:in-reply-to:from:subject:mime-version:from:to:cc:subject:date
:message-id:reply-to;
bh=fLjxb69wVU0GsfZMbThAw1wpkXB46MQryRE/Ond9f8U=;
b=YhWZ998h1SL+ro6AksoFl2UO6leZ+2D2fNWc5X7KmTqBSnGwIfhTpiYXSn0ZCwRQqf
5I+kG/n0VN7ankgTRcb3T6ARYquZEtAphY0n6ntiTq2ojslPwhSrOEznp5lYreNbJniT
y2CWsxco8TvrRRGy5XWmPebajkIqalsZLrCYoLD8wEaguJWU8bZxD/1XgI3R6Njg9HQO
SSjh6wh5fK5R4lKB4FMkhKJTXIl5CR01SJectEQTtdcM5svpq/YMVrzS+Wn9Kw9FFFCS
HgRk7/5iNgoopVKbiZ1hy4COBO1XDakLCR5toWq2GbLn0SBtoAAjKre8+lbFqVhmOUmB
O+rQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20230601; t=1735976017; x=1736580817;
h=to:references:message-id:content-transfer-encoding:cc:date
:in-reply-to:from:subject:mime-version:x-gm-message-state:from:to:cc
:subject:date:message-id:reply-to;
bh=fLjxb69wVU0GsfZMbThAw1wpkXB46MQryRE/Ond9f8U=;
b=CXbM6QJHxl5ZGR9UXmvHA0LoBDw3335sCx38EauR4IUKXafaXvnH7/QOepmrvTXDkw
qPMuqOUkYeth0UybFh+pnER1E1NiMvzorQGezI7Qo4XXhTwOAhg2QVlU3lX7YtVounNz
7DRjAzNVJEtvTWk10S1NO83XQBEMWP0OU1eoBxpnOWj6PJ3m4AyPU6e7ujeunjLhY9J4
9NBf9OUL72vR9DSy+i2Ax4OQWH+p3w+VGODzWdUzpbrnbNq342mMeVEFZ4fLD4nnnWWs
Yxvhv9pPo+9a5QaexcnILk3Qen64LJ+Ev5AhXrVKCG5u7xvZJo5XNjWSoHUIaIOGOSz8
y+HA==
X-Forwarded-Encrypted: i=1;
AJvYcCXl+Bcx7DJQY7rcKPMBIBHRtKcqZgO7pGf+6Smnnerrz1k91DkC+gaTce8c8DIvAvilgC5syQ==@debbugs.gnu.org
X-Gm-Message-State: AOJu0Yx7ae38i1xRMoCT/nvkbCzJ965YF3N7nvnH40WDsglHsj/DXPxq
5eX2Dlj325Rj1sofpLWzLy8MGtjWLYltWAMcw/D+OMsuiRn0XEyg
X-Gm-Gg: ASbGncumHSnW8Wv/V0uhioQ6Q+ks5uUw2yIe4zCTWdjU0aX+BWwLbtQqaLOSssVBFrs
YAD3rUJWmNFxbA1AO2/AzfmtVAqk+40GnFCJv9iRLJhk1EUxHWdKZs/kg/bX4XgcB9iHXZ1L9af
0ZyEsj+YGyU+XAZYZKVbDzsBjfQuWDlEpGvLS9C/mj0443deYzTwQ+MhI8axd6ryd3qRrN1jd0H
bJF6KWHlGpj1gP2R5/A2zG+1GJYy1OzqQGFLi7z0Lcc9ReW2tOO+PsoAWdu+WzVDubm1vVdTfFb
dTMe
X-Google-Smtp-Source: AGHT+IEcv4Gob1kLWA5G/dl7cDKCFlxRoUaDRkGxCHd6fHOSaUrk8oCIBuqyLAhYshdNGd43H99DiQ==
X-Received: by 2002:a17:902:da8d:b0:20c:6399:d637 with SMTP id
d9443c01a7336-219e6f117ddmr846457365ad.40.1735976016833;
Fri, 03 Jan 2025 23:33:36 -0800 (PST)
Received: from smtpclient.apple ([2601:646:8f81:6120:c496:8cdf:4c5d:3617])
by smtp.gmail.com with ESMTPSA id
d9443c01a7336-219dc9f68e4sm254963805ad.211.2025.01.03.23.33.35
(version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128);
Fri, 03 Jan 2025 23:33:36 -0800 (PST)
Content-Type: text/plain;
charset=utf-8
Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3776.700.51\))
Subject: Re: bug#75310: Eliminate obsolete alias warning
From: Yuan Fu
In-Reply-To: <868qrrhq8h.fsf@gnu.org>
Date: Fri, 3 Jan 2025 23:33:25 -0800
Content-Transfer-Encoding: quoted-printable
Message-Id: <77CBB14F-094D-48DA-A7D1-ED9E1F43DAD3@gmail.com>
References:
<86h66ggl6a.fsf@gnu.org> <02134785-ad5d-8b9a-4b51-64e8d466b038@mavit.org.uk>
<86bjwogewx.fsf@gnu.org>
<868qrrhq8h.fsf@gnu.org>
To: Eli Zaretskii
X-Mailer: Apple Mail (2.3776.700.51)
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 75310
Cc: Peter Oliver , 75310@debbugs.gnu.org
X-BeenThere: debbugs-submit@debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id:
List-Unsubscribe: ,
List-Archive:
List-Post:
List-Help:
List-Subscribe: ,
Errors-To: debbugs-submit-bounces@debbugs.gnu.org
Sender: "Debbugs-submit"
X-Spam-Score: -1.0 (-)
> On Jan 3, 2025, at 7:27=E2=80=AFAM, Eli Zaretskii =
wrote:
>=20
>> Date: Fri, 3 Jan 2025 14:47:53 +0000 (GMT)
>> From: Peter Oliver
>> cc: 75310@debbugs.gnu.org
>>=20
>> On Fri, 3 Jan 2025, Eli Zaretskii wrote:
>>=20
>>> IOW, can you show a minimal recipe for reproducing the problem,
>>> starting from "emacs -Q"?
>>=20
>> $ src/emacs -Q --batch --eval "(progn (message emacs-version) =
(require 'cl) (require 'treesit))"
>> 31.0.50
>> Package cl is deprecated
>> lisp/treesit.el: Warning: =E2=80=98loop=E2=80=99 is an obsolete alias =
(as of 27.1); use =E2=80=98cl-loop=E2=80=99 instead.
>=20
> Thanks.
>=20
> Yuan, I think it would be good to rename 'loop' there to some other
> name, do you agree?
I would definitely agree. I=E2=80=99ve always used cl-loop (and now I =
try to not use it for new code). The only instance of =E2=80=9Cloop=E2=80=9D=
I can find in treesit.el is in a named-let in treesit-transpose-sexps =
wriiten by Theo, and it=E2=80=99s not the CL loop but a local function =
defined by named-let. I wanted to rewrite it so it doesn=E2=80=99t use =
named-let because it=E2=80=99s not very readable, but tbh I haven=E2=80=99=
t find the time to understand that function well enough to rewrite it =
(because it=E2=80=99s not very readable :-)
It could be that only I can=E2=80=99t understand it, but code should be =
simple enough that even I can understand ;-)
Once I rewrite it, there shouldn't be any occurrence of loop in =
treesit.el.
treesit-transpose-sexps looks like this:
(defun treesit-transpose-sexps (&optional arg)
"Tree-sitter `transpose-sexps' function.
ARG is the same as in `transpose-sexps'.
Locate the node closest to POINT, and transpose that node with
its sibling node ARG nodes away.
Return a pair of positions as described by
`transpose-sexps-function' for use in `transpose-subr' and
friends."
;; First arrive at the right level at where the node at point is
;; considered a sexp. If sexp isn't defined, or we can't find any
;; node that's a sexp, use the node at point.
(let* ((node (or (treesit-thing-at-point 'sexp 'nested)
(treesit-node-at (point))))
(parent (treesit-node-parent node))
(child (treesit-node-child parent 0 t)))
(named-let loop ((prev child)
(next (treesit-node-next-sibling child t)))
(when (and prev next)
(if (< (point) (treesit-node-end next))
(if (=3D arg -1)
(cons (treesit-node-start prev)
(treesit-node-end prev))
(when-let* ((n (treesit-node-child
parent (+ arg (treesit-node-index prev t)) =
t)))
(cons (treesit-node-end n)
(treesit-node-start n))))
(loop (treesit-node-next-sibling prev t)
(treesit-node-next-sibling next t)))))))
Yuan=
From debbugs-submit-bounces@debbugs.gnu.org Sat Jan 04 03:29:17 2025
Received: (at 75310) by debbugs.gnu.org; 4 Jan 2025 08:29:17 +0000
Received: from localhost ([127.0.0.1]:53302 helo=debbugs.gnu.org)
by debbugs.gnu.org with esmtp (Exim 4.84_2)
(envelope-from )
id 1tTzX3-0002Y0-2G
for submit@debbugs.gnu.org; Sat, 04 Jan 2025 03:29:17 -0500
Received: from eggs.gnu.org ([2001:470:142:3::10]:39722)
by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
(Exim 4.84_2) (envelope-from ) id 1tTzX1-0002Xm-7r
for 75310@debbugs.gnu.org; Sat, 04 Jan 2025 03:29:15 -0500
Received: from fencepost.gnu.org ([2001:470:142:3::e])
by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
(Exim 4.90_1) (envelope-from )
id 1tTzWv-0005Q6-Mq; Sat, 04 Jan 2025 03:29:09 -0500
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org;
s=fencepost-gnu-org; h=MIME-version:References:Subject:In-Reply-To:To:From:
Date; bh=VxK5cb08N0u7+D8yApbZsNojmR/sp5o/9+P8Adkx60c=; b=oY7okozsg+5An9/LKYzB
Iaun35Goik/Z7oPFhFHzP5yILLqTtg9R0wNSQ0KgkqaKI1V7k8PP4CyGcjSC/ExEIMpXLND0IPVh1
HdrAVBVS49OAK84LS7mR2dGr7f/chSRHpvpgFz+UNdCAfefaQfzhKOEaKpi1+twHxBFLkLqWr7EkQ
PcpKBsXqNm2JZIYDO6JFYO7vSVLIcR/FJqfwxX9P36SYoMR3hSjs3ZoZQBApSlzv+a/sDkp7kgx28
U0JsQXBiIs2RI5LpcpgyMvUTAbV86cY63+D9FNIzijIYj9am5Z/u1xFDtSwDejSwmOxw4ZHU1AH0U
YeSO3HRZKrG8YA==;
Date: Sat, 04 Jan 2025 10:29:08 +0200
Message-Id: <86a5c7f0dn.fsf@gnu.org>
From: Eli Zaretskii
To: Yuan Fu
In-Reply-To: <77CBB14F-094D-48DA-A7D1-ED9E1F43DAD3@gmail.com> (message from
Yuan Fu on Fri, 3 Jan 2025 23:33:25 -0800)
Subject: Re: bug#75310: Eliminate obsolete alias warning
References:
<86h66ggl6a.fsf@gnu.org> <02134785-ad5d-8b9a-4b51-64e8d466b038@mavit.org.uk>
<86bjwogewx.fsf@gnu.org>
<868qrrhq8h.fsf@gnu.org> <77CBB14F-094D-48DA-A7D1-ED9E1F43DAD3@gmail.com>
MIME-version: 1.0
Content-type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 75310
Cc: p.d.oliver@mavit.org.uk, 75310@debbugs.gnu.org
X-BeenThere: debbugs-submit@debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id:
List-Unsubscribe: ,
List-Archive:
List-Post:
List-Help:
List-Subscribe: ,
Errors-To: debbugs-submit-bounces@debbugs.gnu.org
Sender: "Debbugs-submit"
X-Spam-Score: -3.3 (---)
> From: Yuan Fu
> Date: Fri, 3 Jan 2025 23:33:25 -0800
> Cc: Peter Oliver ,
> 75310@debbugs.gnu.org
>
> > On Jan 3, 2025, at 7:27âŻAM, Eli Zaretskii wrote:
> >
> >> Date: Fri, 3 Jan 2025 14:47:53 +0000 (GMT)
> >> From: Peter Oliver
> >> cc: 75310@debbugs.gnu.org
> >>
> >> On Fri, 3 Jan 2025, Eli Zaretskii wrote:
> >>
> >>> IOW, can you show a minimal recipe for reproducing the problem,
> >>> starting from "emacs -Q"?
> >>
> >> $ src/emacs -Q --batch --eval "(progn (message emacs-version) (require 'cl) (require 'treesit))"
> >> 31.0.50
> >> Package cl is deprecated
> >> lisp/treesit.el: Warning: âloopâ is an obsolete alias (as of 27.1); use âcl-loopâ instead.
> >
> > Thanks.
> >
> > Yuan, I think it would be good to rename 'loop' there to some other
> > name, do you agree?
>
> I would definitely agree. Iâve always used cl-loop (and now I try to not use it for new code). The only instance of âloopâ I can find in treesit.el is in a named-let in treesit-transpose-sexps wriiten by Theo, and itâs not the CL loop but a local function defined by named-let. I wanted to rewrite it so it doesnât use named-let because itâs not very readable, but tbh I havenât find the time to understand that function well enough to rewrite it (because itâs not very readable :-)
>
> It could be that only I canât understand it, but code should be simple enough that even I can understand ;-)
Renaming the symbol is easy, and doesn't require you to understand the
code completely. We don't have to use cl-loop.
From debbugs-submit-bounces@debbugs.gnu.org Sat Jan 04 14:26:53 2025
Received: (at 75310) by debbugs.gnu.org; 4 Jan 2025 19:26:53 +0000
Received: from localhost ([127.0.0.1]:57444 helo=debbugs.gnu.org)
by debbugs.gnu.org with esmtp (Exim 4.84_2)
(envelope-from )
id 1tU9nR-0000PX-5S
for submit@debbugs.gnu.org; Sat, 04 Jan 2025 14:26:53 -0500
Received: from mail-pl1-x62e.google.com ([2607:f8b0:4864:20::62e]:48137)
by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
(Exim 4.84_2) (envelope-from ) id 1tU9nP-0000PL-9N
for 75310@debbugs.gnu.org; Sat, 04 Jan 2025 14:26:52 -0500
Received: by mail-pl1-x62e.google.com with SMTP id
d9443c01a7336-216281bc30fso215517205ad.0
for <75310@debbugs.gnu.org>; Sat, 04 Jan 2025 11:26:51 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=gmail.com; s=20230601; t=1736018810; x=1736623610; darn=debbugs.gnu.org;
h=to:references:message-id:content-transfer-encoding:cc:date
:in-reply-to:from:subject:mime-version:from:to:cc:subject:date
:message-id:reply-to;
bh=b9ZFxqLxxxxczA3SCUVi4bC+oVQuHeuFWyyZ8qGeSVA=;
b=XNg+eJfWk+BvOA2Q+uD71Y+ALWNvDuqsqg/pu7aO0g+yU8a0dC8KiCbZ++flhOIWek
6D4ylrJBQUSyEmnafNZBYsqFI9pde6Whx1t7aHqhF+eCMwR+xaHxXJuuRRfJ6TGW2/48
1Xg7/5rumEGx4pitXewoRdGoc2kcFQNgQONScauSTCFvFIVdW8UVS0blbbzeIyaruyCy
vrK2WaWTXoJBj1AL16eBRzdLq+dyqxYWWqyBTKeAGIym2kszaW0E2vV9Ig3C+BZ3MEdH
1WOfJv4SO4P8iy/5aGqij66+VV/HbyapGlqdvcTw/Qklgc/+mfV1DA2qRBWaHlysZI88
vVVA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20230601; t=1736018810; x=1736623610;
h=to:references:message-id:content-transfer-encoding:cc:date
:in-reply-to:from:subject:mime-version:x-gm-message-state:from:to:cc
:subject:date:message-id:reply-to;
bh=b9ZFxqLxxxxczA3SCUVi4bC+oVQuHeuFWyyZ8qGeSVA=;
b=MnHX0YjARsJeW+JipFPnAKtCEOYXeAZbJucBHTI7Wm23DvOBRhSppAO4J7RXZREmUZ
HwrpjYlgRjALP2WLZCKvYOdkc0uarSfbBEsaxWNGaJyxNFWSLtfAarrZEPaOCv+NukOK
Ci+QW4lgmEbHRQox0DurKUYexUHXDlsjPpK/o4X9lftjL/+fcea0YKCFmd4fFsxpLYbX
lHh61q9u5VqfwwpFEgk6vZISc2HjPSFN2T1pe99p+7IzBR/WbZkKUW7DFPQAvx7GwpvC
34sglbC7Tp1SnjDPQiTRgQaQj4xWzvrHAtl6Po8y87t7m2RYjfP2OT/yjcFbR6S4s/Pj
K/qg==
X-Forwarded-Encrypted: i=1;
AJvYcCUL1REL4Wu5x4/JmhVuFy+RN0XgfrM5BxRuHxHc9eD2w31wGZmEZ0/g/jN+tdI4k2SIvg1Klw==@debbugs.gnu.org
X-Gm-Message-State: AOJu0YztCMYY8ljss8LGIo32FSH2E5B9N22253BKRogXC+nB9AW57X5v
oPqduDAYBNeLWdVaWG7+4w6Vgm+3zvwq1sX96JrbrpI92tr4vI2aS0/HQA==
X-Gm-Gg: ASbGnctGKqr7sqFbxnKbDElHetRDEA2NNP6G77Rer2eOgQSXf3ycRWvDvhBvGxQxV9a
B9v6WldYc2GeKWxqX86XKm6pTFxXk2oZTW+/P2dz2mFtXTD/dO267tsdVS9dfi7RilPkEj6ZuOg
FWnymiSZN2bExzVJ/JGHdzLilMXvaxGu0p99Hwl0Bo9PWahrt4q1EKaI8hBEB74TkUBYMjzv9GW
q2UQPlabHXpBW95hKVzq5XnSyE3hTKmS/0yNwGOLfMQmawz2UEbS+caJUl1az1T0aZpYDNtOuJY
lnDD
X-Google-Smtp-Source: AGHT+IEryvPgJUxY8MJ4OTvGR9rv76ZDDDUKjNsmXcqcFi7Ma9mGUsSrmqR6ntvZpI01xc2oH6/8bA==
X-Received: by 2002:a17:903:22cf:b0:216:7ee9:21ff with SMTP id
d9443c01a7336-219e6f38254mr859832745ad.49.1736018810137;
Sat, 04 Jan 2025 11:26:50 -0800 (PST)
Received: from smtpclient.apple ([2601:646:8f81:6120:c496:8cdf:4c5d:3617])
by smtp.gmail.com with ESMTPSA id
41be03b00d2f7-842b8e867ccsm26013854a12.47.2025.01.04.11.26.49
(version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128);
Sat, 04 Jan 2025 11:26:49 -0800 (PST)
Content-Type: text/plain;
charset=utf-8
Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3776.700.51\))
Subject: Re: bug#75310: Eliminate obsolete alias warning
From: Yuan Fu
In-Reply-To: <86a5c7f0dn.fsf@gnu.org>
Date: Sat, 4 Jan 2025 11:26:38 -0800
Content-Transfer-Encoding: quoted-printable
Message-Id: <94CBEFD3-6E58-4056-B73C-B5FC6AB6E1B9@gmail.com>
References:
<86h66ggl6a.fsf@gnu.org> <02134785-ad5d-8b9a-4b51-64e8d466b038@mavit.org.uk>
<86bjwogewx.fsf@gnu.org>
<868qrrhq8h.fsf@gnu.org> <77CBB14F-094D-48DA-A7D1-ED9E1F43DAD3@gmail.com>
<86a5c7f0dn.fsf@gnu.org>
To: Eli Zaretskii
X-Mailer: Apple Mail (2.3776.700.51)
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 75310
Cc: Peter Oliver , 75310@debbugs.gnu.org
X-BeenThere: debbugs-submit@debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id:
List-Unsubscribe: ,
List-Archive:
List-Post:
List-Help:
List-Subscribe: ,
Errors-To: debbugs-submit-bounces@debbugs.gnu.org
Sender: "Debbugs-submit"
X-Spam-Score: -1.0 (-)
> On Jan 4, 2025, at 12:29=E2=80=AFAM, Eli Zaretskii =
wrote:
>=20
>> From: Yuan Fu
>> Date: Fri, 3 Jan 2025 23:33:25 -0800
>> Cc: Peter Oliver ,
>> 75310@debbugs.gnu.org
>>=20
>>> On Jan 3, 2025, at 7:27=E2=80=AFAM, Eli Zaretskii =
wrote:
>>>=20
>>>> Date: Fri, 3 Jan 2025 14:47:53 +0000 (GMT)
>>>> From: Peter Oliver
>>>> cc: 75310@debbugs.gnu.org
>>>>=20
>>>> On Fri, 3 Jan 2025, Eli Zaretskii wrote:
>>>>=20
>>>>> IOW, can you show a minimal recipe for reproducing the problem,
>>>>> starting from "emacs -Q"?
>>>>=20
>>>> $ src/emacs -Q --batch --eval "(progn (message emacs-version) =
(require 'cl) (require 'treesit))"
>>>> 31.0.50
>>>> Package cl is deprecated
>>>> lisp/treesit.el: Warning: =E2=80=98loop=E2=80=99 is an obsolete =
alias (as of 27.1); use =E2=80=98cl-loop=E2=80=99 instead.
>>>=20
>>> Thanks.
>>>=20
>>> Yuan, I think it would be good to rename 'loop' there to some other
>>> name, do you agree?
>>=20
>> I would definitely agree. I=E2=80=99ve always used cl-loop (and now I =
try to not use it for new code). The only instance of =E2=80=9Cloop=E2=80=9D=
I can find in treesit.el is in a named-let in treesit-transpose-sexps =
wriiten by Theo, and it=E2=80=99s not the CL loop but a local function =
defined by named-let. I wanted to rewrite it so it doesn=E2=80=99t use =
named-let because it=E2=80=99s not very readable, but tbh I haven=E2=80=99=
t find the time to understand that function well enough to rewrite it =
(because it=E2=80=99s not very readable :-)
>>=20
>> It could be that only I can=E2=80=99t understand it, but code should =
be simple enough that even I can understand ;-)
>=20
> Renaming the symbol is easy, and doesn't require you to understand the
> code completely. We don't have to use cl-loop.
Ah right, duh :-) Though I renamed the symbol and still gets the =
deprecation message. There=E2=80=99s no other =E2=80=9Cloop=E2=80=9D in =
treesit.el, only cl-loop. Could you maybe take a look?
Yuan
From debbugs-submit-bounces@debbugs.gnu.org Sat Jan 04 14:27:48 2025
Received: (at 75310) by debbugs.gnu.org; 4 Jan 2025 19:27:48 +0000
Received: from localhost ([127.0.0.1]:57448 helo=debbugs.gnu.org)
by debbugs.gnu.org with esmtp (Exim 4.84_2)
(envelope-from )
id 1tU9oJ-0000Rv-MO
for submit@debbugs.gnu.org; Sat, 04 Jan 2025 14:27:48 -0500
Received: from mail-pl1-x62e.google.com ([2607:f8b0:4864:20::62e]:46359)
by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
(Exim 4.84_2) (envelope-from ) id 1tU9oI-0000Ri-0J
for 75310@debbugs.gnu.org; Sat, 04 Jan 2025 14:27:46 -0500
Received: by mail-pl1-x62e.google.com with SMTP id
d9443c01a7336-21649a7bcdcso180866965ad.1
for <75310@debbugs.gnu.org>; Sat, 04 Jan 2025 11:27:45 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=gmail.com; s=20230601; t=1736018865; x=1736623665; darn=debbugs.gnu.org;
h=to:references:message-id:content-transfer-encoding:cc:date
:in-reply-to:from:subject:mime-version:from:to:cc:subject:date
:message-id:reply-to;
bh=ftYxIZryc401h3nie6qkqwoOaDVEXwen58auA4CeT5w=;
b=M1yamLpfcAd1VbrgMa8p8Cz7YystB5L8I+WTlv8fjgQy+N1wMOC2MguSsNY/CqVjjQ
5VIqVYxToeN33cSB0JVbLwOQ+Y2tcacOYgGh8ATbxLnsBI8wiMKAI1jZ/Pm0ovSU2DDq
W7nX87PttrWeYFDRyJgK4SsRpFqMSR5ZEpowBMN5gXksFRHL8cApe4uHw9Iove45A0N0
Cax2CbXUnjJB3KBzkxwz+dTCGNkaNjBsgC7hDywhnb08PCjdAuKOImlWD8fpDGSbFNRR
35xyJGAMLw0sO7q+8dWlXopIIaW+9YyhtZ+ggJmMsx4N2eUN7vfUJ1ScbIY9Qc3ak1AL
uAXg==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20230601; t=1736018865; x=1736623665;
h=to:references:message-id:content-transfer-encoding:cc:date
:in-reply-to:from:subject:mime-version:x-gm-message-state:from:to:cc
:subject:date:message-id:reply-to;
bh=ftYxIZryc401h3nie6qkqwoOaDVEXwen58auA4CeT5w=;
b=Pndx2cKKgeRyb0at9pFS3L9jz0TKG0xLOSPCzupGu8806YwQfb7M7YE8ru6fz6sa/p
2/OAX2NlvZSXv7K8ZxC8fuHghhACgZEe4V5e3ZXZbToQxer3YSdHTsfhqaL/Lq+X0uDF
2PzSiwqan3kqxpRat2SAuKJso6TDlhC2rr5dnbhANq0vQ0KCu61WnjjXoEhsQUMRPLvC
WAmc5DiA0D03BG3HnX8ycH64Isxjjosnn0y1oqjq0/jn+xKPhA2KE3Xh3sN5h7BH71LT
X69iE3e4iw4cJp7fMBFJvwSFG5fvRw3xuI7Ufry+VX5n4li19gZ4UsCo7zjziWpBxkYb
KcWQ==
X-Forwarded-Encrypted: i=1;
AJvYcCVjmQzII0i8WVz/Xtpu17L+QLjy9FA75j2YHqHM4ukDdfHsMdV3CZqvPgkryL0hYedlDFtqqQ==@debbugs.gnu.org
X-Gm-Message-State: AOJu0Ywi/6CBSXGsgNAp3UdpjElRdBX1v8DC4MmGvG7YRq9RJf8WHyLK
/Jef+rjZiz78kblbWGwzmq1Fttm9Q1vieFlB98d7mjVpJZ7QK/yYG0FDZg==
X-Gm-Gg: ASbGnct08A+sWBIh8SCiWLcBRrmObIRNv3tG7tZANItCrdaLk3Um2PnSwnMa9j/Crve
Y2Vlm9E1I6ITU7HPeRdjyUTC2JkWL/aifQKYcd6SJ48Ek8IY+P+A57RgKd9oDAR2TbV7kDI9qmQ
pXGLo1LN9nSfz+JPs2cepInqGH0dMccgJ7DVDeUAoXAG6yJABK+OksqQrs3Bz7WPE18i4i0rhZY
ILEomKoi1tLX5TXXi7waA8aJ8NiSMwkDmRiSCtdIHTaJCm703aShkJxTETcJdL/lpvoBgDP2mAv
yK9x
X-Google-Smtp-Source: AGHT+IHayWbFhcNCmofp/3mESdaZeRh0CB+LURTPzDu6bHSUarYyoZ+QmdE2jpbfznCb/hBWJ+0sGQ==
X-Received: by 2002:a17:902:da88:b0:216:386e:dd8 with SMTP id
d9443c01a7336-219e6e9fa74mr566422135ad.17.1736018865152;
Sat, 04 Jan 2025 11:27:45 -0800 (PST)
Received: from smtpclient.apple ([2601:646:8f81:6120:c496:8cdf:4c5d:3617])
by smtp.gmail.com with ESMTPSA id
41be03b00d2f7-842b8e867ccsm26013854a12.47.2025.01.04.11.27.44
(version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128);
Sat, 04 Jan 2025 11:27:44 -0800 (PST)
Content-Type: text/plain;
charset=utf-8
Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3776.700.51\))
Subject: Re: bug#75310: Eliminate obsolete alias warning
From: Yuan Fu
In-Reply-To: <94CBEFD3-6E58-4056-B73C-B5FC6AB6E1B9@gmail.com>
Date: Sat, 4 Jan 2025 11:27:33 -0800
Content-Transfer-Encoding: quoted-printable
Message-Id:
References:
<86h66ggl6a.fsf@gnu.org> <02134785-ad5d-8b9a-4b51-64e8d466b038@mavit.org.uk>
<86bjwogewx.fsf@gnu.org>
<868qrrhq8h.fsf@gnu.org> <77CBB14F-094D-48DA-A7D1-ED9E1F43DAD3@gmail.com>
<86a5c7f0dn.fsf@gnu.org> <94CBEFD3-6E58-4056-B73C-B5FC6AB6E1B9@gmail.com>
To: Eli Zaretskii
X-Mailer: Apple Mail (2.3776.700.51)
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 75310
Cc: Peter Oliver , 75310@debbugs.gnu.org
X-BeenThere: debbugs-submit@debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id:
List-Unsubscribe: ,
List-Archive:
List-Post:
List-Help:
List-Subscribe: ,
Errors-To: debbugs-submit-bounces@debbugs.gnu.org
Sender: "Debbugs-submit"
X-Spam-Score: -1.0 (-)
> On Jan 4, 2025, at 11:26=E2=80=AFAM, Yuan Fu =
wrote:
>=20
>=20
>=20
>> On Jan 4, 2025, at 12:29=E2=80=AFAM, Eli Zaretskii =
wrote:
>>=20
>>> From: Yuan Fu
>>> Date: Fri, 3 Jan 2025 23:33:25 -0800
>>> Cc: Peter Oliver ,
>>> 75310@debbugs.gnu.org
>>>=20
>>>> On Jan 3, 2025, at 7:27=E2=80=AFAM, Eli Zaretskii =
wrote:
>>>>=20
>>>>> Date: Fri, 3 Jan 2025 14:47:53 +0000 (GMT)
>>>>> From: Peter Oliver
>>>>> cc: 75310@debbugs.gnu.org
>>>>>=20
>>>>> On Fri, 3 Jan 2025, Eli Zaretskii wrote:
>>>>>=20
>>>>>> IOW, can you show a minimal recipe for reproducing the problem,
>>>>>> starting from "emacs -Q"?
>>>>>=20
>>>>> $ src/emacs -Q --batch --eval "(progn (message emacs-version) =
(require 'cl) (require 'treesit))"
>>>>> 31.0.50
>>>>> Package cl is deprecated
>>>>> lisp/treesit.el: Warning: =E2=80=98loop=E2=80=99 is an obsolete =
alias (as of 27.1); use =E2=80=98cl-loop=E2=80=99 instead.
>>>>=20
>>>> Thanks.
>>>>=20
>>>> Yuan, I think it would be good to rename 'loop' there to some other
>>>> name, do you agree?
>>>=20
>>> I would definitely agree. I=E2=80=99ve always used cl-loop (and now =
I try to not use it for new code). The only instance of =E2=80=9Cloop=E2=80=
=9D I can find in treesit.el is in a named-let in =
treesit-transpose-sexps wriiten by Theo, and it=E2=80=99s not the CL =
loop but a local function defined by named-let. I wanted to rewrite it =
so it doesn=E2=80=99t use named-let because it=E2=80=99s not very =
readable, but tbh I haven=E2=80=99t find the time to understand that =
function well enough to rewrite it (because it=E2=80=99s not very =
readable :-)
>>>=20
>>> It could be that only I can=E2=80=99t understand it, but code should =
be simple enough that even I can understand ;-)
>>=20
>> Renaming the symbol is easy, and doesn't require you to understand =
the
>> code completely. We don't have to use cl-loop.
>=20
> Ah right, duh :-) Though I renamed the symbol and still gets the =
deprecation message. There=E2=80=99s no other =E2=80=9Cloop=E2=80=9D in =
treesit.el, only cl-loop. Could you maybe take a look?
Never mind, the deprecation message is from requiring cl. The obsolete =
alias error is fixed by renaming the symbol.
Yuan=
From debbugs-submit-bounces@debbugs.gnu.org Sat Jan 04 14:32:05 2025
Received: (at 75310-done) by debbugs.gnu.org; 4 Jan 2025 19:32:06 +0000
Received: from localhost ([127.0.0.1]:57458 helo=debbugs.gnu.org)
by debbugs.gnu.org with esmtp (Exim 4.84_2)
(envelope-from )
id 1tU9sT-0000hN-GV
for submit@debbugs.gnu.org; Sat, 04 Jan 2025 14:32:05 -0500
Received: from mail-pl1-x62b.google.com ([2607:f8b0:4864:20::62b]:49623)
by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
(Exim 4.84_2) (envelope-from ) id 1tU9sQ-0000ga-OX
for 75310-done@debbugs.gnu.org; Sat, 04 Jan 2025 14:32:03 -0500
Received: by mail-pl1-x62b.google.com with SMTP id
d9443c01a7336-2166f1e589cso226674295ad.3
for <75310-done@debbugs.gnu.org>; Sat, 04 Jan 2025 11:32:02 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=gmail.com; s=20230601; t=1736019117; x=1736623917; darn=debbugs.gnu.org;
h=to:references:message-id:content-transfer-encoding:cc:date
:in-reply-to:from:subject:mime-version:from:to:cc:subject:date
:message-id:reply-to;
bh=/OSCLqZgLsrJ/34H7EiNJO/WC/JKE2FntO+oYZJRNYw=;
b=AcessIpp9mTzzArnqpdwLdeKcINIDro/On6aGUXZaQApp6kaqFRyXXAWldvn2AEaM4
ENHB2W+fnLGLDc6WYbpBk3G94hlXMDpwunuPKvQtezmp/58M2VgDDcYIIkd6JIqJGX4k
B581G38uPTfP30CGWFhwEsi5FriOZ09hx5YQmynXSg27vyNd6x48sIHgQQjmmyrRxhmK
6PDU7EaCRY5lgTTPT8OvlPtAMlPO0+VpKenKt/ziixnu445rsQ48vUsVYL93+8lGXfkK
0mK7wFeFd4ugIZ4h0OapmQc+C8aXKSYLRlmXTq9DcfqZYMHR3r7a/DNcfzwprZ5MngwC
p4UQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20230601; t=1736019117; x=1736623917;
h=to:references:message-id:content-transfer-encoding:cc:date
:in-reply-to:from:subject:mime-version:x-gm-message-state:from:to:cc
:subject:date:message-id:reply-to;
bh=/OSCLqZgLsrJ/34H7EiNJO/WC/JKE2FntO+oYZJRNYw=;
b=EjWhULjm7HT9+4Mi5iM+qGdPtaUZA/ElZRkj943Pz+da8pVD+R8Nt1WFD7H0hf1qH5
5qdQWrsRmgnPUHqMZ133C5YoQcqFw7G3ykl6YXin1iDIRNBQkhOy9F2MxbufkN7YQL3c
83xRAw3o50rxvUcMs27sHXJGOxJyqcNPxRFAmYLk7/0yFuktbuCTTB94NiyMhvfooSx/
QvyMUetvoFfD0jh4CvA0gi8SCfGRhCuZkko1LiV7pcbWj28VgSQQXaslDrfwN/5j4pJQ
aLIvBZQCb/Y8aukrTYGqrwIYv6X5lQ/Y5H6h1hOYeDx3w3z0lbI6DYy+JH+NODOgQjeB
oUhQ==
X-Forwarded-Encrypted: i=1;
AJvYcCXkO9dQJGAsbHoNQnsu0g6kDRcG0MTg/yIpWYGbP/bmkYEPPYn96hFbL0xZtviFjFLPu67iE13RrMWM@debbugs.gnu.org
X-Gm-Message-State: AOJu0Ywb0ec6VE/6NzpRcndrD0pcwxFwkOQsOib/pkN0Lrjgcm20/dCx
SOfsBtTU4q4KHtVuI7vDD9ruq0wgTgN1OpUiV1tRNK10kMb2lgqyqAWnLQ==
X-Gm-Gg: ASbGnctEWxOwyVd3ltUXYG6bj6rnfWDK3GFJ0bouVy/ijiYwDcEzwCpUUhhyfMis9xN
ihMsEiP1u4zgNlG4n0ruhKNH2ekcIVf+WfCItKDPeHlHHriLHy5nWBQQfXGyw39A1WFhu5H1ZNM
VlgUVWxYtUZ+rBkyiUi2m/69iz94H5sSPeShNbaIsU3nTEuKm5WoQiA0Eevtg72R7yCVvlxNyoD
Tej0D0ABKlanNrSsXgkZoVfr55HXbvH4L3DCrlkclUNbj2kUwHeH1OraUH1OdecLhgqN4zHqAr4
iIQ7
X-Google-Smtp-Source: AGHT+IGdI4Wx1NukMq9giULr4znzws3c2zjgOTHSHqOSKSnYTzQ5CUIswpWBs+fl2eEZFn7q2W8cGg==
X-Received: by 2002:a05:6a21:e96:b0:1e1:ae4a:1d4b with SMTP id
adf61e73a8af0-1e5e07eff56mr82837664637.34.1736019116638;
Sat, 04 Jan 2025 11:31:56 -0800 (PST)
Received: from smtpclient.apple ([2601:646:8f81:6120:c496:8cdf:4c5d:3617])
by smtp.gmail.com with ESMTPSA id
d2e1a72fcca58-72aad81644csm28291274b3a.33.2025.01.04.11.31.55
(version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128);
Sat, 04 Jan 2025 11:31:55 -0800 (PST)
Content-Type: text/plain;
charset=utf-8
Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3776.700.51\))
Subject: Re: bug#75310: Eliminate obsolete alias warning
From: Yuan Fu
In-Reply-To:
Date: Sat, 4 Jan 2025 11:31:44 -0800
Content-Transfer-Encoding: quoted-printable
Message-Id:
References:
<86h66ggl6a.fsf@gnu.org> <02134785-ad5d-8b9a-4b51-64e8d466b038@mavit.org.uk>
<86bjwogewx.fsf@gnu.org>
<868qrrhq8h.fsf@gnu.org> <77CBB14F-094D-48DA-A7D1-ED9E1F43DAD3@gmail.com>
<86a5c7f0dn.fsf@gnu.org> <94CBEFD3-6E58-4056-B73C-B5FC6AB6E1B9@gmail.com>
To: Eli Zaretskii
X-Mailer: Apple Mail (2.3776.700.51)
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 75310-done
Cc: 75310-done@debbugs.gnu.org, Peter Oliver
X-BeenThere: debbugs-submit@debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id:
List-Unsubscribe: ,
List-Archive:
List-Post:
List-Help:
List-Subscribe: ,
Errors-To: debbugs-submit-bounces@debbugs.gnu.org
Sender: "Debbugs-submit"
X-Spam-Score: -1.0 (-)
> On Jan 4, 2025, at 11:27=E2=80=AFAM, Yuan Fu =
wrote:
>=20
>=20
>=20
>> On Jan 4, 2025, at 11:26=E2=80=AFAM, Yuan Fu =
wrote:
>>=20
>>=20
>>=20
>>> On Jan 4, 2025, at 12:29=E2=80=AFAM, Eli Zaretskii =
wrote:
>>>=20
>>>> From: Yuan Fu
>>>> Date: Fri, 3 Jan 2025 23:33:25 -0800
>>>> Cc: Peter Oliver ,
>>>> 75310@debbugs.gnu.org
>>>>=20
>>>>> On Jan 3, 2025, at 7:27=E2=80=AFAM, Eli Zaretskii =
wrote:
>>>>>=20
>>>>>> Date: Fri, 3 Jan 2025 14:47:53 +0000 (GMT)
>>>>>> From: Peter Oliver
>>>>>> cc: 75310@debbugs.gnu.org
>>>>>>=20
>>>>>> On Fri, 3 Jan 2025, Eli Zaretskii wrote:
>>>>>>=20
>>>>>>> IOW, can you show a minimal recipe for reproducing the problem,
>>>>>>> starting from "emacs -Q"?
>>>>>>=20
>>>>>> $ src/emacs -Q --batch --eval "(progn (message emacs-version) =
(require 'cl) (require 'treesit))"
>>>>>> 31.0.50
>>>>>> Package cl is deprecated
>>>>>> lisp/treesit.el: Warning: =E2=80=98loop=E2=80=99 is an obsolete =
alias (as of 27.1); use =E2=80=98cl-loop=E2=80=99 instead.
>>>>>=20
>>>>> Thanks.
>>>>>=20
>>>>> Yuan, I think it would be good to rename 'loop' there to some =
other
>>>>> name, do you agree?
>>>>=20
>>>> I would definitely agree. I=E2=80=99ve always used cl-loop (and now =
I try to not use it for new code). The only instance of =E2=80=9Cloop=E2=80=
=9D I can find in treesit.el is in a named-let in =
treesit-transpose-sexps wriiten by Theo, and it=E2=80=99s not the CL =
loop but a local function defined by named-let. I wanted to rewrite it =
so it doesn=E2=80=99t use named-let because it=E2=80=99s not very =
readable, but tbh I haven=E2=80=99t find the time to understand that =
function well enough to rewrite it (because it=E2=80=99s not very =
readable :-)
>>>>=20
>>>> It could be that only I can=E2=80=99t understand it, but code =
should be simple enough that even I can understand ;-)
>>>=20
>>> Renaming the symbol is easy, and doesn't require you to understand =
the
>>> code completely. We don't have to use cl-loop.
>>=20
>> Ah right, duh :-) Though I renamed the symbol and still gets the =
deprecation message. There=E2=80=99s no other =E2=80=9Cloop=E2=80=9D in =
treesit.el, only cl-loop. Could you maybe take a look?
>=20
> Never mind, the deprecation message is from requiring cl. The obsolete =
alias error is fixed by renaming the symbol.
>=20
> Yuan
Never mind =C3=97 2 :-) Juri just modified treesit-transpose-sexp so it =
doesn=E2=80=99t contain =E2=80=9Cloop=E2=80=9D anymore.
Yuan=
From debbugs-submit-bounces@debbugs.gnu.org Sat Jan 04 15:04:25 2025
Received: (at 75310) by debbugs.gnu.org; 4 Jan 2025 20:04:25 +0000
Received: from localhost ([127.0.0.1]:57523 helo=debbugs.gnu.org)
by debbugs.gnu.org with esmtp (Exim 4.84_2)
(envelope-from )
id 1tUANk-00029D-Nu
for submit@debbugs.gnu.org; Sat, 04 Jan 2025 15:04:25 -0500
Received: from eggs.gnu.org ([2001:470:142:3::10]:53904)
by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
(Exim 4.84_2) (envelope-from ) id 1tUANi-000290-Hi
for 75310@debbugs.gnu.org; Sat, 04 Jan 2025 15:04:23 -0500
Received: from fencepost.gnu.org ([2001:470:142:3::e])
by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
(Exim 4.90_1) (envelope-from )
id 1tUANb-0002td-9M; Sat, 04 Jan 2025 15:04:16 -0500
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org;
s=fencepost-gnu-org; h=MIME-version:References:Subject:In-Reply-To:To:From:
Date; bh=UboPmALprhfhKovK+0t+HfG0tJlMsuTWi0lF6cUyjbw=; b=mgozvfyxZwCQVNZ31n1Y
waveGcEROBC2AeVRYcoKQaEdny/C1wu2d7AfT2rJ6n2IccbVSOFjw4HcreEFe+GSlGyVk3ZpgU804
7+uqiL/Kq1bDxqIxaOqQvDXLPVaKEtZzcumMbAGzCFZ/jB9QW+mfUcyAeFQ3uvonQerpwiSkHuHxm
PrdwIxfYJmK3/3rh6IoF+hPEnBG9TaE0Lgy9aPaP3pXqwNN4cb8CYCSz9yrYM8U87susigE75lV9f
AMUhj4OChvExNPo1xnE9C2bY1nXZMS2oIqRdIOa2SrsoGdN7keywrJ4ZWqTdVYeL7tifBDuP3Puiq
zpYHoJ2FJOSjWQ==;
Date: Sat, 04 Jan 2025 22:03:42 +0200
Message-Id: <86cyh2bb35.fsf@gnu.org>
From: Eli Zaretskii
To: Yuan Fu
In-Reply-To: <94CBEFD3-6E58-4056-B73C-B5FC6AB6E1B9@gmail.com> (message from
Yuan Fu on Sat, 4 Jan 2025 11:26:38 -0800)
Subject: Re: bug#75310: Eliminate obsolete alias warning
References:
<86h66ggl6a.fsf@gnu.org> <02134785-ad5d-8b9a-4b51-64e8d466b038@mavit.org.uk>
<86bjwogewx.fsf@gnu.org>
<868qrrhq8h.fsf@gnu.org> <77CBB14F-094D-48DA-A7D1-ED9E1F43DAD3@gmail.com>
<86a5c7f0dn.fsf@gnu.org> <94CBEFD3-6E58-4056-B73C-B5FC6AB6E1B9@gmail.com>
MIME-version: 1.0
Content-type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 75310
Cc: p.d.oliver@mavit.org.uk, 75310@debbugs.gnu.org
X-BeenThere: debbugs-submit@debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id:
List-Unsubscribe: ,
List-Archive:
List-Post:
List-Help:
List-Subscribe: ,
Errors-To: debbugs-submit-bounces@debbugs.gnu.org
Sender: "Debbugs-submit"
X-Spam-Score: -3.3 (---)
> From: Yuan Fu
> Date: Sat, 4 Jan 2025 11:26:38 -0800
> Cc: Peter Oliver ,
> 75310@debbugs.gnu.org
>
>
>
> > On Jan 4, 2025, at 12:29âŻAM, Eli Zaretskii wrote:
> >
> >> From: Yuan Fu
> >> Date: Fri, 3 Jan 2025 23:33:25 -0800
> >> Cc: Peter Oliver ,
> >> 75310@debbugs.gnu.org
> >>
> >>> On Jan 3, 2025, at 7:27âŻAM, Eli Zaretskii wrote:
> >>>
> >>>> Date: Fri, 3 Jan 2025 14:47:53 +0000 (GMT)
> >>>> From: Peter Oliver
> >>>> cc: 75310@debbugs.gnu.org
> >>>>
> >>>> On Fri, 3 Jan 2025, Eli Zaretskii wrote:
> >>>>
> >>>>> IOW, can you show a minimal recipe for reproducing the problem,
> >>>>> starting from "emacs -Q"?
> >>>>
> >>>> $ src/emacs -Q --batch --eval "(progn (message emacs-version) (require 'cl) (require 'treesit))"
> >>>> 31.0.50
> >>>> Package cl is deprecated
> >>>> lisp/treesit.el: Warning: âloopâ is an obsolete alias (as of 27.1); use âcl-loopâ instead.
> >>>
> >>> Thanks.
> >>>
> >>> Yuan, I think it would be good to rename 'loop' there to some other
> >>> name, do you agree?
> >>
> >> I would definitely agree. Iâve always used cl-loop (and now I try to not use it for new code). The only instance of âloopâ I can find in treesit.el is in a named-let in treesit-transpose-sexps wriiten by Theo, and itâs not the CL loop but a local function defined by named-let. I wanted to rewrite it so it doesnât use named-let because itâs not very readable, but tbh I havenât find the time to understand that function well enough to rewrite it (because itâs not very readable :-)
> >>
> >> It could be that only I canât understand it, but code should be simple enough that even I can understand ;-)
> >
> > Renaming the symbol is easy, and doesn't require you to understand the
> > code completely. We don't have to use cl-loop.
>
> Ah right, duh :-) Though I renamed the symbol and still gets the deprecation message. Thereâs no other âloopâ in treesit.el, only cl-loop. Could you maybe take a look?
You get deprecation message in what scenario? If you see
Package cl is deprecated
when you load cl, that's expected, and cannot be shut up. The message
we want to avoid is this:
lisp/treesit.el: Warning: âloopâ is an obsolete alias (as of 27.1); use âcl-loopâ instead.
Are you still seeing it after the change?
From unknown Sat Jun 21 10:33:17 2025
Received: (at fakecontrol) by fakecontrolmessage;
To: internal_control@debbugs.gnu.org
From: Debbugs Internal Request
Subject: Internal Control
Message-Id: bug archived.
Date: Sun, 02 Feb 2025 12:24:08 +0000
User-Agent: Fakemail v42.6.9
# This is a fake control message.
#
# The action:
# bug archived.
thanks
# This fakemail brought to you by your local debbugs
# administrator