zsh-users
 help / color / mirror / code / Atom feed
From: "Bart Schaefer" <schaefer@brasslantern.com>
To: Sven Wischnowsky <wischnow@berkom.de>, zsh-users@sunsite.dk
Subject: Re: segfault when overriding complete-word then trying to use tab completion
Date: Wed, 6 Mar 2002 17:14:27 +0000	[thread overview]
Message-ID: <1020306171427.ZM23019@candle.brasslantern.com> (raw)
In-Reply-To: <15493.54613.934394.25215@wischnow.berkom.de>

On Mar 6,  9:37am, Sven Wischnowsky wrote:
} Subject: Re: segfault when overriding complete-word then trying to use tab
}
} I still can't reproduce it.

I can, but only in 4.0.1, not in 4.0.4 (so far) nor 4.1.x.

The problem is that .complete-word is a completion widget, but it's being
called from a function installed as a normal widget with `zle -N'.  This
confuses the completion code somehow -- I haven't got a sensible stack
trace -- but it appears in 4.1.x as though calling `zle .complete-word'
from a normal widget will bypass the new completion system and always
invoke compctl.

In 4.0.1, on the other hand, it appears to depend on the order in which
one runs `compinit' and `zle -N'.  Sometimes it invokes compctl and all
works well, other times it tries to invoke new completion and blows up.

-- 
Bart Schaefer                                 Brass Lantern Enterprises
http://www.well.com/user/barts              http://www.brasslantern.com

Zsh: http://www.zsh.org | PHPerl Project: http://phperl.sourceforge.net   


  reply	other threads:[~2002-03-06 17:17 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-03-01  0:16 Ian Lynagh
2002-03-01  9:26 ` Bart Schaefer
2002-03-01 12:32   ` Ian Lynagh
2002-03-01 16:36     ` Bart Schaefer
2002-03-01 17:25       ` Ian Lynagh
2002-03-06  8:37         ` Sven Wischnowsky
2002-03-06 17:14           ` Bart Schaefer [this message]
2002-03-07 15:03             ` Ian Lynagh

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1020306171427.ZM23019@candle.brasslantern.com \
    --to=schaefer@brasslantern.com \
    --cc=wischnow@berkom.de \
    --cc=zsh-users@sunsite.dk \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).