zsh-workers
 help / color / mirror / code / Atom feed
From: Bart Schaefer <schaefer@brasslantern.com>
To: zsh-workers@sunsite.dk (Zsh hackers list)
Subject: Re: PATCH: zle input changes for Unicode
Date: Fri, 18 Feb 2005 16:59:46 +0000	[thread overview]
Message-ID: <1050218165946.ZM19867@candle.brasslantern.com> (raw)
In-Reply-To: <200502181350.j1IDobbt031241@news01.csr.com>

On Feb 18,  1:50pm, Peter Stephenson wrote:
}
} Please tell me if you think I'm doing something wrong

My only wish is that you might have tagged the repository before the
commit (e.g. "cvs tag pre-unicode-input" or some such).  I'm not sure
I have an uncorrupted sandbox from which I can do so.  Maybe a checkout
by date ...

} I moved the definitions from system.h to the more appropriate zle.h.

I heartily approve.

} Note also that lastchar, and its new companion lastchar_wide, are now
} set by the routines that actually read the character.  This is obviously
} neater and it was hard to see from the code if there was a good reason
} why it wasn't done before, but I strongly suspect there wasn't.

The obvious question is whether there is any case where getkey() was
called but lastchar was not updated.  Scanning through the patch I see
two places where that might have been true -- in deltochar() and in
getkeybuf() -- and one where it appears really to be true, that is, in
getzlequery().  But maybe the callers fix up something thereafter, I
didn't look carefully at the whole context.

} Note that I've renamed some functions with "getkey" to "getbyte" to
} reflect the function better.

I generally think this sort of thing is a good idea, if for no other
reason than that it means the compiler will point a lot of the places
that you might need to do other special handling.

Misc. remarks:

Is last_widechar_valid set to 1 too soon in getrestchar()?

Sometimes you assign 1 to last_widechar_valid, and sometimes TRUE.

Nothing else jumps out at me.


  reply	other threads:[~2005-02-18 17:00 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-02-18 13:50 Peter Stephenson
2005-02-18 16:59 ` Bart Schaefer [this message]
2005-02-18 17:10   ` Clint Adams
2005-02-18 17:26   ` Peter Stephenson

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=1050218165946.ZM19867@candle.brasslantern.com \
    --to=schaefer@brasslantern.com \
    --cc=zsh-workers@sunsite.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).