all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: john muhl <jm@pub.pink>
To: Philip Kaludercic <philipk@posteo.net>
Cc: 74499@debbugs.gnu.org
Subject: bug#74499: [PATCH] Avoid loading 'rx' at runtime in 'lua-ts-mode'
Date: Mon, 25 Nov 2024 20:04:09 -0600	[thread overview]
Message-ID: <87a5dm92ee.fsf@pub.pink> (raw)
In-Reply-To: <87ttbwtocs.fsf@posteo.net> (Philip Kaludercic's message of "Sun,  24 Nov 2024 19:37:23 +0000")

Philip Kaludercic <philipk@posteo.net> writes:

> john muhl <jm@pub.pink> writes:
>
>> From 309e80a336bce5c4a9191c87af636b8adfc04b97 Mon Sep 17 00:00:00 2001
>> From: john muhl <jm@pub.pink>
>> Date: Sat, 23 Nov 2024 14:08:21 -0600
>> Subject: [PATCH] Avoid loading 'rx' at runtime in 'lua-ts-mode'
>>
>> * lisp/progmodes/lua-ts-mode.el (lua-ts-inferior-lua):
>> Replace 'rx-to-string' and substitution with 'rx' and 'literal'.
>>
>> (Bug#74499)
>> ---
>>  lisp/progmodes/lua-ts-mode.el | 16 ++++++++--------
>>  1 file changed, 8 insertions(+), 8 deletions(-)
>>
>> diff --git a/lisp/progmodes/lua-ts-mode.el b/lisp/progmodes/lua-ts-mode.el
>> index f88fe0e49af..828636f359d 100644
>> --- a/lisp/progmodes/lua-ts-mode.el
>> +++ b/lisp/progmodes/lua-ts-mode.el
>> @@ -659,9 +659,9 @@ lua-ts-inferior-lua
>>          (setq-local comint-input-ignoredups t
>>                      comint-input-ring-file-name lua-ts-inferior-history
>>                      comint-prompt-read-only t
>> -                    comint-prompt-regexp (rx-to-string `(: bol
>> -                                                           ,lua-ts-inferior-prompt
>> -                                                           (1+ space))))
>> +                    comint-prompt-regexp (rx bol
>> +                                             (literal lua-ts-inferior-prompt)
>> +                                             (1+ space)))
>
> Strictly speaking this could have introduced a regression, since literal
> quotes the string, and it might be that someone has set
> `lua-ts-inferior-prompt' to a quoted regular expression that is now
> double-quoted, but I assume that this is an acceptable edge-case?

It doesn’t strike me as a significant issue but I don’t customize
prompts so maybe it’s in my blind spot. Feel free to revert it or
not as you see fit.





      reply	other threads:[~2024-11-26  2:04 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-11-23 23:06 bug#74499: [PATCH] Avoid loading 'rx' at runtime in 'lua-ts-mode' john muhl
2024-11-23 23:08 ` john muhl
2024-11-24  1:21   ` Stefan Kangas
2024-11-24  8:42     ` Eli Zaretskii
2024-11-24 10:37       ` Stefan Kangas
2024-11-24 19:37   ` Philip Kaludercic
2024-11-26  2:04     ` john muhl [this message]

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=87a5dm92ee.fsf@pub.pink \
    --to=jm@pub.pink \
    --cc=74499@debbugs.gnu.org \
    --cc=philipk@posteo.net \
    /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.