unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* replacing endline
@ 2006-04-20  0:18 sarah.dzion
  2006-04-20  1:15 ` Katsumi Yamaoka
                   ` (5 more replies)
  0 siblings, 6 replies; 18+ messages in thread
From: sarah.dzion @ 2006-04-20  0:18 UTC (permalink / raw)


Hi I want to convert :
72
17
18
19
20
21
22
23
24
25


to

72#17#18#19#20#21#22#23#24#25

how do I do this using replace-string (or something else in emacs)?
basically I do not know how to specify endline in emacs.

Appreciate the help!
Thanks!
-A

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

* Re: replacing endline
  2006-04-20  0:18 replacing endline sarah.dzion
@ 2006-04-20  1:15 ` Katsumi Yamaoka
  2006-04-20  1:17 ` Ye Wenbin
                   ` (4 subsequent siblings)
  5 siblings, 0 replies; 18+ messages in thread
From: Katsumi Yamaoka @ 2006-04-20  1:15 UTC (permalink / raw)


>>>>> In <1145492327.354125.133060@j33g2000cwa.googlegroups.com>
>>>>>	sarah.dzion@gmail.com wrote:

> Hi I want to convert :
> 72
> 17
> 18
> 19
> 20
> 21
> 22
> 23
> 24
> 25

> to

> 72#17#18#19#20#21#22#23#24#25

> how do I do this using replace-string (or something else in emacs)?
> basically I do not know how to specify endline in emacs.

You can enter the newline (endline) character in the minibuffer
using C-q and then C-j.

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

* Re: replacing endline
  2006-04-20  0:18 replacing endline sarah.dzion
  2006-04-20  1:15 ` Katsumi Yamaoka
@ 2006-04-20  1:17 ` Ye Wenbin
  2006-04-20  1:22 ` Fredrik Bulow
                   ` (3 subsequent siblings)
  5 siblings, 0 replies; 18+ messages in thread
From: Ye Wenbin @ 2006-04-20  1:17 UTC (permalink / raw)
  Cc: help-gnu-emacs@gnu.org


You can use query-and-replace to do it:
M-% C-q C-j RET # RET

On 19 Apr 2006 17:18:47 -0700, <sarah.dzion@gmail.com> wrote:

>
> Hi I want to convert :
> 72
> 17
> 18
> 19
> 20
> 21
> 22
> 23
> 24
> 25
>
>
> to
>
> 72#17#18#19#20#21#22#23#24#25
>
> how do I do this using replace-string (or something else in emacs)?
> basically I do not know how to specify endline in emacs.
>
> Appreciate the help!
> Thanks!
> -A
>
> _______________________________________________
> help-gnu-emacs mailing list
> help-gnu-emacs@gnu.org
> http://lists.gnu.org/mailman/listinfo/help-gnu-emacs
>



-- 
Using Opera's revolutionary e-mail client: http://www.opera.com/m2/

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

* Re: replacing endline
  2006-04-20  0:18 replacing endline sarah.dzion
  2006-04-20  1:15 ` Katsumi Yamaoka
  2006-04-20  1:17 ` Ye Wenbin
@ 2006-04-20  1:22 ` Fredrik Bulow
  2006-04-20  1:44 ` Fredrik Bulow
                   ` (2 subsequent siblings)
  5 siblings, 0 replies; 18+ messages in thread
From: Fredrik Bulow @ 2006-04-20  1:22 UTC (permalink / raw)


sarah.dzion@gmail.com writes:

> Hi I want to convert :
> 72
> 17
> 18
> 19
> 20
> 21
> 22
> 23
> 24
> 25
>
>
> to
>
> 72#17#18#19#20#21#22#23#24#25
>
> how do I do this using replace-string (or something else in emacs)?
> basically I do not know how to specify endline in emacs.
>
> Appreciate the help!
> Thanks!
> -A

The simplest way to do what you want is to use a macro. You use 
C-x ( to start recording a macro, 
C-x ) to stop recording it and 
C-e to execute the recorded macro

Since I am such a newbie friendly person I'll walk you through the
whole process. Don't be scared because what you see below is a nine
step list. It looks complicated because I explain *everything*. The
process is in fact very simple.

1. Place your marker at the beginning of the second line (i.e. in
   front of or on top of the 1 in 17).

2. Press C-x and then press ( to start recording a macro. Don't hold
   down C-x when you press ), instead, hold down C (which is the key
   marked Ctrl and press x, let both keys up end then press ")" ) 

3. Press backspace. This will take 17 to the line with 72 on it and
   the marker will still be on top of the 1 in 17. The text on this
   line should now be 7217.

4. Press # to type a #. The text on the line is now 72#17

5. Press arrow down (or C-n) to go to the next line.

6. Press C-a to go to the first beginning of that line which is "where
   you started".

7. Pres C-x and then press ) to stop recording the macro.

8. Now press C-x and then e to see the computer automatically do the
   things you've recorded into the macro and bring the 18 up to the
   line with #'s on it.

9. Now you can either press C-x e seven times to finish the rest of
   the lines OR press C-u 7 C-x e which means run macro eight
   times. Now you're done!

Note: when I need to run a macro a few hundred times over, then I
rarely count the lines instead I run the macro 9 times or so a several
times until I can easily see how many more iterations that are needed.

Now you know how to make macros and you can apply this to most
repetitive tasks you need to do during the rest of your life! This
will save you *lots* of time. By the way, you can use all (well
almost) normal emacs commandos in your macros.

Hope this was helpful and good luck!

/Fredrik

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

* Re: replacing endline
  2006-04-20  0:18 replacing endline sarah.dzion
                   ` (2 preceding siblings ...)
  2006-04-20  1:22 ` Fredrik Bulow
@ 2006-04-20  1:44 ` Fredrik Bulow
  2006-04-20  1:56 ` Fredrik Bulow
  2006-04-20 18:54 ` kgold
  5 siblings, 0 replies; 18+ messages in thread
From: Fredrik Bulow @ 2006-04-20  1:44 UTC (permalink / raw)


sarah.dzion@gmail.com writes:

> Hi I want to convert :
> 72
> 17
> 18
> 19
> 20
> 21
> 22
> 23
> 24
> 25
>
>
> to
>
> 72#17#18#19#20#21#22#23#24#25
>
> how do I do this using replace-string (or something else in emacs)?
> basically I do not know how to specify endline in emacs.
>
> Appreciate the help!
> Thanks!
> -A

A more elegant and less general way would of course be to use regexps
for this. For some reason 'query-replace-regexp' seems to choke on
expressions like \n or $^ when I try it. In fact it can't even convert
#'s to newlines. Regexps really ougth to do this but it doesn't work
for me. :-/

/Fredrik

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

* Re: replacing endline
  2006-04-20  0:18 replacing endline sarah.dzion
                   ` (3 preceding siblings ...)
  2006-04-20  1:44 ` Fredrik Bulow
@ 2006-04-20  1:56 ` Fredrik Bulow
  2006-04-20  6:32   ` Thien-Thi Nguyen
  2006-04-20 10:21   ` Peter Dyballa
  2006-04-20 18:54 ` kgold
  5 siblings, 2 replies; 18+ messages in thread
From: Fredrik Bulow @ 2006-04-20  1:56 UTC (permalink / raw)


sarah.dzion@gmail.com writes:

> Hi I want to convert :
> 72
> 17
> 18
> 19
> 20
> 21
> 22
> 23
> 24
> 25
>
>
> to
>
> 72#17#18#19#20#21#22#23#24#25
>
> how do I do this using replace-string (or something else in emacs)?
> basically I do not know how to specify endline in emacs.
>
> Appreciate the help!
> Thanks!
> -A

Ok, this is my third article on this. 

writing something like

(query-replace  "\n" "#")

and then pressing C-x C-e after it does the trick! However, calling
the same function interactively and providing the arguments \n and #
doesn't do the trick at all. I have no idea why though. Perhaps
someone who know a bit more about lisp can shed some light on this?

I don't see why this behavior shouldn't be labeled as a bug.

/Fredrik

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

* Re: replacing endline
  2006-04-20  1:56 ` Fredrik Bulow
@ 2006-04-20  6:32   ` Thien-Thi Nguyen
  2006-04-20 14:43     ` Fredrik Bulow
  2006-04-20 10:21   ` Peter Dyballa
  1 sibling, 1 reply; 18+ messages in thread
From: Thien-Thi Nguyen @ 2006-04-20  6:32 UTC (permalink / raw)


Fredrik Bulow <kaliumfredrik@gmail.com> writes:

> I don't see why this behavior shouldn't be labeled as a bug.

if you label that behavior as a bug, then you have introduced two
"bugs", not just one.  the first bug is in your mental model of how
emacs should work, and the second, the one labeled as suggested.  if
you pre-emptively fix the first bug, perhaps the second bug will, as a
result, vanish as well.

applying the above thought process to various behaviors, you may
be able to find and remove many bugs in the future.  good luck!

thi

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

* Re: replacing endline
  2006-04-20  1:56 ` Fredrik Bulow
  2006-04-20  6:32   ` Thien-Thi Nguyen
@ 2006-04-20 10:21   ` Peter Dyballa
  1 sibling, 0 replies; 18+ messages in thread
From: Peter Dyballa @ 2006-04-20 10:21 UTC (permalink / raw)
  Cc: help-gnu-emacs


Am 20.04.2006 um 03:56 schrieb Fredrik Bulow:

> (query-replace  "\n" "#")

Why can't you use C-q C-j instead of \n? Or replace-string, since you  
know what you want?

--
Greetings

   Pete

Time is an illusion. Lunchtime, doubly so.

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

* Re: replacing endline
  2006-04-20  6:32   ` Thien-Thi Nguyen
@ 2006-04-20 14:43     ` Fredrik Bulow
  2006-04-20 16:11       ` Lennart Borgman
                         ` (3 more replies)
  0 siblings, 4 replies; 18+ messages in thread
From: Fredrik Bulow @ 2006-04-20 14:43 UTC (permalink / raw)


>> I don't see why this behavior shouldn't be labeled as a bug.
>
>if you label that behavior as a bug, then you have introduced two
>"bugs", not just one.  the first bug is in your mental model of how
>emacs should work, and the second, the one labeled as suggested.  if
>you pre-emptively fix the first bug, perhaps the second bug will, as a
>result, vanish as well.
>
>applying the above thought process to various behaviors, you may
>be able to find and remove many bugs in the future.  good luck!
>
>thi

Thanks for that totally uncalled for insult. Of course, any bug can be
removed by changing your expectations on how a program should behave
to the way a program actually behaves. "It's not a bug that something
crashes, it is suppose to crash, and how do I know that? Well, I tried
and it crashed!." Usually, if something behaves in an unexpected way I
think it is a bug unless there is a good reason why the current
behaviour makes more sense than what I expected. I was kind of hoping
that someone would give me the good reason why there should be two
different behaviours.

So once again, what is the good reason that (query-replace "\n" "#")
behave differenty than calling the same function with its keybinding
and providing it interactively with the same arguments?

/Fredrik

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

* Re: replacing endline
  2006-04-20 14:43     ` Fredrik Bulow
@ 2006-04-20 16:11       ` Lennart Borgman
  2006-04-20 18:16       ` Eli Zaretskii
                         ` (2 subsequent siblings)
  3 siblings, 0 replies; 18+ messages in thread
From: Lennart Borgman @ 2006-04-20 16:11 UTC (permalink / raw)
  Cc: help-gnu-emacs, Emacs Devel

Fredrik Bulow wrote:
>>> I don't see why this behavior shouldn't be labeled as a bug.
>>>       
>> if you label that behavior as a bug, then you have introduced two
>> "bugs", not just one.  the first bug is in your mental model of how
>> emacs should work, and the second, the one labeled as suggested.  if
>> you pre-emptively fix the first bug, perhaps the second bug will, as a
>> result, vanish as well.
>>
>> applying the above thought process to various behaviors, you may
>> be able to find and remove many bugs in the future.  good luck!
>>
>> thi
>>     
>
> Thanks for that totally uncalled for insult.
If thi thinks there are two bugs then I think there are three now since 
I agree with Fredrik. Or should it maybe be four thi, if perhaps you are 
a bit wrong too?;-)

>
> So once again, what is the good reason that (query-replace "\n" "#")
> behave differenty than calling the same function with its keybinding
> and providing it interactively with the same arguments?
>   
I also have difficulties understanding the prompting in cases like this. 
I have nothing against the "C-q C-j" solution but it is not the first I 
think of. Is there any reason not to just convert the input as needed so 
that it in the interactive case works as Fredrik and I expect it to do?

This would make it easier at least for relative beginners. Could it be 
done in such a way that it is still easy for those who are accustomed to 
the current behaviour?

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

* Re: replacing endline
  2006-04-20 14:43     ` Fredrik Bulow
  2006-04-20 16:11       ` Lennart Borgman
@ 2006-04-20 18:16       ` Eli Zaretskii
       [not found]       ` <mailman.650.1145549499.9609.help-gnu-emacs@gnu.org>
  2006-04-20 23:38       ` B. T. Raven
  3 siblings, 0 replies; 18+ messages in thread
From: Eli Zaretskii @ 2006-04-20 18:16 UTC (permalink / raw)


> From: Fredrik Bulow <kaliumfredrik@gmail.com>
> Date: Fri, 21 Apr 2006 00:43:46 +1000
> 
> So once again, what is the good reason that (query-replace "\n" "#")
> behave differenty than calling the same function with its keybinding
> and providing it interactively with the same arguments?

Is that an honest question, meaning that you _really_ don't know why
typing literally 2 characters `\' and `n' at the Emacs prompt doesn't
produce a newline, while the string "\n" does?  Or do you know that,
but are suggesting that the former is a misfeature?

I'm sorry, but with all the fancy talk in this thread, one can no
longer no who sincerely wants to know and who is merely being
facetious.

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

* Re: replacing endline
  2006-04-20  0:18 replacing endline sarah.dzion
                   ` (4 preceding siblings ...)
  2006-04-20  1:56 ` Fredrik Bulow
@ 2006-04-20 18:54 ` kgold
  5 siblings, 0 replies; 18+ messages in thread
From: kgold @ 2006-04-20 18:54 UTC (permalink / raw)


I agree with Fredrik.

While there's certainly a 'correct' way to do this, emacs keyboard 
macros are great for these unusual repetitive tasks.  You could define 
the macro and execute it much less time than you could read the manual 
to learn the right way.

If it's a task you do constantly, of course learn how to do it.  But for 
one-time edits, keyboard macros are handy.

sarah.dzion@gmail.com wrote:
> Hi I want to convert :
> 72
> 17
> 18
> 19
> 20
> 21
> 22
> 23
> 24
> 25
> 
> 
> to
> 
> 72#17#18#19#20#21#22#23#24#25
> 
> how do I do this using replace-string (or something else in emacs)?
> basically I do not know how to specify endline in emacs.
> 
> Appreciate the help!
> Thanks!
> -A
> 

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

* Re: replacing endline
       [not found]       ` <mailman.650.1145549499.9609.help-gnu-emacs@gnu.org>
@ 2006-04-20 19:25         ` Harald Hanche-Olsen
  2006-04-20 22:19           ` Lennart Borgman
       [not found]           ` <mailman.671.1145571606.9609.help-gnu-emacs@gnu.org>
  2006-04-21  0:53         ` Thien-Thi Nguyen
  1 sibling, 2 replies; 18+ messages in thread
From: Harald Hanche-Olsen @ 2006-04-20 19:25 UTC (permalink / raw)


+ Lennart Borgman <lennart.borgman.073@student.lu.se>:

| Fredrik Bulow wrote:
|> So once again, what is the good reason that (query-replace "\n" "#")
|> behave differenty than calling the same function with its keybinding
|> and providing it interactively with the same arguments?
|>   
| I also have difficulties understanding the prompting in cases like
| this. I have nothing against the "C-q C-j" solution but it is not
| the first I think of. Is there any reason not to just convert the
| input as needed so that it in the interactive case works as Fredrik
| and I expect it to do?

Uh.  You would like to be able to type M-x query-replace RET \n RET #
RET and have that \n behave like it was typed between quotes in a lisp
expression?  That, to me, is very unintuitive behaviour.  The \n
syntax is a special escape for the convenience of programmers.  It
should not be allowed to pollute interactive commands.  The difficulty
here comes from the very fact that entering a string in a program, and
supplying one to an interactive command, are two very different
things, and they need different escape conventions to enter special
characters like the newline.  Once you understand that, the difficulty
should indeed evaporate.  You might of course disagree with the choice
of escape conventions, but I think it would confuse people more to use
the backslash as an escape character in the interactive setting.

-- 
* Harald Hanche-Olsen     <URL:http://www.math.ntnu.no/~hanche/>
- It is undesirable to believe a proposition
  when there is no ground whatsoever for supposing it is true.
  -- Bertrand Russell

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

* Re: replacing endline
  2006-04-20 19:25         ` Harald Hanche-Olsen
@ 2006-04-20 22:19           ` Lennart Borgman
  2006-04-21  7:38             ` Eli Zaretskii
       [not found]           ` <mailman.671.1145571606.9609.help-gnu-emacs@gnu.org>
  1 sibling, 1 reply; 18+ messages in thread
From: Lennart Borgman @ 2006-04-20 22:19 UTC (permalink / raw)
  Cc: help-gnu-emacs

Harald Hanche-Olsen wrote:
> Uh.  You would like to be able to type M-x query-replace RET \n RET #
> RET and have that \n behave like it was typed between quotes in a lisp
> expression?  That, to me, is very unintuitive behaviour.  The \n
> syntax is a special escape for the convenience of programmers.  It
> should not be allowed to pollute interactive commands.  The difficulty
> here comes from the very fact that entering a string in a program, and
> supplying one to an interactive command, are two very different
> things, and they need different escape conventions to enter special
> characters like the newline.  Once you understand that, the difficulty
> should indeed evaporate.  You might of course disagree with the choice
> of escape conventions, but I think it would confuse people more to use
> the backslash as an escape character in the interactive setting.
>   
AFAICS the same escape syntax that are used for strings in elisp could 
be used for strings read in the minibuffer. In princip I mean, not now 
of course. To me it is not unnatural at all. But maybe it is very 
inconvenient? Could you please explain what you mean from that point of 
view?

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

* Re: replacing endline
  2006-04-20 14:43     ` Fredrik Bulow
                         ` (2 preceding siblings ...)
       [not found]       ` <mailman.650.1145549499.9609.help-gnu-emacs@gnu.org>
@ 2006-04-20 23:38       ` B. T. Raven
  3 siblings, 0 replies; 18+ messages in thread
From: B. T. Raven @ 2006-04-20 23:38 UTC (permalink / raw)



"Fredrik Bulow" <kaliumfredrik@gmail.com> wrote in message
news:87acagux25.fsf@gmail.com...
> >> I don't see why this behavior shouldn't be labeled as a bug.
> >
> >if you label that behavior as a bug, then you have introduced two
> >"bugs", not just one.  the first bug is in your mental model of how
> >emacs should work, and the second, the one labeled as suggested.  if
> >you pre-emptively fix the first bug, perhaps the second bug will, as a
> >result, vanish as well.
> >
> >applying the above thought process to various behaviors, you may
> >be able to find and remove many bugs in the future.  good luck!
> >
> >thi
>
> Thanks for that totally uncalled for insult. Of course, any bug can be
> removed by changing your expectations on how a program should behave
> to the way a program actually behaves. "It's not a bug that something
> crashes, it is suppose to crash, and how do I know that? Well, I tried
> and it crashed!." Usually, if something behaves in an unexpected way I
> think it is a bug unless there is a good reason why the current
> behaviour makes more sense than what I expected. I was kind of hoping
> that someone would give me the good reason why there should be two
> different behaviours.
>
> So once again, what is the good reason that (query-replace "\n" "#")
> behave differenty than calling the same function with its keybinding
> and providing it interactively with the same arguments?
>
> /Fredrik

This is one of those wonderful instances where both you and Thi are right.
It is difficult for those far up on the mountainside to see what things
look like down here in the valley. Try playing around with  C-q C-j and
just C-j in *scratch* and in a text-mode buffer.
In
(query-replace "\n" "*")
the "/n" works the same way as it does in
 printf ("Hello World!\n");
It is one of two arguments of type string to the query-replace function
If you put the lines below into *scratch* and then evaluate the form, it
will find the invisible newlines rather than the characters ", \, n, "
M-% will only find those literal characters unless you input a newline as
C-q C-j. Press the n key instead of the space bar to inhibit replacement
with "*". After you play around with this for a while you will agree with
Thi, sort of, which is good enough.


(query-replace "\n" "*")




\n
"\n"
'("\n")

p.s. Remember M-x top-level and C-x n w. It's easy to get lost while
fooling around with C-j in an interactive lisp buffer. Its behaviour
depends on whether or not there are matched parentheses above the point
where it is invoked. I am pretty sure that C-q C-j is a synonym for the
Enter-Return key just about anywhere except inside interactive functions
like M-% and C-M-% where it produces an actual newline in the minibuffer..

("
")

Ed.

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

* Re: replacing endline
       [not found]       ` <mailman.650.1145549499.9609.help-gnu-emacs@gnu.org>
  2006-04-20 19:25         ` Harald Hanche-Olsen
@ 2006-04-21  0:53         ` Thien-Thi Nguyen
  1 sibling, 0 replies; 18+ messages in thread
From: Thien-Thi Nguyen @ 2006-04-21  0:53 UTC (permalink / raw)


Lennart Borgman <lennart.borgman.073@student.lu.se> writes:

> If thi thinks there are two bugs then I think there are three now
> since I agree with Fredrik. Or should it maybe be four thi, if perhaps
> you are a bit wrong too?;-)

agreement and understanding are orthogonal.  whether or not i am wrong
plays no part in emacs' behavior or in OP's self-directed growth -- only
OP's understanding of how expectation and reality (mis-)map matters.

anyway, i'm never a bit wrong (word {m}alignment, you see ;-).

thi

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

* Re: replacing endline
       [not found]           ` <mailman.671.1145571606.9609.help-gnu-emacs@gnu.org>
@ 2006-04-21  6:52             ` Harald Hanche-Olsen
  0 siblings, 0 replies; 18+ messages in thread
From: Harald Hanche-Olsen @ 2006-04-21  6:52 UTC (permalink / raw)


+ Lennart Borgman <lennart.borgman.073@student.lu.se>:

| AFAICS the same escape syntax that are used for strings in elisp
| could be used for strings read in the minibuffer. In princip I mean,
| not now of course.

Sure, in principle you could choose any escape convention you please.

| To me it is not unnatural at all. But maybe it is very inconvenient?
| Could you please explain what you mean from that point of view?

Well, if backslash was an escape character in string reads in the
minibuffer, any latex user who wants to replace \foo by \bar would
have to type those strings as \\foo and \\bar.  That would confuse
newbies, and be inconvenient to more experienced folk.  It gets worse
if you need to use query-replace-regexp, which also uses backslashes
for an escape convention, so you might end up having to type a
quadruple backslash in place of a single one.  Ouch!

Besides, the C-q escape convention is not only for the minibuffer.
It's for every kind of buffer!  Once you realise that there is nothing
that special about the minibuffer - it's just an ordinary buffer with
a peculiar mode - you will see that this is very logical indeed.

(I think I am going to bow out of this discussion now.  I have said
all I have to say on the topic, and can't think of a way to state it
more clearly.)

-- 
* Harald Hanche-Olsen     <URL:http://www.math.ntnu.no/~hanche/>
- It is undesirable to believe a proposition
  when there is no ground whatsoever for supposing it is true.
  -- Bertrand Russell

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

* Re: replacing endline
  2006-04-20 22:19           ` Lennart Borgman
@ 2006-04-21  7:38             ` Eli Zaretskii
  0 siblings, 0 replies; 18+ messages in thread
From: Eli Zaretskii @ 2006-04-21  7:38 UTC (permalink / raw)


> Date: Fri, 21 Apr 2006 00:19:57 +0200
> From: Lennart Borgman <lennart.borgman.073@student.lu.se>
> Cc: help-gnu-emacs@gnu.org
> 
> AFAICS the same escape syntax that are used for strings in elisp could 
> be used for strings read in the minibuffer.

Aha, and then wouldn't Windows users complain that they cannot type
file names with backslashes when Emacs prompts them?

Also, if I need to search for the literal string \n, what would I need
to do?

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

end of thread, other threads:[~2006-04-21  7:38 UTC | newest]

Thread overview: 18+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-04-20  0:18 replacing endline sarah.dzion
2006-04-20  1:15 ` Katsumi Yamaoka
2006-04-20  1:17 ` Ye Wenbin
2006-04-20  1:22 ` Fredrik Bulow
2006-04-20  1:44 ` Fredrik Bulow
2006-04-20  1:56 ` Fredrik Bulow
2006-04-20  6:32   ` Thien-Thi Nguyen
2006-04-20 14:43     ` Fredrik Bulow
2006-04-20 16:11       ` Lennart Borgman
2006-04-20 18:16       ` Eli Zaretskii
     [not found]       ` <mailman.650.1145549499.9609.help-gnu-emacs@gnu.org>
2006-04-20 19:25         ` Harald Hanche-Olsen
2006-04-20 22:19           ` Lennart Borgman
2006-04-21  7:38             ` Eli Zaretskii
     [not found]           ` <mailman.671.1145571606.9609.help-gnu-emacs@gnu.org>
2006-04-21  6:52             ` Harald Hanche-Olsen
2006-04-21  0:53         ` Thien-Thi Nguyen
2006-04-20 23:38       ` B. T. Raven
2006-04-20 10:21   ` Peter Dyballa
2006-04-20 18:54 ` kgold

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