zsh-workers
 help / color / mirror / code / Atom feed
From: Bart Schaefer <schaefer@brasslantern.com>
To: zsh-workers@zsh.org
Subject: Re: completion files sensitive to user options like RC_QUOTES
Date: Tue, 6 Dec 2016 08:57:22 -0800	[thread overview]
Message-ID: <161206085722.ZM31320@torch.brasslantern.com> (raw)
In-Reply-To: <20161206142754.GA12824@cventin.lip.ens-lyon.fr>

On Dec 6,  3:27pm, Vincent Lefevre wrote:
}
} I wonder whether it is expected that completion files are sensitive
} to user options.

The intention is that completion files will be auto-loaded from the
completion system after _main_complete has started, where they will be
affected by the set of options that it controls.

RC_QUOTES is a tricky one.  We could do this --

diff --git a/Completion/compinit b/Completion/compinit
index 6612bac..7cb65d5 100644
--- a/Completion/compinit
+++ b/Completion/compinit
@@ -153,6 +153,7 @@ _comp_options=(
     NO_markdirs
     NO_octalzeroes
     NO_posixbuiltins
+    NO_rcquotes
     NO_shwordsplit
     NO_shglob
     NO_warncreateglobal

-- but then expansions of strings the user has typed on the command
line might be handled differently.

If you can verify that the above doesn't break any of your interactive
expectations, I can commit it.


  reply	other threads:[~2016-12-06 16:57 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-12-06 14:27 Vincent Lefevre
2016-12-06 16:57 ` Bart Schaefer [this message]
2016-12-06 17:29   ` Oliver Kiddle
2016-12-06 21:21     ` Bart Schaefer
2016-12-07  3:45       ` Oliver Kiddle
2016-12-07  5:15         ` Bart Schaefer

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=161206085722.ZM31320@torch.brasslantern.com \
    --to=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).