all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: Peter Oliver <p.d.oliver@mavit.org.uk>
Cc: 75310@debbugs.gnu.org
Subject: bug#75310: Eliminate obsolete alias warning
Date: Fri, 03 Jan 2025 14:02:21 +0200	[thread overview]
Message-ID: <86h66ggl6a.fsf@gnu.org> (raw)
In-Reply-To: <ea74df71-a3c3-6065-1145-c6dfa0b75c14@mavit.org.uk> (message from Peter Oliver on Fri, 3 Jan 2025 11:41:46 +0000 (GMT))

> Date: Fri, 3 Jan 2025 11:41:46 +0000 (GMT)
> From: Peter Oliver <p.d.oliver@mavit.org.uk>
> 
> A patch is attached to eliminate a warning in lisp/treesit.el.
> 
> From 2a57f0e8b84ea8c99627b2e576cf71386f7c8aa6 Mon Sep 17 00:00:00 2001
> From: Peter Oliver <git@mavit.org.uk>
> 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)))))))))





  reply	other threads:[~2025-01-03 12:02 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-01-03 11:41 bug#75310: Eliminate obsolete alias warning Peter Oliver
2025-01-03 12:02 ` Eli Zaretskii [this message]
2025-01-03 14:11   ` Peter Oliver
2025-01-03 14:17     ` Eli Zaretskii
2025-01-03 14:47       ` Peter Oliver
2025-01-03 15:27         ` Eli Zaretskii
2025-01-04  7:33           ` Yuan Fu
2025-01-04  8:29             ` Eli Zaretskii
2025-01-04 19:26               ` Yuan Fu
2025-01-04 19:27                 ` Yuan Fu
2025-01-04 19:31                   ` Yuan Fu
2025-01-04 20:03                 ` Eli Zaretskii

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=86h66ggl6a.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=75310@debbugs.gnu.org \
    --cc=p.d.oliver@mavit.org.uk \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.