all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Thuna <thuna.cing@gmail.com>
To: Philip Kaludercic <philipk@posteo.net>
Cc: 59810@debbugs.gnu.org
Subject: bug#59810: [PATCH] Fix rcirc-markup-text-functions applying to the whole message
Date: Mon, 01 May 2023 22:32:41 +0200	[thread overview]
Message-ID: <87ildbeqs6.fsf@gmail.com> (raw)
In-Reply-To: <878re8qmxw.fsf@posteo.net>

>
>> Since `rcirc-markup-text-functions' is meant to apply only to the text,
>> the changed code, which applied it to the entirety of the message was
>> bugged.  The simplest example is `\me NICK' with `rcirc-color', where
>> NICK is supposed to be colored but isn't because the message reads
>> `[... NICK]' and the `]' is recognized as a part of the nick.
>
> I can not reproduce this, can you give a different example?

Nothing else immediately comes to mind, unfortunately.  I am able to
reproduce it, however:
- emacs -Q 
- Load rcirc-color (version 0.4.5 as of now)
- M-x rcirc
- /query fsbot (assuming you're in libera.chat)
- Type a message so that fsbot responds and its color is registered
- "/me fsbot" --- You will see that fsbot is not colored
- "/me fsbot " --- You will see that fsbot is colored

My emacs version is GNU Emacs 30.0.50 (build 1, x86_64-pc-linux-gnu,
GTK+ Version 3.24.34) of 2023-01-09, in case that matters.

>> The patch should fix the issue, although it is possible that some
>> already existing functions put to `rcirc-markup-text-functions' will
>> break due to them expecting the previous behavior.  I still propose the
>> patch is applied as the issue is a bug on those functions' end and not
>> rcirc.

> Why is this necessary, if the only function that would have modified the
> buffer gap is `rcirc-markup-timestamp'?

I do not understand what you are referring to here.





      reply	other threads:[~2023-05-01 20:32 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-12-04  0:00 bug#59810: [PATCH] Fix rcirc-markup-text-functions applying to the whole message Thuna
2023-05-01 12:02 ` Philip Kaludercic
2023-05-01 20:32   ` Thuna [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=87ildbeqs6.fsf@gmail.com \
    --to=thuna.cing@gmail.com \
    --cc=59810@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.