diff options
| author | Stefan Monnier | 2013-02-11 17:53:36 -0500 |
|---|---|---|
| committer | Stefan Monnier | 2013-02-11 17:53:36 -0500 |
| commit | 6659b59ccb7909a07f71a0143fd9d85e60b8e414 (patch) | |
| tree | bd978ed3b74bc54990bef5053dfeb72ccdeffed1 | |
| parent | b09a48104f3459c0a849cf29716fce3493b26462 (diff) | |
| download | emacs-6659b59ccb7909a07f71a0143fd9d85e60b8e414.tar.gz emacs-6659b59ccb7909a07f71a0143fd9d85e60b8e414.zip | |
Aidan Gauland <aidalgol@no8wireless.co.nz>
Fixes: debbugs:13689
* lisp/erc/erc-match.el (erc-match-message): Don't truncate action messages.
| -rw-r--r-- | lisp/ChangeLog | 2 | ||||
| -rw-r--r-- | lisp/erc/erc-match.el | 20 |
2 files changed, 15 insertions, 7 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 7995703e4a5..fd2186fcfb2 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,7 +1,7 @@ | |||
| 1 | 2013-02-11 Elias Pipping <pipping@lavabit.com> | 1 | 2013-02-11 Elias Pipping <pipping@lavabit.com> |
| 2 | 2 | ||
| 3 | * doc-view.el (doc-view-current-cache-dir): Beware % escapes | 3 | * doc-view.el (doc-view-current-cache-dir): Beware % escapes |
| 4 | (bug#13679). | 4 | (bug#13689). |
| 5 | 5 | ||
| 6 | 2013-02-11 Stefan Monnier <monnier@iro.umontreal.ca> | 6 | 2013-02-11 Stefan Monnier <monnier@iro.umontreal.ca> |
| 7 | 7 | ||
diff --git a/lisp/erc/erc-match.el b/lisp/erc/erc-match.el index 7ca86b5ac95..1da838557f7 100644 --- a/lisp/erc/erc-match.el +++ b/lisp/erc/erc-match.el | |||
| @@ -447,16 +447,24 @@ Use this defun with `erc-insert-modify-hook'." | |||
| 447 | (nth 0 (erc-parse-user nickuserhost)))) | 447 | (nth 0 (erc-parse-user nickuserhost)))) |
| 448 | (old-pt (point)) | 448 | (old-pt (point)) |
| 449 | (nick-beg (and nickname | 449 | (nick-beg (and nickname |
| 450 | (re-search-forward (regexp-quote nickname) | 450 | (re-search-forward "\\(\\* \\)?"(regexp-quote nickname) |
| 451 | (point-max) t) | 451 | (point-max) t) |
| 452 | (match-beginning 0))) | 452 | (match-beginning 0))) |
| 453 | (nick-end (when nick-beg | 453 | (nick-end (when nick-beg |
| 454 | (match-end 0))) | 454 | (match-end 0))) |
| 455 | (message (buffer-substring (if (and nick-end | 455 | (message (buffer-substring |
| 456 | (<= (+ 2 nick-end) (point-max))) | 456 | (if (and nick-end |
| 457 | (+ 2 nick-end) | 457 | (<= (+ 2 nick-end) (point-max))) |
| 458 | (point-min)) | 458 | (+ nick-end |
| 459 | (point-max)))) | 459 | ;; Message starts 2 characters after the nick except |
| 460 | ;; for CTCP ACTION messages. | ||
| 461 | (if (string= "* " | ||
| 462 | (buffer-substring (- nick-beg 2) | ||
| 463 | nick-beg)) | ||
| 464 | 1 | ||
| 465 | 2)) | ||
| 466 | (point-min)) | ||
| 467 | (point-max)))) | ||
| 460 | (when (and vector | 468 | (when (and vector |
| 461 | (not (and erc-match-exclude-server-buffer | 469 | (not (and erc-match-exclude-server-buffer |
| 462 | (erc-server-buffer-p)))) | 470 | (erc-server-buffer-p)))) |