From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Miles Bader Newsgroups: gmane.emacs.devel Subject: Re: rcirc multiline nick adding Date: Thu, 19 Apr 2007 09:31:19 +0900 Message-ID: <873b2xi4rs.fsf@catnip.gol.com> References: <877is9265r.fsf@kanga.tapsellferrier.co.uk> Reply-To: Miles Bader NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1176942704 6896 80.91.229.12 (19 Apr 2007 00:31:44 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 19 Apr 2007 00:31:44 +0000 (UTC) Cc: emacs-devel@gnu.org To: Nic James Ferrier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Apr 19 02:31:38 2007 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1HeKYj-0007Wb-NA for ged-emacs-devel@m.gmane.org; Thu, 19 Apr 2007 02:31:37 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HeKdc-0000gH-Kl for ged-emacs-devel@m.gmane.org; Wed, 18 Apr 2007 20:36:40 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HeKdZ-0000g1-I8 for emacs-devel@gnu.org; Wed, 18 Apr 2007 20:36:37 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HeKdX-0000fp-3C for emacs-devel@gnu.org; Wed, 18 Apr 2007 20:36:36 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HeKdW-0000fm-U6 for emacs-devel@gnu.org; Wed, 18 Apr 2007 20:36:34 -0400 Original-Received: from smtp02.dentaku.gol.com ([203.216.5.72]) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1HeKYc-0000T7-C1; Wed, 18 Apr 2007 20:31:30 -0400 Original-Received: from 203-216-97-156.dsl.gol.ne.jp ([203.216.97.156] helo=catnip.gol.com) by smtp02.dentaku.gol.com with esmtpa (Dentaku) id 1HeKYU-000834-Fk; Thu, 19 Apr 2007 09:31:22 +0900 Original-Received: by catnip.gol.com (Postfix, from userid 1000) id 58F772F43; Thu, 19 Apr 2007 09:31:19 +0900 (JST) System-Type: i686-pc-linux-gnu In-Reply-To: <877is9265r.fsf@kanga.tapsellferrier.co.uk> (Nic James Ferrier's message of "Wed\, 18 Apr 2007 13\:55\:44 +0100") Original-Lines: 17 X-Abuse-Complaints: abuse@gol.com X-detected-kernel: Linux 2.6, seldom 2.4 (older, 4) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:69600 Archived-At: Nic James Ferrier 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]