From: Peter Stephenson <pws@ibmth.df.unipi.it>
To: zsh-workers@sunsite.auc.dk
Subject: Re: delete-to-char
Date: Thu, 23 Sep 1999 11:11:48 +0200 [thread overview]
Message-ID: <9909230911.AA28501@ibmth.df.unipi.it> (raw)
In-Reply-To: "Peter Stephenson"'s message of "Thu, 23 Sep 1999 11:00:33 DFT." <9909230900.AA26426@ibmth.df.unipi.it>
Peter Stephenson wrote:
> Vin Shelton wrote:
> > In the
> > course of testing this, I found that M-digit did not work for me with
> > bindkey -me, even though bindkey thinks they are bound to
> > digit-argument. M-anydigit just beeps. "od -x" tells me that M-0
> > sends 0xb0, M-1 sends 0xb1, etc. Do I have my xterm/stty settings
> > wrong, or is this a bug in zsh.
>
> The other meta things, like M-x, work, right? I'm having the same problem.
> I thought it was just my terminal, but maybe it's zsh. If I type M-1 it
> just beeps, but if I type `bindkey "', then a quoted M-1, then `"<RETURN>',
> it says
> "\M-1" digit-argument
> so something a little weird is happening.
Guess who generated this bug? Bart complained that non-digits were doing
weird things when attached to digit-argument, so I `fixed' it. This
restores handling of metafied as well as normal digits.
--- Src/Zle/zle_misc.c.dig Wed Jul 7 09:32:06 1999
+++ Src/Zle/zle_misc.c Thu Sep 23 11:08:46 1999
@@ -458,7 +458,8 @@
{
int sign = (zmult < 0) ? -1 : 1;
- if (c < '0' || c > '9')
+ /* allow metafied as well as ordinary digits */
+ if ((c & 0x7f) < '0' || (c & 0x7f) > '9')
return 1;
if (!(zmod.flags & MOD_TMULT))
--
Peter Stephenson <pws@ibmth.df.unipi.it> Tel: +39 050 844536
WWW: http://www.ifh.de/~pws/
Dipartimento di Fisica, Via Buonarroti 2, 56127 Pisa, Italy
next prev parent reply other threads:[~1999-09-23 9:47 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
1999-09-21 2:52 delete-to-char Vin Shelton
1999-09-23 2:47 ` delete-to-char Vin Shelton
1999-09-23 9:00 ` delete-to-char Peter Stephenson
1999-09-23 9:11 ` Peter Stephenson [this message]
1999-09-23 9:01 delete-to-char Sven Wischnowsky
1999-09-23 12:05 ` delete-to-char Vin Shelton
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=9909230911.AA28501@ibmth.df.unipi.it \
--to=pws@ibmth.df.unipi.it \
--cc=zsh-workers@sunsite.auc.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).