From stepnem@gmail.com Sat Oct 31 06:46:30 2009 Received: (at submit) by emacsbugs.donarmstrong.com; 31 Oct 2009 13:46:30 +0000 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=AWL,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.14.3/8.14.3/Debian-5) with ESMTP id n9VDkTpY012872 for ; Sat, 31 Oct 2009 06:46:30 -0700 Received: from mail.gnu.org ([199.232.76.166]:35116 helo=mx10.gnu.org) by fencepost.gnu.org with esmtp (Exim 4.67) (envelope-from ) id 1N4EHk-0005wP-72 for emacs-pretest-bug@gnu.org; Sat, 31 Oct 2009 09:46:28 -0400 Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1N4EHi-0001PQ-8O for emacs-pretest-bug@gnu.org; Sat, 31 Oct 2009 09:46:28 -0400 Received: from mail-bw0-f215.google.com ([209.85.218.215]:39978) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1N4EHh-0001PC-Lj for emacs-pretest-bug@gnu.org; Sat, 31 Oct 2009 09:46:26 -0400 Received: by bwz7 with SMTP id 7so4635709bwz.26 for ; Sat, 31 Oct 2009 06:46:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:from:to:subject:date :message-id:mime-version:content-type:content-transfer-encoding; bh=K240cj081QfrI8TA+d5hT3pyVfIi6X7yHR+LXBDMJDw=; b=h6aC3xjT729aH/z43hF2ENXcMIZZvYeuet1ZAjxHgdImu1nbp0Y3FMN6ZPo3X7nz6D fJnBopLEN5auKW/eSbTUKGvrCivyM6o/WzEG/jxVsJ2MgIZoXbDLBMSyXHfCHXtaVuhA HMj5nHu7gyb1AoroMm6rKa1fJg24zZnAS17Gk= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:subject:date:message-id:mime-version:content-type :content-transfer-encoding; b=EYFilw9d1wU2JEr3tDAPqQ6r7kWxAeY0U5A7FVK8XgJCddtYwj3+b5Dau24VAESGm0 A4z65OodoWDhkNVO6yCQDmDW7itov1ipr17xNi8iqUjZe+VVElTIjU14PfRZcI4ijtrQ UVTn/W7hgsDKpeKYG7BUwo6amtN3ZzDah2nk0= Received: by 10.204.25.5 with SMTP id x5mr2040071bkb.166.1256996784323; Sat, 31 Oct 2009 06:46:24 -0700 (PDT) Received: from localhost ([88.103.132.186]) by mx.google.com with ESMTPS id z10sm3795228fka.3.2009.10.31.06.46.23 (version=TLSv1/SSLv3 cipher=RC4-MD5); Sat, 31 Oct 2009 06:46:23 -0700 (PDT) From: stepnem@gmail.com To: emacs-pretest-bug@gnu.org Subject: 23.1.50; *Buffer List* -- incorrect handling of multibyte characters? Date: Sat, 31 Oct 2009 14:46:58 +0100 Message-ID: <87eiojy8tp.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) Here is a part of my *Buffer List*: desktop-menu.el 20228 Emacs-Lisp ~/.emacs.d/load/desktop-m= enu.el pystor.py 6607 Python ~/Programs/Python/pystor.= py init.el 13139 Emacs-Lisp ~/.emacs.d/init.el scim-bridge.el 107533 Emacs-Lisp ~/.emacs.d/load/scim-brid= ge.el =E9=9D=A2=E7=84=A1=E4=BA=BA=E8=89=B2.org 11681 Org = ~/Documents/ling/cn/=E9=9D=A2=E7=84=A1=E4=BA=BA=E8=89=B2.org xhc.org 1833 Org ~/Documents/ling/cn/xhc.o= rg =E8=AF=8D=E5=85=B8.org 2940 Org ~/Documents= /ling/cn/=E8=AF=8D=E5=85=B8.org =E9=84=AD=E5=BC=B5=E5=8F=A4=E9=9F=B3.org 11993 Org = ~/Documents/ling/cn/=E9=84=AD=E5=BC=B5=E5=8F=A4=E9=9F=B3.org ruznoct 2631 Fundamental ~/Documents/ling/cn/ruzno= ct % *info*<2> 300707 Info (org) External links % *info* 299983 Info (ansicl) define-symbol-ma= cro All the `Org' lines, with exception of `xhc.org', are misaligned. If Emacs crashed, and you have the Emacs process in the gdb debugger, please include the output from the following gdb commands: `bt full' and `xbacktrace'. For information about debugging Emacs, please read the file /usr/local/share/emacs/23.1.50/etc/DEBUG. In GNU Emacs 23.1.50.1 (i686-pc-linux-gnu, GTK+ Version 2.12.9) of 2009-10-28 on headley Windowing system distributor `The X.Org Foundation', version 11.0.10400090 Important settings: value of $LC_ALL: nil value of $LC_COLLATE: nil value of $LC_CTYPE: nil value of $LC_MESSAGES: nil value of $LC_MONETARY: nil value of $LC_NUMERIC: nil value of $LC_TIME: nil value of $LANG: en_GB.UTF-8 value of $XMODIFIERS: @im=3Dscim locale-coding-system: utf-8-unix default enable-multibyte-characters: t Major mode: Buffer Menu Minor modes in effect: show-paren-mode: t partial-completion-mode: t icomplete-mode: t iswitchb-mode: t recentf-mode: t tooltip-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 size-indication-mode: t column-number-mode: t line-number-mode: t transient-mark-mode: t Recent input: a m e k k k k k k=20 k k k k k k M-s j j j j j j j j j j j j k k k k k k=20 k k k / c a d r k k k k k k k k k k k k k=20 k k k k k k k k k k k k k k k k k k k k k =20 =20 =20 =20 =20 j j j j j j j j j j j j j j j j j j j j=20 j j j j j j j j k j j j j j j j j j j j j j j j j k=20 k k k k k k k k k k k k k k k k k j j j j j j j j j=20 j j j j j j j j j j k k k k k k k k k k k k k k k l=20 l l l l j j j j j j j j j j j j j j j j j j j j j j=20 j j j j j j j j j j j j j j j j j j j j j j j k k k=20 k k k k k k k k k k k k k k k k k k k k k C-x C-b T=20 T C-SPC C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n=20 M-w M-x r e p o r t Recent messages: uncompressing vc.el.gz...done Note: file is write protected uncompressing savehist.el.gz...done Note: file is write protected Desktop: 20 buffers restored. Saving file /home/stepnem/.emacs.d/load/desktop-menu.el... Wrote /home/stepnem/.emacs.d/load/desktop-menu.el Beginning of buffer [13 times] Mark set call-interactively: End of buffer [12 times] Load-path shadows: /usr/local/share/emacs/site-lisp/erc/erc-lang hides /usr/local/share/emacs/= 23.1.50/lisp/erc/erc-lang /usr/local/share/emacs/site-lisp/erc/erc-dcc hides /usr/local/share/emacs/2= 3.1.50/lisp/erc/erc-dcc /usr/local/share/emacs/site-lisp/erc/erc-services hides /usr/local/share/em= acs/23.1.50/lisp/erc/erc-services /usr/local/share/emacs/site-lisp/erc/erc-compat hides /usr/local/share/emac= s/23.1.50/lisp/erc/erc-compat /usr/local/share/emacs/site-lisp/erc/erc-ring hides /usr/local/share/emacs/= 23.1.50/lisp/erc/erc-ring /usr/local/share/emacs/site-lisp/erc/erc-replace hides /usr/local/share/ema= cs/23.1.50/lisp/erc/erc-replace /usr/local/share/emacs/site-lisp/erc/erc-truncate hides /usr/local/share/em= acs/23.1.50/lisp/erc/erc-truncate /usr/local/share/emacs/site-lisp/erc/erc-button hides /usr/local/share/emac= s/23.1.50/lisp/erc/erc-button /usr/local/share/emacs/site-lisp/erc/erc hides /usr/local/share/emacs/23.1.= 50/lisp/erc/erc /usr/local/share/emacs/site-lisp/erc/erc-list hides /usr/local/share/emacs/= 23.1.50/lisp/erc/erc-list /usr/local/share/emacs/site-lisp/erc/erc-pcomplete hides /usr/local/share/e= macs/23.1.50/lisp/erc/erc-pcomplete /usr/local/share/emacs/site-lisp/erc/erc-capab hides /usr/local/share/emacs= /23.1.50/lisp/erc/erc-capab /usr/local/share/emacs/site-lisp/erc/erc-ezbounce hides /usr/local/share/em= acs/23.1.50/lisp/erc/erc-ezbounce /usr/local/share/emacs/site-lisp/erc/erc-networks hides /usr/local/share/em= acs/23.1.50/lisp/erc/erc-networks /usr/local/share/emacs/site-lisp/erc/erc-netsplit hides /usr/local/share/em= acs/23.1.50/lisp/erc/erc-netsplit /usr/local/share/emacs/site-lisp/erc/erc-goodies hides /usr/local/share/ema= cs/23.1.50/lisp/erc/erc-goodies /usr/local/share/emacs/site-lisp/erc/erc-speedbar hides /usr/local/share/em= acs/23.1.50/lisp/erc/erc-speedbar /usr/local/share/emacs/site-lisp/erc/erc-xdcc hides /usr/local/share/emacs/= 23.1.50/lisp/erc/erc-xdcc /usr/local/share/emacs/site-lisp/erc/erc-fill hides /usr/local/share/emacs/= 23.1.50/lisp/erc/erc-fill /usr/local/share/emacs/site-lisp/erc/erc-imenu hides /usr/local/share/emacs= /23.1.50/lisp/erc/erc-imenu /usr/local/share/emacs/site-lisp/erc/erc-log hides /usr/local/share/emacs/2= 3.1.50/lisp/erc/erc-log /usr/local/share/emacs/site-lisp/erc/erc-track hides /usr/local/share/emacs= /23.1.50/lisp/erc/erc-track /usr/local/share/emacs/site-lisp/erc/erc-hecomplete hides /usr/local/share/= emacs/23.1.50/lisp/erc/erc-hecomplete /usr/local/share/emacs/site-lisp/erc/erc-stamp hides /usr/local/share/emacs= /23.1.50/lisp/erc/erc-stamp /usr/local/share/emacs/site-lisp/erc/erc-autoaway hides /usr/local/share/em= acs/23.1.50/lisp/erc/erc-autoaway /usr/local/share/emacs/site-lisp/erc/erc-menu hides /usr/local/share/emacs/= 23.1.50/lisp/erc/erc-menu /usr/local/share/emacs/site-lisp/erc/erc-match hides /usr/local/share/emacs= /23.1.50/lisp/erc/erc-match /usr/local/share/emacs/site-lisp/erc/erc-backend hides /usr/local/share/ema= cs/23.1.50/lisp/erc/erc-backend /usr/local/share/emacs/site-lisp/erc/erc-join hides /usr/local/share/emacs/= 23.1.50/lisp/erc/erc-join /usr/local/share/emacs/site-lisp/erc/erc-sound hides /usr/local/share/emacs= /23.1.50/lisp/erc/erc-sound /usr/local/share/emacs/site-lisp/erc/erc-page hides /usr/local/share/emacs/= 23.1.50/lisp/erc/erc-page /usr/local/share/emacs/site-lisp/erc/erc-identd hides /usr/local/share/emac= s/23.1.50/lisp/erc/erc-identd /usr/local/share/emacs/site-lisp/erc/erc-notify hides /usr/local/share/emac= s/23.1.50/lisp/erc/erc-notify /usr/local/share/emacs/site-lisp/erc/erc-spelling hides /usr/local/share/em= acs/23.1.50/lisp/erc/erc-spelling /usr/local/share/emacs/site-lisp/erc/erc-ibuffer hides /usr/local/share/ema= cs/23.1.50/lisp/erc/erc-ibuffer Features: (shadow mail-extr message ecomplete rfc822 mml mml-sec password-cache mm-decode mm-bodies mm-encode mailcap mail-parse rfc2231 rfc2047 rfc2045 qp ietf-drums mailabbrev nnheader gnus-util netrc mm-util mail-prsvr gmm-utils mailheader canlock sha1 hex-util hashcash mail-utils emacsbug sendmail vc-rcs slime-asdf slime-fancy slime-fontifying-fu slime-package-fu slime-mdot-fu slime-references slime-xref-browser slime-scratch slime-presentations slime-highlight-edits slime-fuzzy slime-fancy-inspector slime-c-p-c slime-editing-commands slime-autodoc slime-enclosing-context slime-parse slime-repl slime derived pp hyperspec browse-url org-wl org-w3m org-vm org-rmail org-mhe org-mew org-irc org-jsinfo org-infojs org-html org-exp org-exp-blocks org-agenda org-info org-gnus org-bibtex org-bbdb org byte-opt bytecomp byte-compile org-footnote org-src org-list org-faces org-compat org-macs time-date hideshow foldout noutline outline easy-mmode python-21 python jka-compr sym-comp apropos paren eldoc savehist cus-start cus-load bbdb-autoloads bbdb timezone ee-autoloads scim-bridge quack regexp-opt thingatpt compile cmuscheme comint scheme slime-autoloads info-look info viper edmacro kmacro viper-ex viper-macs viper-mous viper-cmd viper-keym ring viper-util viper-init advice help-fns advice-preload complete icomplete iswitchb recentf tree-widget wid-edit easymenu desktop-menu cl cl-19 desktop avoid tooltip ediff-hook vc-hooks lisp-float-type mwheel x-win x-dnd tool-bar dnd fontset image fringe lisp-mode register page menu-bar rfn-eshadow timer select scroll-bar mldrag mouse jit-lock font-lock syntax facemenu font-core frame cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese case-table epa-hook jka-cmpr-hook help simple abbrev loaddefs button minibuffer faces cus-face text-properties overlay md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote make-network-process dbusbind gtk x-toolkit x multi-tty emacs) From rgm@gnu.org Mon Nov 2 01:08:18 2009 Received: (at 4839) by emacsbugs.donarmstrong.com; 2 Nov 2009 09:08:18 +0000 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=-6.8 required=4.0 tests=AWL,GMAIL,HAS_BUG_NUMBER, X_DEBBUGS_NO_ACK autolearn=ham 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.14.3/8.14.3/Debian-5) with ESMTP id nA298GeU027860 for <4839@emacsbugs.donarmstrong.com>; Mon, 2 Nov 2009 01:08:18 -0800 Received: from rgm by fencepost.gnu.org with local (Exim 4.67) (envelope-from ) id 1N4stc-0002Ec-5P; Mon, 02 Nov 2009 04:08:16 -0500 From: Glenn Morris To: stepnem@gmail.com Cc: 4839@debbugs.gnu.org Subject: Re: bug#4839: 23.1.50; *Buffer List* -- incorrect handling of multibyte characters? References: <87eiojy8tp.fsf@gmail.com> X-Spook: Venezuela Nazi spies World Trade Center SAPO Clinton X-Ran: &Cg1C,<"4,i5iP1r\'fVCyF\]RR)Ftvl}x+n1.f1QkK@NG|y(`C_:,VE~-(;`zuYi0j`[& X-Hue: cyan X-Debbugs-No-Ack: yes X-Attribution: GM Date: Mon, 02 Nov 2009 04:08:16 -0500 Message-ID: User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable stepnem@gmail.com wrote: > Here is a part of my *Buffer List*: > > desktop-menu.el 20228 Emacs-Lisp ~/.emacs.d/load/desktop= -menu.el [...] > =E9=9D=A2=E7=84=A1=E4=BA=BA=E8=89=B2.org 11681 Org = ~/Documents/ling/cn/=E9=9D=A2=E7=84=A1=E4=BA=BA=E8=89=B2.org > xhc.org 1833 Org ~/Documents/ling/cn/xhc= .org > =E8=AF=8D=E5=85=B8.org 2940 Org ~/Documen= ts/ling/cn/=E8=AF=8D=E5=85=B8.org [...] > All the `Org' lines, with exception of `xhc.org', are misaligned. When I copy and paste your buffer names, the issue seems to be that `string-width' returns an incorrect value (eg 13 when the buffer name actually seems to occupy 12). Although some of these characters seem to have a non-integer width on my system, so I don't see that it is possible to get this right. But it still looks more wrong than it should be (off by > 1 character). From stepnem@gmail.com Mon Nov 2 07:20:43 2009 Received: (at 4839) by emacsbugs.donarmstrong.com; 2 Nov 2009 15:20:43 +0000 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.9 required=4.0 tests=AWL,GMAIL,HAS_BUG_NUMBER autolearn=ham version=3.2.5-bugs.debian.org_2005_01_02 Received: from mail-bw0-f227.google.com (mail-bw0-f227.google.com [209.85.218.227]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id nA2FKf8e030514 for <4839@emacsbugs.donarmstrong.com>; Mon, 2 Nov 2009 07:20:42 -0800 Received: by bwz27 with SMTP id 27so8219041bwz.1 for <4839@emacsbugs.donarmstrong.com>; Mon, 02 Nov 2009 07:20:35 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:date:from:to:cc:subject :message-id:references:mime-version:content-type:content-disposition :content-transfer-encoding:in-reply-to:user-agent; bh=tRTmVcmEZbRzKiDEfFR+MXtp5Hy1vrOzphuJkh5udUc=; b=WzhunTgkuS4XWutnLel82Vl6FZyAAJcHHLy3vXxTgVLUQzbHOsdxfZYV91qcU9JnWE PcGU1Tm/3/JlheN9w2mfbkQ2ofs/UMDD6S5/y50Z658QA3nh172ltRTwNtVLx1pd97Ia DCOSfEValqA0dXZyRtaF8vvw3sPUJJ0OLKRlw= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=date:from:to:cc:subject:message-id:references:mime-version :content-type:content-disposition:content-transfer-encoding :in-reply-to:user-agent; b=R4sCxZhW5QMxIEAk/ZpM9VTqLIMFaCjRzoqqXme2MgL2+30LGpgt7TvZmWED5dGNV7 vSd3RQNrAepUaq3l12c1+HVko19W07KISzZq9Hyox838OU9hO0fMajFVSt7Xlc+3acB7 79smzLoiEawCQrYNevwAKQXgnkQHUlr7fSTu0= Received: by 10.204.153.3 with SMTP id i3mr4039152bkw.26.1257175235055; Mon, 02 Nov 2009 07:20:35 -0800 (PST) Received: from localhost ([88.103.132.186]) by mx.google.com with ESMTPS id d13sm6451376fka.22.2009.11.02.07.20.33 (version=TLSv1/SSLv3 cipher=RC4-MD5); Mon, 02 Nov 2009 07:20:34 -0800 (PST) Date: Mon, 2 Nov 2009 16:21:17 +0100 From: =?utf-8?B?xaB0xJtww6FuIE7Em21lYw==?= To: Glenn Morris Cc: 4839@debbugs.gnu.org Subject: Re: bug#4839: 23.1.50; *Buffer List* -- incorrect handling of multibyte characters? Message-ID: <20091102152117.GA14203@headley> References: <87eiojy8tp.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: Mutt/1.5.20 (2009-08-27) On Mon, Nov 02, 2009 at 04:08:16AM -0500, Glenn Morris wrote: > stepnem@gmail.com wrote: > > > Here is a part of my *Buffer List*: > > > > desktop-menu.el 20228 Emacs-Lisp ~/.emacs.d/load/desktop-menu.el > [...] > > 面無人色.org 11681 Org ~/Documents/ling/cn/面無人色.org > > xhc.org 1833 Org ~/Documents/ling/cn/xhc.org > > 词典.org 2940 Org ~/Documents/ling/cn/词典.org > [...] > > All the `Org' lines, with exception of `xhc.org', are misaligned. > > When I copy and paste your buffer names, the issue seems to be that > `string-width' returns an incorrect value (eg 13 when the buffer name > actually seems to occupy 12). Although some of these characters seem > to have a non-integer width on my system, so I don't see that it is > possible to get this right. But it still looks more wrong than it > should be (off by > 1 character). Yes -- when I view your quotation from my mail above in Mutt, it's aligned correctly, but as soon as I cut & paste it into an Emacs buffer, it's misaligned again, the exact same way as displayed in the *Buffer List*... From schwab@linux-m68k.org Mon Nov 2 07:40:25 2009 Received: (at 4839) by emacsbugs.donarmstrong.com; 2 Nov 2009 15:40:25 +0000 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=-2.4 required=4.0 tests=AWL,GMAIL,HAS_BUG_NUMBER, SPF_HELO_PASS autolearn=ham version=3.2.5-bugs.debian.org_2005_01_02 Received: from mx1.redhat.com (mx1.redhat.com [209.132.183.28]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id nA2FeMD0032387 for <4839@emacsbugs.donarmstrong.com>; Mon, 2 Nov 2009 07:40:24 -0800 Received: from int-mx08.intmail.prod.int.phx2.redhat.com (int-mx08.intmail.prod.int.phx2.redhat.com [10.5.11.21]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id nA2FeLml006443; Mon, 2 Nov 2009 10:40:22 -0500 Received: from hase.home (ovpn01.gateway.prod.ext.phx2.redhat.com [10.5.9.1]) by int-mx08.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id nA2FeKN2027521; Mon, 2 Nov 2009 10:40:20 -0500 From: Andreas Schwab To: =?utf-8?B?xaB0xJtww6FuIE7Em21lYw==?= Cc: 4839@debbugs.gnu.org, Glenn Morris Subject: Re: bug#4839: 23.1.50; *Buffer List* -- incorrect handling of multibyte characters? References: <87eiojy8tp.fsf@gmail.com> <20091102152117.GA14203@headley> X-Yow: -- I can do ANYTHING ... I can even ... SHOPLIFT!! Date: Mon, 02 Nov 2009 16:40:19 +0100 In-Reply-To: <20091102152117.GA14203@headley> (=?utf-8?B?IsWgdMSbcMOhbiBO?= =?utf-8?B?xJttZWMiJ3M=?= message of "Mon, 2 Nov 2009 16:21:17 +0100") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Scanned-By: MIMEDefang 2.67 on 10.5.11.21 =C5=A0t=C4=9Bp=C3=A1n N=C4=9Bmec writes: > On Mon, Nov 02, 2009 at 04:08:16AM -0500, Glenn Morris wrote: >> stepnem@gmail.com wrote: >>=20 >> > Here is a part of my *Buffer List*: >> > >> > desktop-menu.el 20228 Emacs-Lisp ~/.emacs.d/load/desk= top-menu.el >> [...] >> > =E9=9D=A2=E7=84=A1=E4=BA=BA=E8=89=B2.org 11681 Org = ~/Documents/ling/cn/=E9=9D=A2=E7=84=A1=E4=BA=BA=E8=89=B2.org >> > xhc.org 1833 Org ~/Documents/ling/cn/= xhc.org >> > =E8=AF=8D=E5=85=B8.org 2940 Org ~/Docu= ments/ling/cn/=E8=AF=8D=E5=85=B8.org >> [...] >> > All the `Org' lines, with exception of `xhc.org', are misaligned. >>=20 >> When I copy and paste your buffer names, the issue seems to be that >> `string-width' returns an incorrect value (eg 13 when the buffer name >> actually seems to occupy 12). Although some of these characters seem >> to have a non-integer width on my system, so I don't see that it is >> possible to get this right. But it still looks more wrong than it >> should be (off by > 1 character). > > Yes -- when I view your quotation from my mail above in Mutt, it's > aligned correctly, but as soon as I cut & paste it into an Emacs buffer, > it's misaligned again, the exact same way as displayed in the *Buffer Lis= t*... If the double width characters are not exactly twice as wide as the single width characters there is not much that can be done about that. Andreas. --=20 Andreas Schwab, schwab@linux-m68k.org GPG Key fingerprint =3D 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5 "And now for something completely different." From stepnem@gmail.com Mon Nov 2 07:43:37 2009 Received: (at 4839) by emacsbugs.donarmstrong.com; 2 Nov 2009 15:43:37 +0000 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=-1.8 required=4.0 tests=AWL,HAS_BUG_NUMBER autolearn=ham version=3.2.5-bugs.debian.org_2005_01_02 Received: from fg-out-1718.google.com (fg-out-1718.google.com [72.14.220.154]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id nA2FhZiU032547 for <4839@emacsbugs.donarmstrong.com>; Mon, 2 Nov 2009 07:43:36 -0800 Received: by fg-out-1718.google.com with SMTP id e12so86527fga.13 for <4839@emacsbugs.donarmstrong.com>; Mon, 02 Nov 2009 07:43:34 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:date:from:to:cc:subject :message-id:references:mime-version:content-type:content-disposition :in-reply-to:user-agent; bh=xyk1Kw/7lDeggpZuvH3BnKJKwU//mAFSGlvyPaM8HHs=; b=a2nCfFWJsX1vhm94IpLjZDrGQo1Hf26+Nfv+jRf4nhRHhmc7Tr5wYuZ7nrKhPHFtCT PEJ0LkDE3MSmzLE1sZf8SgKcPIqs+pQ1pfVu3cyiI+zOqylxokipowoeNZzQYdpzWOQL jelZbn26jFXcsI66gvB0ic3BwYxLDXPu2blz4= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=date:from:to:cc:subject:message-id:references:mime-version :content-type:content-disposition:in-reply-to:user-agent; b=s/+b5Z+ZfXTJDvC0Zv28K5QUbsCUQ8CB4eresx/bpAiCPrKcLCYPGIs+6TxAxnAwPP ByqqoUavmtnf99MrE9rx5NPGBrtSqWJM7qdhlg+NIa1RZXXjtbbTknknCiLYqMQ+Hs3m 7AH3m6AlzVNzTq9+Y8/tyIKHqUgAqpodyX/Ik= Received: by 10.204.154.135 with SMTP id o7mr3713819bkw.201.1257176614694; Mon, 02 Nov 2009 07:43:34 -0800 (PST) Received: from localhost ([88.103.132.186]) by mx.google.com with ESMTPS id 21sm8011733fkx.57.2009.11.02.07.43.33 (version=TLSv1/SSLv3 cipher=RC4-MD5); Mon, 02 Nov 2009 07:43:33 -0800 (PST) Date: Mon, 2 Nov 2009 16:44:17 +0100 From: =?utf-8?B?xaB0xJtww6FuIE7Em21lYw==?= To: Glenn Morris Cc: 4839@debbugs.gnu.org Subject: Re: bug#4839: 23.1.50; *Buffer List* -- incorrect handling of multibyte characters? Message-ID: <20091102154417.GA12838@headley> References: <87eiojy8tp.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.20 (2009-08-27) [forgot to preserve a ML Cc: header, resending, sorry] ... which (the Mutt/Vim/terminal in general vs Emacs difference) is obviously caused by the fact that in the former, the CJK occupies exactly two latin-character widths, unlike Emacs (the GUI version) which uses the same font for Latin characters (Deja Vu Sans Mono), but "xft:-unknown-Kochi Gothic-normal-normal-normal-*-16-*-*-*-*-0-iso10646-1" for CJK (I'm not sure about the CJK font in the terminal). emacs -nw aligns the characters properly, just as the other programs (but C-u C-x = doesn't show the font name used). From stepnem@gmail.com Mon Nov 2 07:55:11 2009 Received: (at 4839) by emacsbugs.donarmstrong.com; 2 Nov 2009 15:55:11 +0000 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=-1.6 required=4.0 tests=AWL,GMAIL,HAS_BUG_NUMBER autolearn=ham version=3.2.5-bugs.debian.org_2005_01_02 Received: from mail-bw0-f227.google.com (mail-bw0-f227.google.com [209.85.218.227]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id nA2Ft9nd001164 for <4839@emacsbugs.donarmstrong.com>; Mon, 2 Nov 2009 07:55:10 -0800 Received: by bwz27 with SMTP id 27so8259633bwz.1 for <4839@emacsbugs.donarmstrong.com>; Mon, 02 Nov 2009 07:55:03 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:date:from:to:cc:subject :message-id:references:mime-version:content-type:content-disposition :content-transfer-encoding:in-reply-to:user-agent; bh=2EBb/hHqexm8nYZpQnQ5tr2246rU8s6HUH/wuzQn/CE=; b=LeZBYvrEEFJZV52up9rMpNed3pwuw50usf/E/Jx75xgaoNV/9/SSEFj6dlZRm+jb5d S+tQByQTPWUvI7Au/cLy/xRbM6C0r7MdJSLxZRxUdYhQX1eer82ilotl6guaVrcg+/4T 325g67hsspYjz/BQnyfRF21gp1xbeQH9tvTgU= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=date:from:to:cc:subject:message-id:references:mime-version :content-type:content-disposition:content-transfer-encoding :in-reply-to:user-agent; b=CzHT7LmHjthEJHAMtcCtqQemgBrmKfOxlbTRBiHuxX/S+4MkTgJxxB4NbiLRTyetYy mTOOXFaztbnl9a1WbKrCLSag37ZrSTrrkJ3VC0yiRvvyx3+rppMM/1stcu6N7t8RKEuq RCEK67a29I3VVWG5aTpo/nrkxl51APipQ0NGA= Received: by 10.204.34.78 with SMTP id k14mr4099918bkd.106.1257177303087; Mon, 02 Nov 2009 07:55:03 -0800 (PST) Received: from localhost ([88.103.132.186]) by mx.google.com with ESMTPS id z10sm8155641fka.3.2009.11.02.07.55.01 (version=TLSv1/SSLv3 cipher=RC4-MD5); Mon, 02 Nov 2009 07:55:01 -0800 (PST) Date: Mon, 2 Nov 2009 16:55:45 +0100 From: =?utf-8?B?xaB0xJtww6FuIE7Em21lYw==?= To: Andreas Schwab Cc: 4839@debbugs.gnu.org Subject: Re: bug#4839: 23.1.50; *Buffer List* -- incorrect handling of multibyte characters? Message-ID: <20091102155545.GC14203@headley> References: <87eiojy8tp.fsf@gmail.com> <20091102152117.GA14203@headley> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: Mutt/1.5.20 (2009-08-27) On Mon, Nov 02, 2009 at 04:40:19PM +0100, Andreas Schwab wrote: > Štěpán Němec writes: > > > On Mon, Nov 02, 2009 at 04:08:16AM -0500, Glenn Morris wrote: > >> stepnem@gmail.com wrote: > >> > >> > Here is a part of my *Buffer List*: > >> > > >> > desktop-menu.el 20228 Emacs-Lisp ~/.emacs.d/load/desktop-menu.el > >> [...] > >> > 面無人色.org 11681 Org ~/Documents/ling/cn/面無人色.org > >> > xhc.org 1833 Org ~/Documents/ling/cn/xhc.org > >> > 词典.org 2940 Org ~/Documents/ling/cn/词典.org > >> [...] > >> > All the `Org' lines, with exception of `xhc.org', are misaligned. > >> > >> When I copy and paste your buffer names, the issue seems to be that > >> `string-width' returns an incorrect value (eg 13 when the buffer name > >> actually seems to occupy 12). Although some of these characters seem > >> to have a non-integer width on my system, so I don't see that it is > >> possible to get this right. But it still looks more wrong than it > >> should be (off by > 1 character). > > > > Yes -- when I view your quotation from my mail above in Mutt, it's > > aligned correctly, but as soon as I cut & paste it into an Emacs buffer, > > it's misaligned again, the exact same way as displayed in the *Buffer List*... > > If the double width characters are not exactly twice as wide as the > single width characters there is not much that can be done about that. Indeed, that's what I just realized, too :-) Probably not much, apart from making Emacs smarter in choosing fonts that do align properly (i.e. the widths are multiples of some common base). I'm not sure how other GUI apps go about that... but I'm guessing there must be ways to align columns properly even in cases like this one -- after all, there are other than mono-spaced fonts, so the common base might in fact not be a necessary condition...? From jasonrumney@gmail.com Mon Nov 2 14:49:15 2009 Received: (at 4839) by emacsbugs.donarmstrong.com; 2 Nov 2009 22:49:15 +0000 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=-2.9 required=4.0 tests=AWL,GMAIL,HAS_BUG_NUMBER autolearn=ham version=3.2.5-bugs.debian.org_2005_01_02 Received: from mail-bw0-f227.google.com (mail-bw0-f227.google.com [209.85.218.227]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id nA2MnDof010944 for <4839@emacsbugs.donarmstrong.com>; Mon, 2 Nov 2009 14:49:15 -0800 Received: by bwz27 with SMTP id 27so8736153bwz.1 for <4839@emacsbugs.donarmstrong.com>; Mon, 02 Nov 2009 14:49:07 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:sender:received:message-id :date:from:user-agent:mime-version:to:cc:subject:references :in-reply-to:content-type:content-transfer-encoding; bh=eEQ5gNODj197akw0pB2Wmox3NJnvFDIL00IOZTUFPD8=; b=pebxRkNXKqSlKHT/B873EQ5DNP828VmntieOwozJm8yTf0kln6QJt2aoXSL12ZsH+X 0/sAgI6HA+R0wjoXJktfed998c+W+Klfevnlu4FIHIum0wmr3/beSrhGQQ/G8+PeHFRz TqHJ7LnFpRc2UPYJFbC9+K1m/5g3c7h8LPg3w= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=sender:message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; b=H/0S9b9MVq2GqU3fRzLmwcmh4ENugjHyCdA4FoqHJWc2l4i8Zek5ZIwHB8MTjH1OOe WjmY96klVW+WDLX1pWl1P54bFcYf96rnNItcxAz2m9RNpIYfn7awC8O8NDjciLAAO+5I HAz+MD+koFuuYdkFj3y15SVMAS5vLvxEr7QB0= Received: by 10.204.24.130 with SMTP id v2mr4369539bkb.33.1257202147195; Mon, 02 Nov 2009 14:49:07 -0800 (PST) Received: from wanchan.jasonrumney.net ([118.100.163.63]) by mx.google.com with ESMTPS id 28sm9324565fkx.31.2009.11.02.14.49.05 (version=TLSv1/SSLv3 cipher=RC4-MD5); Mon, 02 Nov 2009 14:49:05 -0800 (PST) Sender: Jason Rumney Received: from wanchan.jasonrumney.net (localhost [127.0.0.1]) by wanchan.jasonrumney.net (Postfix) with ESMTP id 1BDA613AA; Tue, 3 Nov 2009 06:49:01 +0800 (MYT) Message-ID: <4AEF61DC.80206@gnu.org> Date: Tue, 03 Nov 2009 06:49:00 +0800 From: Jason Rumney User-Agent: Mozilla-Thunderbird 2.0.0.22 (X11/20090706) MIME-Version: 1.0 To: Andreas Schwab , 4839@debbugs.gnu.org CC: =?UTF-8?B?xaB0xJtww6FuIE7Em21lYw==?= Subject: Re: bug#4839: 23.1.50; *Buffer List* -- incorrect handling of multibyte characters? References: <87eiojy8tp.fsf@gmail.com> <20091102152117.GA14203@headley> In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Andreas Schwab wrote: > Štěpán Němec writes: > > If the double width characters are not exactly twice as wide as the > single width characters there is not much that can be done about that. > The columns should be aligned using tab-stops rather than spaces. (tab characters within file names would need special handling, but these are rare). From cyd@stupidchicken.com Tue Nov 3 08:05:22 2009 Received: (at 4839) by emacsbugs.donarmstrong.com; 3 Nov 2009 16:05:22 +0000 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=-1.9 required=4.0 tests=AWL,HAS_BUG_NUMBER, MURPHY_DRUGS_REL8 autolearn=ham version=3.2.5-bugs.debian.org_2005_01_02 Received: from pantheon-po25.its.yale.edu (pantheon-po25.its.yale.edu [130.132.50.119]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id nA3G5KNF000805 for <4839@emacsbugs.donarmstrong.com>; Tue, 3 Nov 2009 08:05:22 -0800 Received: from furry (dhcp128036014244.central.yale.edu [128.36.14.244]) (authenticated bits=0) by pantheon-po25.its.yale.edu (8.12.11.20060308/8.12.11) with ESMTP id nA3G5EA8024841 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Tue, 3 Nov 2009 11:05:14 -0500 Received: by furry (Postfix, from userid 1000) id 151BCC070; Tue, 3 Nov 2009 11:05:14 -0500 (EST) From: Chong Yidong To: Jason Rumney Cc: Andreas Schwab , 4839@debbugs.gnu.org, =?utf-8?B?xaB0xJtww6FuIE7Em21lYw==?= Subject: Re: bug#4839: 23.1.50; *Buffer List* -- incorrect handling of multibyte characters? Date: Tue, 03 Nov 2009 11:05:13 -0500 Message-ID: <878wen4mrq.fsf@stupidchicken.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-YaleITSMailFilter: Version 1.2c (attachment(s) not renamed) > > If the double width characters are not exactly twice as wide as the > > single width characters there is not much that can be done about that. > > > > The columns should be aligned using tab-stops rather than spaces. (tab > characters within file names would need special handling, but these > are rare). Or use the :align-to display property, as in this patch below. Could someone test it? *** emacs/lisp/buff-menu.el.~1.129.~ 2009-11-03 10:38:11.000000000 -0500 --- emacs/lisp/buff-menu.el 2009-11-03 11:02:21.000000000 -0500 *************** *** 678,689 **** (setq name (copy-sequence name))) (add-text-properties 0 (length name) name-props name) (add-text-properties 0 (length size) size-props size) ! (concat name ! (make-string (- Buffer-menu-buffer+size-width ! (string-width name) ! (string-width size)) ! ?\s) ! size)) (defun Buffer-menu-sort (column) "Sort the buffer menu by COLUMN." --- 678,690 ---- (setq name (copy-sequence name))) (add-text-properties 0 (length name) name-props name) (add-text-properties 0 (length size) size-props size) ! (let ((name+space-width (- Buffer-menu-buffer+size-width ! (string-width size)))) ! (concat name ! (propertize (make-string (- name+space-width (string-width name)) ! ?\s) ! 'display `(space :align-to ,(+ 4 name+space-width))) ! size))) (defun Buffer-menu-sort (column) "Sort the buffer menu by COLUMN." From stepnem@gmail.com Tue Nov 3 09:02:17 2009 Received: (at 4839) by emacsbugs.donarmstrong.com; 3 Nov 2009 17:02:17 +0000 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=-2.2 required=4.0 tests=AWL,HAS_BUG_NUMBER, MURPHY_DRUGS_REL8 autolearn=ham version=3.2.5-bugs.debian.org_2005_01_02 Received: from mail-bw0-f227.google.com (mail-bw0-f227.google.com [209.85.218.227]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id nA3H2Fw5005708 for <4839@emacsbugs.donarmstrong.com>; Tue, 3 Nov 2009 09:02:17 -0800 Received: by bwz27 with SMTP id 27so9870086bwz.1 for <4839@emacsbugs.donarmstrong.com>; Tue, 03 Nov 2009 09:02:09 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:date:from:to:cc:subject :message-id:references:mime-version:content-type:content-disposition :content-transfer-encoding:in-reply-to:user-agent; bh=f/SPiNM62eTWst68SkjPP+VQ4a8NVPChYNNuJf9e6MU=; b=hpFXWHfn2vrubzlx7r2+lvoa0Pdj4Q+gM4t+FC36S75mjH3ZYP+zeCUeg+vS9Rjato 71dn3Xcp7QCEcLFIvRE8pBu7y42Y2oJteZuisEhcKXgyjAQ2ARdrYUPx6/B2tQ5D1OLA la8Xj3va6G0d9MtSSv6iEhLvSgvFSGVLd2/7w= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=date:from:to:cc:subject:message-id:references:mime-version :content-type:content-disposition:content-transfer-encoding :in-reply-to:user-agent; b=eDhXyR6mP/DwzoSnrg9euDa3YQVJVON/6omwbnOM9Tyb06/oPRaUVwbWx0aOHw7qoz vA6VK/alHyw6UGO+5a35nHZSjk2fC27FFAcQ94R9Q4Aezik2JpTsEzLw/+2FqIze6jiV n5AM5t6sWWkkA5Py8rpCZkO6L1BZI9S3d0exw= Received: by 10.204.13.204 with SMTP id d12mr242751bka.61.1257267729778; Tue, 03 Nov 2009 09:02:09 -0800 (PST) Received: from localhost ([88.103.132.186]) by mx.google.com with ESMTPS id c28sm688362fka.54.2009.11.03.09.02.08 (version=TLSv1/SSLv3 cipher=RC4-MD5); Tue, 03 Nov 2009 09:02:09 -0800 (PST) Date: Tue, 3 Nov 2009 18:02:55 +0100 From: =?utf-8?B?xaB0xJtww6FuIE7Em21lYw==?= To: Chong Yidong Cc: Jason Rumney , Andreas Schwab , 4839@debbugs.gnu.org Subject: Re: bug#4839: 23.1.50; *Buffer List* -- incorrect handling of multibyte characters? Message-ID: <20091103170255.GA1007@headley> References: <878wen4mrq.fsf@stupidchicken.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <878wen4mrq.fsf@stupidchicken.com> User-Agent: Mutt/1.5.20 (2009-08-27) On Tue, Nov 03, 2009 at 11:05:13AM -0500, Chong Yidong wrote: > Or use the :align-to display property, as in this patch below. Could > someone test it? > > *** emacs/lisp/buff-menu.el.~1.129.~ 2009-11-03 10:38:11.000000000 -0500 > --- emacs/lisp/buff-menu.el 2009-11-03 11:02:21.000000000 -0500 > *************** > *** 678,689 **** > (setq name (copy-sequence name))) > (add-text-properties 0 (length name) name-props name) > (add-text-properties 0 (length size) size-props size) > ! (concat name > ! (make-string (- Buffer-menu-buffer+size-width > ! (string-width name) > ! (string-width size)) > ! ?\s) > ! size)) > > (defun Buffer-menu-sort (column) > "Sort the buffer menu by COLUMN." > --- 678,690 ---- > (setq name (copy-sequence name))) > (add-text-properties 0 (length name) name-props name) > (add-text-properties 0 (length size) size-props size) > ! (let ((name+space-width (- Buffer-menu-buffer+size-width > ! (string-width size)))) > ! (concat name > ! (propertize (make-string (- name+space-width (string-width name)) > ! ?\s) > ! 'display `(space :align-to ,(+ 4 name+space-width))) > ! size))) > > (defun Buffer-menu-sort (column) > "Sort the buffer menu by COLUMN." Tested; with this above change; the alignment is as expected. Thanks! Štěpán Němec From rgm@gnu.org Wed Nov 4 09:43:40 2009 Received: (at control) by emacsbugs.donarmstrong.com; 4 Nov 2009 17:43:41 +0000 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=-2.8 required=4.0 tests=AWL,ONEWORD 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.14.3/8.14.3/Debian-5) with ESMTP id nA4HhdZp002300 for ; Wed, 4 Nov 2009 09:43:40 -0800 Received: from rgm by fencepost.gnu.org with local (Exim 4.67) (envelope-from ) id 1N5jtS-0006JL-LO; Wed, 04 Nov 2009 12:43:38 -0500 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <19185.48458.601682.732332@fencepost.gnu.org> Date: Wed, 4 Nov 2009 12:43:38 -0500 From: Glenn Morris To: control Subject: control merge 4526 4846 severity 4839 minor tags 4838 moreinfo reassign 4840 emacs,ns reassign 4847 emacs,cc-mode unarchive 4122 forcemerge 4122 4866 reassign 4864 spam reassign 4865 spam From cyd@stupidchicken.com Fri Nov 6 11:15:41 2009 Received: (at 4839-done) by emacsbugs.donarmstrong.com; 6 Nov 2009 19:15:41 +0000 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=-1.4 required=4.0 tests=AWL,GMAIL,HAS_BUG_NUMBER autolearn=ham version=3.2.5-bugs.debian.org_2005_01_02 Received: from pantheon-po44.its.yale.edu (pantheon-po44.its.yale.edu [130.132.50.78]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id nA6JFd5R016994 for <4839-done@emacsbugs.donarmstrong.com>; Fri, 6 Nov 2009 11:15:41 -0800 Received: from furry (dhcp128036014244.central.yale.edu [128.36.14.244]) (authenticated bits=0) by pantheon-po44.its.yale.edu (8.12.11.20060308/8.12.11) with ESMTP id nA6JFX8W003712 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Fri, 6 Nov 2009 14:15:33 -0500 Received: by furry (Postfix, from userid 1000) id 2C43FC070; Fri, 6 Nov 2009 14:15:33 -0500 (EST) From: Chong Yidong To: =?utf-8?B?xaB0xJtww6FuIE7Em21lYw==?= Cc: Jason Rumney , Andreas Schwab , 4839-done@debbugs.gnu.org Subject: Re: bug#4839: 23.1.50; *Buffer List* -- incorrect handling of multibyte characters? References: <878wen4mrq.fsf@stupidchicken.com> <20091103170255.GA1007@headley> Date: Fri, 06 Nov 2009 14:15:33 -0500 In-Reply-To: <20091103170255.GA1007@headley> (=?utf-8?B?IsWgdMSbcMOhbiBO?= =?utf-8?B?xJttZWMiJ3M=?= message of "Tue, 3 Nov 2009 18:02:55 +0100") Message-ID: <87ocnfmpm2.fsf@stupidchicken.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-YaleITSMailFilter: Version 1.2c (attachment(s) not renamed) =C5=A0t=C4=9Bp=C3=A1n N=C4=9Bmec writes: > Tested; with this above change; the alignment is as expected. > Thanks! Checked in, thanks for testing. From unknown Sat Jun 21 02:56:42 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Sat, 05 Dec 2009 15:24:25 +0000 User-Agent: Fakemail v42.6.9 # A New Hope # A long time ago, in a galaxy far, far away # something happened. # # Magically this resulted in the following # action being taken, but this fake control # message doesn't tell you why it happened # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator