all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* GNU Emacs bugfix commit
@ 2004-10-15 19:41 Sun Yijiang
  0 siblings, 0 replies; only message in thread
From: Sun Yijiang @ 2004-10-15 19:41 UTC (permalink / 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>

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2004-10-15 19:41 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-10-15 19:41 GNU Emacs bugfix commit Sun Yijiang

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.