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 09:38:32 +0300

> From: Peter Dyballa <address@hidden>
> Date: Sun, 16 Apr 2006 21:54:34 +0200
> 
> In a (Bourne) shell script I was editing the "envelope" of a set of  
> echo statements because it was too long (copied from another file),  
> so I pressed Esc-d at the point where the superfluity began -- and  
> too much was deleted!

Thank you for your report, but I need a much more powerful crystal
ball than what I have now to guess what exactly did you see as a
problem.  Please show only the relevant fragment of the script, not
all of it, please show where was the cursor when you typed ESC-d and
what it deleted, and please tell what you expected it to delete at
that point.

> Another such case happens at line #21 in the above example. When the  
> cursor is for example in column #24 of this line and I press Esc-d,  
> again too much is deleted.

``Another case''?  So what was the ``first case''?

> Here is the state after:
> 
>        
> ######################################################################## 
> #####
>       #
>       echo "^^^^^^^^^ $0 ^^^^^=`date "+%+"`

Are you complaining that it removed the newline as well, which you
didn't expect?  (M-f from any point will show you how far will ESC-d
delete from that point, and C-h s will show you the buffer's syntax
table.)

> Outside of "words" of `^´ or `#´ Esc-d deletes correctly till the end  
> of the word, i.e. up to but not including the `"´. GNU Emacs was  
> launched with -Q when it fails to delete-word in lines #21, 51, 55,  
> and 58 of the above example.

Again, please show where the position of point in each one of these
lines.

In addition, your mailer wraps lines, so the script arrives heavily
munged and hard to read.  Could you please do something to fix that?




reply via email to

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