zsh-users
 help / color / mirror / code / Atom feed
* kill-word removes whole line
@ 2003-12-13 15:40 Jesper Holmberg
  2003-12-13 18:36 ` Bart Schaefer
  2003-12-15 11:02 ` Peter Stephenson
  0 siblings, 2 replies; 6+ messages in thread
From: Jesper Holmberg @ 2003-12-13 15:40 UTC (permalink / raw)
  To: Zsh-users List

I have a problem with alt-d (kill-word): it removes the whole line!

If I have this, with prompt at *:

foo * bar bar bar

and press alt-d, all three "bar" are removed from the command-line. I
would expect only the first to be removed.

All other "word actions" such as forward-word, and backward-kill-word,
work as I expect.

This is zsh 4.1.1 on Debian. I don't know if it matters, but I have these
lines in my .zshrc:

autoload -U select-word-style
select-word-style bash

TIA,

Jesper


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

* Re: kill-word removes whole line
  2003-12-13 15:40 kill-word removes whole line Jesper Holmberg
@ 2003-12-13 18:36 ` Bart Schaefer
  2003-12-13 23:29   ` Jesper Holmberg
  2003-12-14  8:03   ` Jesper Holmberg
  2003-12-15 11:02 ` Peter Stephenson
  1 sibling, 2 replies; 6+ messages in thread
From: Bart Schaefer @ 2003-12-13 18:36 UTC (permalink / raw)
  To: Zsh-users List

On Dec 13,  4:40pm, Jesper Holmberg wrote:
} 
} autoload -U select-word-style
} select-word-style bash
}
} foo * bar bar bar
} 
} and press alt-d, all three "bar" are removed from the command-line.

The first thing I'd suspect is that you have a zstyle that is using a
more specific context than the ":zle:*" one set by select-word-style.
What do you find if you give the command

	zstyle -L

??


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

* Re: kill-word removes whole line
  2003-12-13 18:36 ` Bart Schaefer
@ 2003-12-13 23:29   ` Jesper Holmberg
  2003-12-14  8:03   ` Jesper Holmberg
  1 sibling, 0 replies; 6+ messages in thread
From: Jesper Holmberg @ 2003-12-13 23:29 UTC (permalink / raw)
  To: Zsh-users List

* On Sat Dec 13, Bart Schaefer wrote:
> On Dec 13,  4:40pm, Jesper Holmberg wrote:
> } 
> } autoload -U select-word-style
> } select-word-style bash
> }
> } foo * bar bar bar
> } 
> } and press alt-d, all three "bar" are removed from the command-line.
> 
> The first thing I'd suspect is that you have a zstyle that is using a
> more specific context than the ":zle:*" one set by select-word-style.
> What do you find if you give the command
> 
> 	zstyle -L

I don't think I understand how I could see if this is the case, but below,
you'll find the output of zstyle -L.

BTW, I use the new completion system.

Jesper


% zstyle -L     
zstyle ':zle:*' word-style standard
zstyle ':zle:*' word-chars ''
zstyle :insert-last-word match '*([[:digit:]]?|[[:alpha:]/\\])*'
zstyle ':completion:*' group-name ''
zstyle ':completion:*' group-order files directories
zstyle ':completion:*' list-colors 'no=00' 'fi=00' 'di=01;34' 'ln=04;36'
'pi=04;33' 'so=04;35' 'bd=40;33;04' 'cd=40;33;04' 'or=04;05;37;41'
'mi=04;05;37;41' 'ex=01;32' '*.cmd=01;32' '*.exe=01;32' '*.EXE=01;32'
'*.com=01;32' '*.COM=01;32' '*.btm=01;32' '*.bat=01;32' '*.BAT=01;32'
'*.sh=01;32' '*.csh=01;32' '*.tar=01;31' '*.tgz=01;31' '*.tbz=01;31'
'*.tbz2=01;31' '*.arj=01;31' '*.taz=01;31' '*.lzh=01;31' '*.zip=01;31'
'*.ZIP=01;31' '*.jar=01;31' '*.JAR=01;31' '*.z=01;31' '*.Z=01;31'
'*.gz=01;31' '*.bz2=01;31' '*.bz=01;31' '*.tz=01;31' '*.rpm=01;31'
'*.deb=01;31' '*.cpio=01;31' '*.gpg=01;31' '*.jpg=01;35' '*.JPG=01;35'
'*.gif=01;35' '*.GIF=01;35' '*.bmp=01;35' '*.BMP=01;35' '*.xbm=01;35'
'*.xpm=01;35' '*.png=01;35' '*.PNG=01;35' '*.tif=01;35' '*.jpeg=01;35'
'*.tiff=01;35' '*.mpg=01;35' '*.MPG=01;35' '*.mpeg=01;35' '*.avi=01;35'
'*.AVI=01;35' '*.mp3=01;35' '*.MP3=01;35' '*.ogg=01;35' '*.OGG=01;35'
'*.rm=01;35' '*.RM=01;35' '*.eps=01;35' '*.ps=01;35' '*.PS=01;35'
'*.pdf=01;35' '*.PDF=01;35' '*.tex=01;33' '*.doc=01;33' '*.DOC=01;33'
'*.sxw=01;33' '*.SXW=01;33' '*.txt=01;33' '*.TXT=01;33' '*.htm=01;33'
'*.HTM=01;33' '*.html=01;33' '*.HTML=01;33' '*.pt=01;33' '*.xml=01;33'
'*.XML=01;33' '*.rtf=01;33' '*.RTF=01;33' '*.c=01;36' '*.java=01;36'
'*.JAVA=01;36' '*.pl=01;36' '*.cc=01;36' '*.el=01;36' '*.py=01;36'
'*.PY=01;36'
zstyle ':completion:*:*:kill:*' verbose yes
zstyle ':completion:*' verbose false
zstyle ':completion:*:descriptions' format 'Descriptions: %B%d%b'
zstyle ':completion:*:messages' format 'Matches: %d'
zstyle ':completion:*:warnings' format 'No matches for: %d'
zstyle ':completion:*' format 'Completing %d'
zstyle ':completion:*' preserve-prefix '//[^/]##/'
zstyle ':completion:*' squeeze-slashes true
zstyle ':completion:*' use-perl true
zstyle ':completion:*' use-cache true
zstyle :compinstall filename '~/.zshrc'
zstyle ':completion:*' completer _expand _complete _ignored
zstyle ':completion:case-sensitive:*' matcher-list ''
zstyle ':completion:*' matcher-list 'm:{a-zåäö}={A-ZÅÄÖ}'
zstyle ':completion:*:*:(^rm):*:*' ignored-patterns '*?.o' '*?~' '(|*/)CVS' '*?.class' '*?.pyc' '*?.elc'
zstyle ':completion:*:rm:*' ignore-line yes
zstyle ':completion:*:(cd|cp|mv):*' ignore-parents parent pwd
zstyle ':completion:*:*:kill:*' menu yes 'select=1'
zstyle ':completion:*' menu 'select=30'
zstyle ':completion:*:*:kill:*:processes' command 'ps x -o user,pid,s,stime,args'


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

* Re: kill-word removes whole line
  2003-12-13 18:36 ` Bart Schaefer
  2003-12-13 23:29   ` Jesper Holmberg
@ 2003-12-14  8:03   ` Jesper Holmberg
  1 sibling, 0 replies; 6+ messages in thread
From: Jesper Holmberg @ 2003-12-14  8:03 UTC (permalink / raw)
  To: Zsh-users List

* On Sat Dec 13, Bart Schaefer wrote:
> On Dec 13,  4:40pm, Jesper Holmberg wrote:
> } 
> } autoload -U select-word-style
> } select-word-style bash
> }
> } foo * bar bar bar
> } 
> } and press alt-d, all three "bar" are removed from the command-line.
> 
> The first thing I'd suspect is that you have a zstyle that is using a
> more specific context than the ":zle:*" one set by select-word-style.
> What do you find if you give the command
> 
> 	zstyle -L

I've done some more experimenting and reading, and now I think I
understand what to look for in the zstyle listing.

However, as you can see from my previous post, I have no more specific
zstyle set for the :zle: commands.

In fact, this really looks like a bug to me, since all other word
commands like:

forward-word-match, backward-word-match
backward-kill-word-match
transpose-words-match, capitalize-word-match
up-case-word-match, down-case-word-match

work as expected. For now, I have turned the lines

autoload -U select-word-style
select-word-style bash

off, and use the old bash-backward-kill-word and bash-backward-word until
this has been resolved.

Jesper


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

* Re: kill-word removes whole line
  2003-12-13 15:40 kill-word removes whole line Jesper Holmberg
  2003-12-13 18:36 ` Bart Schaefer
@ 2003-12-15 11:02 ` Peter Stephenson
  2003-12-15 11:51   ` Jesper Holmberg
  1 sibling, 1 reply; 6+ messages in thread
From: Peter Stephenson @ 2003-12-15 11:02 UTC (permalink / raw)
  To: Zsh-users List

Jesper Holmberg wrote:
> I have a problem with alt-d (kill-word): it removes the whole line!
> 
> If I have this, with prompt at *:
> 
> foo * bar bar bar
> 
> and press alt-d, all three "bar" are removed from the command-line. I
> would expect only the first to be removed.
> 
> autoload -U select-word-style
> select-word-style bash

That was a bug, fixed in zsh-workers 18824.  It'll be fixed when
I finally get a chance to produce 4.1.2.

-- 
Peter Stephenson <pws@csr.com>                  Software Engineer
CSR Ltd., Science Park, Milton Road,
Cambridge, CB4 0WH, UK                          Tel: +44 (0)1223 692070


**********************************************************************
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.

This footnote also confirms that this email message has been swept by
MIMEsweeper for the presence of computer viruses.

www.mimesweeper.com
**********************************************************************


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

* Re: kill-word removes whole line
  2003-12-15 11:02 ` Peter Stephenson
@ 2003-12-15 11:51   ` Jesper Holmberg
  0 siblings, 0 replies; 6+ messages in thread
From: Jesper Holmberg @ 2003-12-15 11:51 UTC (permalink / raw)
  To: Zsh-users List

* On Mon Dec 15, Peter Stephenson wrote:
> Jesper Holmberg wrote:
> > I have a problem with alt-d (kill-word): it removes the whole line!
> > 
> > If I have this, with prompt at *:
> > 
> > foo * bar bar bar
> > 
> > and press alt-d, all three "bar" are removed from the command-line. I
> > would expect only the first to be removed.
> > 
> > autoload -U select-word-style
> > select-word-style bash
> 
> That was a bug, fixed in zsh-workers 18824.  It'll be fixed when
> I finally get a chance to produce 4.1.2.
 
OK, thanks. I'll wait for 4.1.2 then.

Jesper


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

end of thread, other threads:[~2003-12-15 11:52 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-12-13 15:40 kill-word removes whole line Jesper Holmberg
2003-12-13 18:36 ` Bart Schaefer
2003-12-13 23:29   ` Jesper Holmberg
2003-12-14  8:03   ` Jesper Holmberg
2003-12-15 11:02 ` Peter Stephenson
2003-12-15 11:51   ` Jesper Holmberg

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

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 NNTP newsgroup(s).