zsh-workers
 help / color / mirror / code / Atom feed
From: Bart Schaefer <schaefer@brasslantern.com>
To: zsh-workers@zsh.org
Subject: Re: _expand_alias does not expand aliases that contain an "!"
Date: Wed, 01 Oct 2014 09:29:34 -0700	[thread overview]
Message-ID: <141001092934.ZM5952@torch.brasslantern.com> (raw)
In-Reply-To: <20141001151501.2eac05ef@pwslap01u.europe.root.pri>

On Oct 1,  3:15pm, Peter Stephenson wrote:
} Subject: Re: _expand_alias does not expand aliases that contain an "!"
}
} On Wed, 01 Oct 2014 15:06:41 +0100
} Peter Stephenson <p.stephenson@samsung.com> wrote:
} > On Wed, 1 Oct 2014 15:03:24 +0100
} > Peter Stephenson <p.stephenson@samsung.com> wrote:
} > > On possible fix would be to add a separate variable to remember the
} > > original ISPECIAL bit for bangchar (which would be transferable if
} > > bangchar became a different character) and restore it at this point
} > 
} > Immediately after hitting "Send"(*), it occurred to me this just needs
} > to be another bit in the typtab element, ISPECIAL_ORIGINALLY
} 
} Gag.  Sorry, no, that doesn't work if we change bangchar.

Maybe we just need something along the lines of makecommaspecial() that
can be called from hbegin() to set ISPECIAL on bangchar, and called in
the completion code to temporarily switch it off/on.

Then inittyptab() never has to mess with examining bangchar, and the
new makebangspecial() can be called from histcharsetfn() instead of
doing a full inittyptab().

-- 
Barton E. Schaefer


  reply	other threads:[~2014-10-01 16:29 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-08-26 16:50 Jonathan H
2014-08-30 20:32 ` Bart Schaefer
2014-08-31  2:58   ` Jonathan H
2014-08-31 20:50     ` Bart Schaefer
2014-09-14 18:30       ` Bart Schaefer
2014-09-14 20:55         ` Bart Schaefer
2014-10-01 14:03           ` Peter Stephenson
2014-10-01 14:06             ` Peter Stephenson
2014-10-01 14:15               ` Peter Stephenson
2014-10-01 16:29                 ` Bart Schaefer [this message]
2014-10-01 16:39                   ` Peter Stephenson
2014-10-02  1:11                     ` Bart Schaefer
2014-10-02  5:20                       ` Bart Schaefer
2014-09-23  5:59         ` Jonathan H

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=141001092934.ZM5952@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).