From: Dan Nicolaescu <dann@ics.uci.edu>
Cc: emacs-devel@gnu.org
Subject: Re: yet more term.el fixes #2
Date: Tue, 21 Sep 2004 21:18:16 -0700 [thread overview]
Message-ID: <200409220418.i8M4IJGK005554@scanner2.ics.uci.edu> (raw)
In-Reply-To: <buoy8j3ezpi.fsf@mctpc71.ucom.lsi.nec.co.jp> (Miles Bader's message of "Wed, 22 Sep 2004 12:42:49 +0900")
Miles Bader <miles@lsi.nec.co.jp> writes:
> Dan Nicolaescu <dann@ics.uci.edu> writes:
> > One remaining problem in term.el is the handling of characters in the
> > 128-255 range (and probably the non 8-bit encodings too). term.el
> > uses move-to-column to position the cursor at certain positions in the
> > buffer. But the char-width of a character >127 is 4 (at least in my
> > setup), this confuses the cursor positioning
>
> Seems odd... in *scratch* in an `emacs -q' session:
>
> (char-width ?\217)
> 1
> (char-width ?á)
> 1
> (char-width ?å)
> 2
Looking closer, the characters > 158 decimal have char-width 4 in my
setup.
Use this to print all the widths:
(defun print-width ()
(interactive)
(let ((i 0))
(while (< i 256)
(insert (format "%d %d %c\n" i (char-width i) i) )
(setq i (1+ i)))))
Anything with != 1 will confuse term.el if sent to the terminal as
such.
> Does term.el use some funny buffer settings?
Not AFAIK.
next prev parent reply other threads:[~2004-09-22 4:18 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-09-22 3:17 yet more term.el fixes #2 Dan Nicolaescu
2004-09-22 3:42 ` Miles Bader
2004-09-22 4:18 ` Dan Nicolaescu [this message]
2004-09-22 4:47 ` Miles Bader
2004-09-22 13:16 ` Stefan Monnier
2004-09-22 17:43 ` Dan Nicolaescu
2004-09-22 20:23 ` Stefan Monnier
2004-09-23 2:14 ` Dan Nicolaescu
2004-09-23 11:44 ` Stefan
2004-09-23 21:28 ` Stefan Monnier
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=200409220418.i8M4IJGK005554@scanner2.ics.uci.edu \
--to=dann@ics.uci.edu \
--cc=emacs-devel@gnu.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 external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.