emacs-pretest-bug
[Top][All Lists]
Advanced

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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]