GNU bug report logs - #1808
23.0.60; picture-mode not considering double-width characters alignment

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: emacs; Reported by: poppyer <poppyer <at> gmail.com>; dated Tue, 6 Jan 2009 17:15:03 UTC; Maintainer for emacs is bug-gnu-emacs <at> gnu.org.

Message received at submit <at> emacsbugs.donarmstrong.com:


Received: (at submit) by emacsbugs.donarmstrong.com; 6 Jan 2009 17:07:10 +0000
From poppyer <at> gmail.com Tue Jan  6 09:07:09 2009
X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02
	(2008-06-10) on rzlab.ucr.edu
X-Spam-Level: 
X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available.
	hammytokens:Tokens not available.
X-Spam-Status: No, score=0.1 required=4.0 tests=FOURLA autolearn=no
	version=3.2.5-bugs.debian.org_2005_01_02
Received: from fencepost.gnu.org (fencepost.gnu.org [140.186.70.10])
	by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id n06H73sW013076
	for <submit <at> emacsbugs.donarmstrong.com>; Tue, 6 Jan 2009 09:07:04 -0800
Received: from mail.gnu.org ([199.232.76.166]:47319 helo=mx10.gnu.org)
	by fencepost.gnu.org with esmtp (Exim 4.67)
	(envelope-from <poppyer <at> gmail.com>)
	id 1LKFNI-0005hY-7T
	for emacs-pretest-bug <at> gnu.org; Tue, 06 Jan 2009 12:05:52 -0500
Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60)
	(envelope-from <poppyer <at> gmail.com>)
	id 1LKFOM-0005MF-SA
	for emacs-pretest-bug <at> gnu.org; Tue, 06 Jan 2009 12:07:02 -0500
Received: from ti-out-0910.google.com ([209.85.142.191]:32262)
	by monty-python.gnu.org with esmtp (Exim 4.60)
	(envelope-from <poppyer <at> gmail.com>)
	id 1LKFOM-0005Lt-68
	for emacs-pretest-bug <at> gnu.org; Tue, 06 Jan 2009 12:06:58 -0500
Received: by ti-out-0910.google.com with SMTP id u5so6656050tia.10
        for <emacs-pretest-bug <at> gnu.org>; Tue, 06 Jan 2009 09:06:55 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=gmail.com; s=gamma;
        h=domainkey-signature:received:received:date:message-id:from:to
         :subject;
        bh=iaXO6m5qqVOFzFwF6DhZq/dI+YNJtbHQtQvEuZlL33E=;
        b=kyqlOc4vA83MgcQv6F3rJVipLI2u2p6AecmKxyBTevriui3oDQ0yZeP0zEnvdQxSCh
         CJYdRLl6dZ07Dty81uRyQNJL86m+hIfmuCZdCKoTU/a74bowI0zncHbUQSzqen4XpSFi
         tuGpQy1svApsJPDJMAr/IvOJgKmAPPY9y0PdY=
DomainKey-Signature: a=rsa-sha1; c=nofws;
        d=gmail.com; s=gamma;
        h=date:message-id:from:to:subject;
        b=S/Tke/A6y/CiqCjb8wa2uhrw99SnMuOjlSkfZEV/8QjK5OLSJUxvEI6a/FegcqECwX
         USC6l2Kf8A5yg+oT7othw6qP5GNEAUW+M5AfRHLbbk7Q+4qftg1fO09+DAvcSy1JNHO9
         i04fIGF26tqssfXlIKkflfC0rhqsZtJI2sigg=
Received: by 10.110.62.4 with SMTP id k4mr33806557tia.17.1231261615397;
        Tue, 06 Jan 2009 09:06:55 -0800 (PST)
Received: from nusnet-97-126.dynip.nus.edu.sg.yourcompany.com (nusnet-97-126.dynip.nus.edu.sg [137.132.97.126])
        by mx.google.com with ESMTPS id 14sm1292065tim.30.2009.01.06.09.06.52
        (version=TLSv1/SSLv3 cipher=RC4-MD5);
        Tue, 06 Jan 2009 09:06:54 -0800 (PST)
Date: Wed, 07 Jan 2009 01:06:47 +0800
Message-Id: <pkprj0wehk.fsf <at> nusnet-97-126.dynip.nus.edu.sg>
From: poppyer <poppyer <at> gmail.com>
To: emacs-pretest-bug <at> gnu.org
Subject: 23.0.60; picture-mode not considering double-width characters alignment
X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2)

This is not a new bug of EMACS 23; but it is there in EMACS22 for a
long time.  In M-x picture-mode, emacs acts in a "replace" typing
mode, i.e. when you type a char, it replace the old one such that the
alignment is maintained.

But when mixing with double-width characters (e.g. CJK chars), one to
one char replacing become problematic, e.g. if we replace a
single-width char with a double-wdith char, the alignment will be
destroyed.

So, what I suggests is: if we replace a double-width to a
single-width, we should add a extra single-width space; and if we
replace a single-width to a double-witdh, we should check its
following char: if it is single-width, delete it; otherwise replace it
with a single-width space.



In GNU Emacs 23.0.60.1 (i386-apple-darwin9.6.0, NS apple-appkit-949.43)
 of 2008-12-25 on neutron.local
Windowing system distributor `Apple', version 97.112.112.108.101.45.97.112.112.107.105.116.45.57.52.57.46.52.51
configured using `configure  '--with-ns''

Important settings:
  value of $LC_ALL: nil
  value of $LC_COLLATE: nil
  value of $LC_CTYPE: zh_CN.UTF-8
  value of $LC_MESSAGES: nil
  value of $LC_MONETARY: nil
  value of $LC_NUMERIC: nil
  value of $LC_TIME: nil
  value of $LANG: nil
  value of $XMODIFIERS: @im=fcitx
  locale-coding-system: utf-8-unix
  default-enable-multibyte-characters: t

Major mode: Group

Minor modes in effect:
  erc-log-mode: t
  erc-list-mode: t
  erc-menu-mode: t
  erc-autojoin-mode: t
  erc-ring-mode: t
  erc-networks-mode: t
  erc-pcomplete-mode: t
  erc-track-mode: t
  erc-track-minor-mode: t
  erc-match-mode: t
  erc-button-mode: t
  erc-fill-mode: t
  erc-stamp-mode: t
  erc-netsplit-mode: t
  erc-irccontrols-mode: t
  erc-noncommands-mode: t
  erc-move-to-prompt-mode: t
  erc-readonly-mode: t
  gnus-undo-mode: t
  recentf-mode: t
  which-function-mode: t
  show-paren-mode: t
  mouse-sel-mode: t
  global-hl-line-mode: t
  pinbar-mode: t
  shell-dirtrack-mode: t
  tooltip-mode: t
  tool-bar-mode: t
  mouse-wheel-mode: t
  file-name-shadow-mode: t
  global-font-lock-mode: t
  font-lock-mode: t
  global-auto-composition-mode: t
  auto-composition-mode: t
  auto-encryption-mode: t
  auto-compression-mode: t
  column-number-mode: t
  line-number-mode: t
  transient-mark-mode: t

Recent input:
C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p 
9 RET C-n C-n SPC F C-\ x t u SPC g f SPC j e r r SPC 
w b SPC s h n SPC w d t SPC w f t c b SPC . RET y i 
SPC j SPC y u SPC d SPC 1 s o v SPC g n g DEL SPC 4 
s o v SPC u j SPC e SPC DEL e t SPC g SPC w h SPC A 
A P DEL DEL DEL k h t SPC m g SPC DEL m g j SPC DEL 
m g SPC DEL m h SPC t SPC g SPC w h SPC A P r a w k 
SPC g SPC g h SPC DEL w h SPC x g SPC ? DEL . RET RET 
ESC [ A ESC [ A C-e ESC [ D ESC [ D DEL t s SPC w y 
SPC u t h p SPC ESC [ C DEL ESC [ B C-x k C-g C-x k 
y q g C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n 
C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n 
ESC < n RET SPC n SPC q ESC < ESC > ESC < ESC x n e 
w s C-p C-p RET U N o o o N o o o ESC x n e w s C-p 
C-p RET ESC 1 ESC < ESC > ESC < C-n C-n C-n C-n C-n 
C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n 
C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n ESC x r 
e p o TAB r TAB RET

Recent messages:
Reading... done.
Preparing newsticker buffer...
Newsticker stopped!
Mark set [3 times]
Reading active file from gmail via nnimap...
nnimap: Checking mailboxes...done
Reading active file from freenews.netfront.net via nntp...
Reading active file from news.motzarella.org via nntp...
Checking new news...done
Making completion list...




Acknowledgement sent to poppyer <poppyer <at> gmail.com>:
New bug report received and forwarded. Copy sent to Emacs Bugs <bug-gnu-emacs <at> gnu.org>. Full text available.
Report forwarded to bug-submit-list <at> lists.donarmstrong.com, Emacs Bugs <bug-gnu-emacs <at> gnu.org>:
bug#1808; Package emacs. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Tue, 20 Sep 2011 19:45:02 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.