* Replacing New Lines
@ 2005-04-06 15:32 exits funnel
2005-04-06 17:34 ` Eli Zaretskii
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: exits funnel @ 2005-04-06 15:32 UTC (permalink / raw)
Hello,
I have a java source file which has through some
interaction with source control become double spaced.
In other words when I look at the file with hexdump, I
see two consecutive LFs everywhere I'd expect to see
only one. I'm running Emacs 21.3.1 on RedHat Linux
and I'm trying to use query-replace to remove the
extraneous LFs but I can't quite get it. Here's what
I'm trying:
M-[SHIFT]-% C-q [ENTER] C-q [ENTER] [ENTER] C-q
[ENTER] [ENTER]
Unfortunately, emacs replaces zero occurances so
obviously I'm doing something wrong. If somone could
straighten me out I'd really appreciate it. Thanks.
-exits
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Replacing New Lines
2005-04-06 15:32 Replacing New Lines exits funnel
@ 2005-04-06 17:34 ` Eli Zaretskii
2005-04-06 17:44 ` Peter Dyballa
2005-04-06 17:51 ` Kevin Rodgers
2 siblings, 0 replies; 4+ messages in thread
From: Eli Zaretskii @ 2005-04-06 17:34 UTC (permalink / raw)
> Comment: DomainKeys? See http://antispam.yahoo.com/domainkeys
> Date: Wed, 6 Apr 2005 08:32:26 -0700 (PDT)
> From: exits funnel <exitsfunnel@yahoo.com>
>
> I'm trying:
>
> M-[SHIFT]-% C-q [ENTER] C-q [ENTER] [ENTER] C-q
> [ENTER] [ENTER]
>
> Unfortunately, emacs replaces zero occurances so
> obviously I'm doing something wrong.
The LF character is Ctrl-J, whereas Enter is Ctrl-M. So you should
use "C-q C-j" instead of "C-q [ENTER]", and the command will do what
you want.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Replacing New Lines
2005-04-06 15:32 Replacing New Lines exits funnel
2005-04-06 17:34 ` Eli Zaretskii
@ 2005-04-06 17:44 ` Peter Dyballa
2005-04-06 17:51 ` Kevin Rodgers
2 siblings, 0 replies; 4+ messages in thread
From: Peter Dyballa @ 2005-04-06 17:44 UTC (permalink / raw)
Cc: help-gnu-emacs
Am 06.04.2005 um 17:32 schrieb exits funnel:
> M-[SHIFT]-% C-q [ENTER] C-q [ENTER] [ENTER] C-q
> [ENTER] [ENTER]
>
RET is C-q C-m, LF is C-q C-j. You can check a character with C-x = or,
if it's more into Unicode, C-u C-x =.
--
Greetings
Pete
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Replacing New Lines
2005-04-06 15:32 Replacing New Lines exits funnel
2005-04-06 17:34 ` Eli Zaretskii
2005-04-06 17:44 ` Peter Dyballa
@ 2005-04-06 17:51 ` Kevin Rodgers
2 siblings, 0 replies; 4+ messages in thread
From: Kevin Rodgers @ 2005-04-06 17:51 UTC (permalink / raw)
exits funnel wrote:
> Hello,
>
> I have a java source file which has through some
> interaction with source control become double spaced.
> In other words when I look at the file with hexdump, I
> see two consecutive LFs everywhere I'd expect to see
> only one. I'm running Emacs 21.3.1 on RedHat Linux
> and I'm trying to use query-replace to remove the
> extraneous LFs but I can't quite get it. Here's what
> I'm trying:
>
> M-[SHIFT]-% C-q [ENTER] C-q [ENTER] [ENTER] C-q
> [ENTER] [ENTER]
>
> Unfortunately, emacs replaces zero occurances so
> obviously I'm doing something wrong. If somone could
> straighten me out I'd really appreciate it. Thanks.
Use `C-q C-j' instead of `C-q [ENTER]'.
The Enter key is the <return> function key aka the RET character aka C-m.
LFD is C-j.
--
Kevin Rodgers
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2005-04-06 17:51 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-04-06 15:32 Replacing New Lines exits funnel
2005-04-06 17:34 ` Eli Zaretskii
2005-04-06 17:44 ` Peter Dyballa
2005-04-06 17:51 ` Kevin Rodgers
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.