Re: mutliline input newlines replaced with spaces
Ted Guild <[email protected]> 31 Jan 2003 22:43:11 -0500
| Newsgroups | gmane.emacs.zenirc.bugs |
|---|---|
| Message-ID | <[email protected]> |
Noah Friedman <[email protected]> writes: > The current input mechanism works by sending all the text from the process > mark to the end of the line point is on, as a single message (which may be > split if it exceeds the maximum message length in the irc protocol). > > The practical upshot of that mechanism is that if you want to send text > line-by-line, then paste what you want into the buffer, go back up to the > beginning, and hit return on each line. Since point advances > automatically, you can just hit return a bunch of times with no > intermediate motion commands. Ah with the point advancing that's perfectly reasonable. > Be warned that rapidly sending a bunch of lines can get you knocked off > the server for "flooding", or at the very least will throttle your > connection so that you are very lagged. Yeah I learned what flooding is the hard way a long time ago ;-) Thanks for the reply, I'm satisfied. My experiments with (while (string-match "\n" string posn) (aset string (match-beginning 0) 32) (setq posn (match-end 0))) in (defun zenirc-send-line () weren't successful anyway. I was contemplating going for splitting on \n and recursively calling zenirc-send-line. Cheers, -- Ted Guild <[email protected]> http://www.guilds.net