[Top][All Lists]

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

Re: rcirc multiline nick adding

From: Björn Lindström
Subject: Re: rcirc multiline nick adding
Date: Thu, 19 Apr 2007 02:56:16 +0200
User-agent: Gnus/5.110006 (No Gnus v0.6) Emacs/22.0.95 (gnu/linux)

Nic James Ferrier <address@hidden>:

> Miles Bader <address@hidden> writes:
>> 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...
> Well... with me it always is a nick. And it's vital that it be put
> in.
> Sending multilines through bitlebee without it is tricky.
> Not sure there's another way to tell it if is a nick or not which is
> partly why I pasted it here; maybe someone will have an idea.

How about instead of doing this automagically, make this a text
editing command for multiline mode?

I.e. pressing C-c something inserts a nick followed by colon on each line.

reply via email to

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