unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* new line
@ 2002-06-10 16:49 Carlisle Thacker
  2002-06-10 17:18 ` bji-emacs
  0 siblings, 1 reply; 6+ messages in thread
From: Carlisle Thacker @ 2002-06-10 16:49 UTC (permalink / raw)


How do I search and replace replace blank spaces with line breaks?
I'm using emacs 20.2.1 (sparc-sun-solaris2.6, X toolkit).

Thanks,

Carlisle

********************************************************
* William Carlisle Thacker                             *
*                                                      *
* Atlantic Oceanographic and Meteorological Laboratory *
* 4301 Rickenbacker Causeway                           *
* Miami, Florida 33149 USA                             *
* Office:  (305) 361-4323                              *
* Fax:     (305) 361-4392                              *
********************************************************

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: new line
  2002-06-10 16:49 new line Carlisle Thacker
@ 2002-06-10 17:18 ` bji-emacs
  2002-06-10 17:57   ` Carlisle Thacker
  0 siblings, 1 reply; 6+ messages in thread
From: bji-emacs @ 2002-06-10 17:18 UTC (permalink / raw)


Carlisle Thacker wrote:
> 
> How do I search and replace replace blank spaces with line breaks?
> I'm using emacs 20.2.1 (sparc-sun-solaris2.6, X toolkit).

There may be better ways, but what I usually do to query-replace stuff that 
I can't type, is M-x query-replace, then copy the to-be-replaced text out of 
my buffer, paste it into the mini buffer, hit return, then copy the 
to-replace-with text out of my buffer, paste it into the mini buffer, and 
hit return to start the query-replace.  Essentially what I am talking about 
is copying the text directly out of the buffer and into the mini buffer for 
stuff that I can't type easily (it works well for newlines, DOS end of line 
characters, etc). 

Like I said, there is probably a much more sophisticated way to type special 
characters into the mini buffer during a query replace, but I don't know 
what it is. 

Hope this helps, and best wishes,
Bryan 

 ------------------------------------------------------------------------
Bryan Ischo             bryan@ischo.com                   1992 Mazda 929
Cupertino, CA, USA      http://www.ischo.com            RedHat Linux 7.1
 ------------------------------------------------------------------------ 

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: new line
  2002-06-10 17:18 ` bji-emacs
@ 2002-06-10 17:57   ` Carlisle Thacker
  2002-06-10 18:56     ` Marco Baringer
  0 siblings, 1 reply; 6+ messages in thread
From: Carlisle Thacker @ 2002-06-10 17:57 UTC (permalink / raw)
  Cc: help-gnu-emacs

Bryan,

Thanks.  Copying the line break with the mouse from the text into the
mini buffer worked.

Carlisle

> > How do I search and replace replace blank spaces with line breaks?
> > I'm using emacs 20.2.1 (sparc-sun-solaris2.6, X toolkit).
> 
> There may be better ways, but what I usually do to query-replace stuff that 
> I can't type, is M-x query-replace, then copy the to-be-replaced text out of 
> my buffer, paste it into the mini buffer, hit return, then copy the 
> to-replace-with text out of my buffer, paste it into the mini buffer, and 
> hit return to start the query-replace.  Essentially what I am talking about 
> is copying the text directly out of the buffer and into the mini buffer for 
> stuff that I can't type easily (it works well for newlines, DOS end of line 
> characters, etc). 
> 
> Like I said, there is probably a much more sophisticated way to type special 
> characters into the mini buffer during a query replace, but I don't know 
> what it is. 
> 
> Hope this helps, and best wishes,
> Bryan 

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: new line
  2002-06-10 17:57   ` Carlisle Thacker
@ 2002-06-10 18:56     ` Marco Baringer
  2002-06-10 19:21       ` Carlisle Thacker
  2002-06-11  3:35       ` Receiving Mail in Emacs Charles Muller
  0 siblings, 2 replies; 6+ messages in thread
From: Marco Baringer @ 2002-06-10 18:56 UTC (permalink / raw)



C-q is a beautiful key....

for example if we want a new line we do C-q C-j (C-q RET gives us (me
really, i can't speak for others) ^M which isn't what we(i) want). so

M-x replace-regexp RET SPACE + RET C-q C-j

will replace all sequences of spaces with new lines.

Carlisle Thacker <thacker@aoml.noaa.gov> writes:

> How do I search and replace replace blank spaces with line breaks?
> I'm using emacs 20.2.1 (sparc-sun-solaris2.6, X toolkit).

-- 
-Marco
Ring the bells that still can ring.
Forget the perfect offering.
There's a crack in everything.
It's how the light gets in.
     -Isonard Cohen

p.s. - if anybody wants too tell me why i have to use C-j and can't
use RET i'd be happy to listen...

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: new line
  2002-06-10 18:56     ` Marco Baringer
@ 2002-06-10 19:21       ` Carlisle Thacker
  2002-06-11  3:35       ` Receiving Mail in Emacs Charles Muller
  1 sibling, 0 replies; 6+ messages in thread
From: Carlisle Thacker @ 2002-06-10 19:21 UTC (permalink / raw)
  Cc: help-gnu-emacs

Marco,

Thanks.  It worked for me too.  Couldn't find any help on C-q C-j in
the manual.

Carlisle

> C-q is a beautiful key....
> 
> for example if we want a new line we do C-q C-j (C-q RET gives us (me
> really, i can't speak for others) ^M which isn't what we(i) want). so
> 
> M-x replace-regexp RET SPACE + RET C-q C-j
> 
> will replace all sequences of spaces with new lines.
> 
> Carlisle Thacker <thacker@aoml.noaa.gov> writes:
> 
> > How do I search and replace replace blank spaces with line breaks?
> > I'm using emacs 20.2.1 (sparc-sun-solaris2.6, X toolkit).
> 
> -- 
> -Marco
> Ring the bells that still can ring.
> Forget the perfect offering.
> There's a crack in everything.
> It's how the light gets in.
>      -Isonard Cohen
> 
> p.s. - if anybody wants too tell me why i have to use C-j and can't
> use RET i'd be happy to listen...

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Receiving Mail in Emacs
  2002-06-10 18:56     ` Marco Baringer
  2002-06-10 19:21       ` Carlisle Thacker
@ 2002-06-11  3:35       ` Charles Muller
  1 sibling, 0 replies; 6+ messages in thread
From: Charles Muller @ 2002-06-11  3:35 UTC (permalink / raw)


I'm trying to use Emacs for e-mail in Red Hat 7.3. I have succeeded in
sending mail after adding some lines with my username and pop server
info to the .emacs file. But I still can't receive mail, because the
mail retriever keeps looking for chuck@localhost.localdomain.

Does someone know how to set this?

Regards,

Charles Muller
Faculty of Humanities
Toyo Gakuen University

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2002-06-11  3:35 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-06-10 16:49 new line Carlisle Thacker
2002-06-10 17:18 ` bji-emacs
2002-06-10 17:57   ` Carlisle Thacker
2002-06-10 18:56     ` Marco Baringer
2002-06-10 19:21       ` Carlisle Thacker
2002-06-11  3:35       ` Receiving Mail in Emacs Charles Muller

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).