[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Esc-d deletes too much in a shell script
From: |
Eli Zaretskii |
Subject: |
Re: Esc-d deletes too much in a shell script |
Date: |
Mon, 17 Apr 2006 14:31:50 +0300 |
> Cc: address@hidden
> From: Peter Dyballa <address@hidden>
> Date: Mon, 17 Apr 2006 12:36:35 +0200
>
> First case here (with leading line numbers):
> Y
> cursor position
> 55 echo "################################################"
> 56 fi
> 57 #
> 58 echo "\$\$\$\$\$\$\$\$\$ $0 \$\$\$\$\$\$\$\$\$"
If you type M-f, you will see that Emacs skips everything past the
"fi" part on the next line. So this result:
> After Esc-d:
>
> Y
> cursor position
> 55 echo "############################################
> 56 #
> 57 echo "\$\$\$\$\$\$\$\$\$ $0 \$\$\$\$\$\$\$\$\$"
is expected. The reason is that shell-script-mode modifies the syntax
categories of some characters, see "C-h s".
> >> Here is the state after:
> >>
> >>
> >> #####################################################################
> >> ###
> >> #####
> >> #
> >> echo "^^^^^^^^^ $0 ^^^^^=`date "+%+"`
> >
> > Are you complaining that it removed the newline as well, which you
> > didn't expect?
>
> No. Also the next line was partially deleted (the variable's name
> `DatumĀ“).
So please tell what was unexpected: that it deleted the closing quotes
and the newline? Because if those two are expected, then you must
also expect that it will delete the following word "Datum".
> You can't teach your MUA to handle MIME encoded eMails cleverly?
My MUA is Rmail.
- Esc-d deletes too much in a shell script, Peter Dyballa, 2006/04/16
- Re: Esc-d deletes too much in a shell script, Eli Zaretskii, 2006/04/17
- Re: Esc-d deletes too much in a shell script, Peter Dyballa, 2006/04/17
- Re: Esc-d deletes too much in a shell script,
Eli Zaretskii <=
- Re: Esc-d deletes too much in a shell script, Stefan Monnier, 2006/04/17
- Re: Esc-d deletes too much in a shell script, Peter Dyballa, 2006/04/17
- Re: Esc-d deletes too much in a shell script, Stefan Monnier, 2006/04/17
- Re: Esc-d deletes too much in a shell script, Peter Dyballa, 2006/04/17
- Re: Esc-d deletes too much in a shell script, Stefan Monnier, 2006/04/17
- Re: Esc-d deletes too much in a shell script, Peter Dyballa, 2006/04/17
Re: Esc-d deletes too much in a shell script, Richard Stallman, 2006/04/17