zsh-workers
 help / color / mirror / code / Atom feed
From: Felipe Contreras <felipe.contreras@gmail.com>
To: Bart Schaefer <schaefer@brasslantern.com>
Cc: zsh-workers@zsh.org, felipe.contreras@gmail.com
Subject: Re: zle messes up 'words' variable?
Date: Mon, 2 May 2011 21:11:19 +0300	[thread overview]
Message-ID: <BANLkTin1YcDOSGb+9FGYVgoC4cwN37_dnA@mail.gmail.com> (raw)
In-Reply-To: <110428203139.ZM11856@torch.brasslantern.com>

On Fri, Apr 29, 2011 at 6:31 AM, Bart Schaefer
<schaefer@brasslantern.com> wrote:
> On Apr 28, 11:19pm, Felipe Contreras wrote:
> }
> } I saw the following reply online but I wasn't CC'ed:
>
> I typically don't Cc on mail to the list unless the sender specifically
> asks for that.  If you asked and I missed it, I apologize.

Oh, I'm typically on mailing lists where Reply-To isn't munged so it's
not necessary to ask for that. But I'll do that.

> } > What may be happening is that "sticky emulation" is in effect, so
> } > that when the function is autoloaded in bash compatibility mode,
> } > "words" becomes non-special. If so, I'm not familiar enough with
> } > bashcompinit to say whether that's intentional or an accidental
> } > side-effect.
> }
> } This has nothing to do with bashcompinit, the issue is with plain
> } compinit.
>
> Your example in workers/29086 explicitly loads and runs bashcompinit.
> What am I missing?

What is 'workers/29086'?

This thread is titled "zle messes up 'words' variable?", and the test
has nothing to do with bashcompinit:
http://article.gmane.org/gmane.comp.shells.zsh.devel/22479

> } BTW. This messes up with a very important function in bash completion:
> } _get_comp_words_by_ref()
>
> I'm now entirely confused.
>
> I no longer believe that I know what you mean by "in bash completion."

By bash completion I mean:
http://bash-completion.alioth.debian.org/

> There's no shell function _get_comp_words_by_ref anywhere in the zsh
> sources.  Where is that coming from?

>From here:
http://git.debian.org/?p=bash-completion/bash-completion.git;a=blob;f=bash_completion;h=253d1fb99bcd253535b78c4cbf94e9322e60098c;hb=a43a68f2c60c9f29ab81986382b4063a3aa7bbbb#l422

But it seems it has changed.

> If what you're doing is loading functions into zsh that were written to
> be used with bash's compgen, then I don't follow how you can NOT be
> using bashcompinit.

I am using bashcompinit, but the issue appears without it.

-- 
Felipe Contreras


  reply	other threads:[~2011-05-02 18:19 UTC|newest]

Thread overview: 25+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-04-27  8:26 Felipe Contreras
2011-04-27  9:02 ` Jérémie Roquet
2011-04-27  9:11   ` Felipe Contreras
2011-04-27  9:51     ` Felipe Contreras
2011-04-27 15:06 ` Bart Schaefer
2011-04-28 20:19 ` Felipe Contreras
2011-04-29  3:31   ` Bart Schaefer
2011-05-02 18:11     ` Felipe Contreras [this message]
2011-05-03  1:42       ` Bart Schaefer
2011-05-03  8:05         ` Felipe Contreras
2011-05-03 14:39           ` Bart Schaefer
2011-05-03 15:04             ` Bart Schaefer
2011-05-03 17:41               ` Felipe Contreras
2011-05-04  0:39                 ` Bart Schaefer
2011-05-05 14:39                   ` Felipe Contreras
2011-05-05 16:24                     ` Bart Schaefer
2011-05-05 16:40                       ` Felipe Contreras
2011-05-05 19:38                         ` Bart Schaefer
2011-05-05 20:14                           ` Felipe Contreras
2011-05-05 21:12                             ` Nikolai Weibull
2011-05-03 17:36             ` Felipe Contreras
2011-05-04  0:56               ` Bart Schaefer
2011-05-05 14:48                 ` Felipe Contreras
2011-05-05 15:50                   ` Bart Schaefer
2011-05-05 15:55                     ` Felipe Contreras

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=BANLkTin1YcDOSGb+9FGYVgoC4cwN37_dnA@mail.gmail.com \
    --to=felipe.contreras@gmail.com \
    --cc=schaefer@brasslantern.com \
    --cc=zsh-workers@zsh.org \
    /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).