zsh-workers
 help / color / mirror / code / Atom feed
From: Roman Perepelitsa <roman.perepelitsa@gmail.com>
To: Daniel Shahaf <d.s@daniel.shahaf.name>
Cc: Marlon Richert <marlon.richert@gmail.com>,
	Zsh hackers list <zsh-workers@zsh.org>
Subject: Re: Bug report: `setopt noaliases` not respected in `local` statement without assignment.
Date: Sun, 29 Mar 2020 23:03:34 +0200	[thread overview]
Message-ID: <CAN=4vMoto5dGHWNO-zD=LyNTFBCPsePK+ksT+LeV_JooZHrLFQ@mail.gmail.com> (raw)
In-Reply-To: <20200329204702.5c096185@tarpaulin.shahaf.local2>

On Sun, Mar 29, 2020 at 10:47 PM Daniel Shahaf <d.s@daniel.shahaf.name> wrote:
> z-sy-h handles this by saving ${options} to an associative array before
> resetting the options so it can execute:

Right. This is done in function _zsh_highlight in
zsh-syntax-highlighting.zsh. My point is that you cannot rename
zsh-syntax-highlighting.zsh to zsh-syntax-highlighting-impl.zsh and
replace the original zsh-syntax-highlighting.zsh with `emulate zsh -o
no_aliases -c 'source zsh-syntax-highlighting-impl.zsh'` because
you'll no longer be able to access user options from _zsh_highlight.
Sticky emulation mode is cool but in this case it provides too much
insulation.

Roman.

  reply	other threads:[~2020-03-29 21:04 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-03-26  9:54 Marlon Richert
2020-03-26  9:59 ` Roman Perepelitsa
2020-03-26 10:27   ` Marlon Richert
2020-03-26 10:38     ` Roman Perepelitsa
2020-03-26 22:34       ` Daniel Shahaf
2020-03-29 10:24         ` Roman Perepelitsa
2020-03-29 20:47           ` Daniel Shahaf
2020-03-29 21:03             ` Roman Perepelitsa [this message]
2020-03-29 21:12               ` Daniel Shahaf

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='CAN=4vMoto5dGHWNO-zD=LyNTFBCPsePK+ksT+LeV_JooZHrLFQ@mail.gmail.com' \
    --to=roman.perepelitsa@gmail.com \
    --cc=d.s@daniel.shahaf.name \
    --cc=marlon.richert@gmail.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).