emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: rcirc multiline nick adding


From: Miles Bader
Subject: Re: rcirc multiline nick adding
Date: Thu, 19 Apr 2007 09:31:19 +0900

Nic James Ferrier <address@hidden> writes:
> +  ;; Is there a nick at the start of the multiline buffer? if so add it to 
> all the lines
> +  (goto-char (point-min))
> +  (if (looking-at "^[^ :]+: ")
> +      (let ((nick (match-string 0)))
> +        (while (re-search-forward "\n" nil t)
> +          (replace-match (concat "\n" nick)))))

This seems dangerous; what if it's not a nick?  It seems quite likely to
have annoying results...

-Miles

-- 
"Nah, there's no bigger atheist than me.  Well, I take that back.
I'm a cancer screening away from going agnostic and a biopsy away
from full-fledged Christian."  [Adam Carolla]




reply via email to

[Prev in Thread] Current Thread [Next in Thread]