From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#75310: Eliminate obsolete alias warning Date: Fri, 03 Jan 2025 14:02:21 +0200 Message-ID: <86h66ggl6a.fsf@gnu.org> References: Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="30539"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 75310@debbugs.gnu.org To: Peter Oliver Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Jan 03 13:03:26 2025 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 1tTgOk-0007mf-1L for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 03 Jan 2025 13:03:26 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tTgOU-0001Dh-ML; Fri, 03 Jan 2025 07:03:10 -0500 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 1tTgOO-0001Cm-EP for bug-gnu-emacs@gnu.org; Fri, 03 Jan 2025 07:03:05 -0500 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tTgOM-0004g8-Ge for bug-gnu-emacs@gnu.org; Fri, 03 Jan 2025 07:03:04 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=References:In-Reply-To:From:Date:To:Subject; bh=EAIwsryyWpEsaPwwJD3QcXXPMFqh2VksUYlaw2SuPuU=; b=g7DRFImzqWMlef5gk2bUV61XkRBBNqzuXjE8glawVXpvpz6//WRp3IAdOHwt9EgXnk0AN/WSFtLkDBgarkDgOKpv7RUMsCI/zdFZ94LxhzDEsilb8YkgVMXTFCeAxmIFoNMqIKO3DIxJNHmwlULX7SFp1kd5UGZ4XqOOxmkmm0Lejm3fYK2POxWysBa0x4NxtJFhstHDaioLrJaHoE+xbJPg4FzdmWAJK3KaxfgMofSuHScnPqq4h5/gWte8gcqDxPxrs44eabKdiA43yGx/Hz1o8tkID8Dlh/ZwByeFgUBJqUUVTBpWWCS90tps/gvCbY1Mm6mwVwD5x0sPenpb0Q==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1tTgOL-0003IW-Ny for bug-gnu-emacs@gnu.org; Fri, 03 Jan 2025 07:03:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 03 Jan 2025 12:03:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 75310 X-GNU-PR-Package: emacs Original-Received: via spool by 75310-submit@debbugs.gnu.org id=B75310.173590575512636 (code B ref 75310); Fri, 03 Jan 2025 12:03:01 +0000 Original-Received: (at 75310) by debbugs.gnu.org; 3 Jan 2025 12:02:35 +0000 Original-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 Original-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 Original-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==; In-Reply-To: (message from Peter Oliver on Fri, 3 Jan 2025 11:41:46 +0000 (GMT)) 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: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:298273 Archived-At: > 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)))))))))