all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Sun Yijiang <sunyijiang@gmail.com>
Subject: GNU Emacs bugfix commit
Date: Sat, 16 Oct 2004 03:41:02 +0800	[thread overview]
Message-ID: <5065e2900410151241432714a7@mail.gmail.com> (raw)

When Emacs' frame title format is set to buffer-file-name, and there
are chinese characters in it, the title will loss characters.  The
number of the lossed characters is exactly the number of chinese
characters in the title.  This is cause by the miscalculated variable
`prec' in function `display_mode_element' in xdisp.c.  The current
source uses function `chars_in_tex' which returns the number of
characters in the string, but what we really need is the string's
width (you see, that's why), so I think this guy should be replaced
with `strwidth'.  I've made a test, and then everything is OK.

Sun Yijiang <sunyijiang@gmail.com>

                 reply	other threads:[~2004-10-15 19:41 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=5065e2900410151241432714a7@mail.gmail.com \
    --to=sunyijiang@gmail.com \
    /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.