From: Miles Bader <miles@gnu.org>
To: Nic James Ferrier <nferrier@tapsellferrier.co.uk>
Cc: emacs-devel@gnu.org
Subject: Re: rcirc multiline nick adding
Date: Thu, 19 Apr 2007 09:31:19 +0900 [thread overview]
Message-ID: <873b2xi4rs.fsf@catnip.gol.com> (raw)
In-Reply-To: <877is9265r.fsf@kanga.tapsellferrier.co.uk> (Nic James Ferrier's message of "Wed\, 18 Apr 2007 13\:55\:44 +0100")
Nic James Ferrier <nferrier@tapsellferrier.co.uk> 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]
next prev parent reply other threads:[~2007-04-19 0:31 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-04-18 12:55 rcirc multiline nick adding Nic James Ferrier
2007-04-19 0:31 ` Miles Bader [this message]
2007-04-19 0:42 ` Nic James Ferrier
2007-04-19 0:56 ` Björn Lindström
2007-04-19 1:16 ` Nic James Ferrier
2007-04-19 5:19 ` Miles Bader
2007-04-19 2:38 ` Richard Stallman
2007-04-19 8:06 ` Nic James Ferrier
2007-04-19 23:17 ` Richard Stallman
2007-04-19 23:35 ` Nic James Ferrier
-- strict thread matches above, loose matches on Subject: below --
2007-04-21 3:07 Ryan Yeske
2007-04-21 18:25 ` Richard Stallman
2007-04-22 5:23 ` Ryan Yeske
2007-04-22 9:10 ` Nic James Ferrier
2007-04-23 3:47 ` Richard Stallman
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=873b2xi4rs.fsf@catnip.gol.com \
--to=miles@gnu.org \
--cc=emacs-devel@gnu.org \
--cc=nferrier@tapsellferrier.co.uk \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).