From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: =?UTF-8?Q?=C5=A0t=C4=9Bp=C3=A1n_?= =?UTF-8?Q?N=C4=9Bmec?= Newsgroups: gmane.emacs.bugs Subject: bug#4839: 23.1.50; *Buffer List* -- incorrect handling of multibyte characters? Date: Tue, 3 Nov 2009 18:02:55 +0100 Message-ID: <20091103170255.GA1007@headley> References: <878wen4mrq.fsf@stupidchicken.com> Reply-To: =?UTF-8?Q?=C5=A0t=C4=9Bp=C3=A1n_?= =?UTF-8?Q?N=C4=9Bmec?= , 4839@emacsbugs.donarmstrong.com NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1257269271 26964 80.91.229.12 (3 Nov 2009 17:27:51 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 3 Nov 2009 17:27:51 +0000 (UTC) Cc: 4839@emacsbugs.donarmstrong.com, Andreas Schwab To: Chong Yidong Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Nov 03 18:27:42 2009 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1N5NAK-0000wl-DA for geb-bug-gnu-emacs@m.gmane.org; Tue, 03 Nov 2009 18:27:32 +0100 Original-Received: from localhost ([127.0.0.1]:51199 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1N5NAJ-0004LX-PV for geb-bug-gnu-emacs@m.gmane.org; Tue, 03 Nov 2009 12:27:31 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1N5NAE-0004LN-5x for bug-gnu-emacs@gnu.org; Tue, 03 Nov 2009 12:27:26 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1N5NA9-0004IB-JI for bug-gnu-emacs@gnu.org; Tue, 03 Nov 2009 12:27:25 -0500 Original-Received: from [199.232.76.173] (port=38467 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1N5NA9-0004Hy-A0 for bug-gnu-emacs@gnu.org; Tue, 03 Nov 2009 12:27:21 -0500 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:35523) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1N5NA8-00063O-MY for bug-gnu-emacs@gnu.org; Tue, 03 Nov 2009 12:27:21 -0500 Original-Received: from rzlab.ucr.edu (rzlab.ucr.edu [127.0.0.1]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id nA3HRGco008322; Tue, 3 Nov 2009 09:27:16 -0800 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.14.3/8.14.3/Submit) id nA3HA502006933; Tue, 3 Nov 2009 09:10:05 -0800 Resent-Date: Tue, 3 Nov 2009 09:10:05 -0800 X-Loop: owner@emacsbugs.donarmstrong.com Resent-From: =?UTF-8?Q?=C5=A0t=C4=9Bp=C3=A1n_?= =?UTF-8?Q?N=C4=9Bmec?= Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs 2Resent-Date: Tue, 03 Nov 2009 17:10:05 +0000 Resent-Message-ID: Resent-Sender: owner@emacsbugs.donarmstrong.com X-Emacs-PR-Message: followup 4839 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Original-Received: via spool by 4839-submit@emacsbugs.donarmstrong.com id=B4839.12572677375711 (code B ref 4839); Tue, 03 Nov 2009 17:10:05 +0000 Original-Received: (at 4839) by emacsbugs.donarmstrong.com; 3 Nov 2009 17:02:17 +0000 X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. Original-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 Original-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= Original-Received: by 10.204.13.204 with SMTP id d12mr242751bka.61.1257267729778; Tue, 03 Nov 2009 09:02:09 -0800 (PST) Original-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) Content-Disposition: inline In-Reply-To: <878wen4mrq.fsf@stupidchicken.com> User-Agent: Mutt/1.5.20 (2009-08-27) X-MIME-Autoconverted: from 8bit to quoted-printable by rzlab.ucr.edu id nA3HRGco008322 X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) Resent-Date: Tue, 03 Nov 2009 12:27:25 -0500 X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:32390 Archived-At: 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? >=20 > *** emacs/lisp/buff-menu.el.~1.129.~ 2009-11-03 10:38:11.000000000 -050= 0 > --- 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)) > =20 > (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))) > =20 > (defun Buffer-menu-sort (column) > "Sort the buffer menu by COLUMN." Tested; with this above change; the alignment is as expected. Thanks! =C5=A0t=C4=9Bp=C3=A1n N=C4=9Bmec