* bug#13689: [Aidan Gauland] Re: ERC match ACTION patch
@ 2013-02-11 22:26 Stefan Monnier
0 siblings, 0 replies; only message in thread
From: Stefan Monnier @ 2013-02-11 22:26 UTC (permalink / raw)
To: 13689
[-- Attachment #1: Type: text/plain, Size: 57 bytes --]
Forwarding so as to get a bug-number.
Stefan
[-- Attachment #2: Type: message/rfc822, Size: 4930 bytes --]
[-- Attachment #2.1.1: Type: text/plain, Size: 266 bytes --]
Aidan Gauland <aidalgol@no8wireless.co.nz> writes:
> `erc-match-message' truncates the beginning of ACTION messages. This
> should fix it, but I'm not certain that I have not missed any obscure
> edge cases.
>
> –Aidan
Aaaaand here's the patch I forgot.
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2.1.2: erc-match ACTION patch --]
[-- Type: text/x-diff, Size: 627 bytes --]
=== modified file 'lisp/erc/erc-match.el'
--- lisp/erc/erc-match.el 2013-01-02 16:13:04 +0000
+++ lisp/erc/erc-match.el 2013-02-11 18:36:54 +0000
@@ -454,7 +454,15 @@
(match-end 0)))
(message (buffer-substring (if (and nick-end
(<= (+ 2 nick-end) (point-max)))
- (+ 2 nick-end)
+ (+ nick-end
+ ;; Message starts 2 characters after
+ ;; the nick except for CTCP ACTION
+ ;; messages.
+ (if (string= "* "
+ (buffer-substring (- nick-beg 2)
+ nick-beg))
+ 1
+ 2))
(point-min))
(point-max))))
(when (and vector
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2013-02-11 22:26 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-02-11 22:26 bug#13689: [Aidan Gauland] Re: ERC match ACTION patch Stefan Monnier
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).