GNU bug report logs -
#4839
23.1.50; *Buffer List* -- incorrect handling of multibyte characters?
Previous Next
Reported by: stepnem <at> gmail.com
Date: Sat, 31 Oct 2009 13:55:05 UTC
Severity: minor
Done: Chong Yidong <cyd <at> stupidchicken.com>
Bug is archived. No further changes may be made.
To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 4839 in the body.
You can then email your comments to 4839 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
bug-submit-list <at> lists.donarmstrong.com, Emacs Bugs <bug-gnu-emacs <at> gnu.org>
:
bug#4839
; Package
emacs
.
(Sat, 31 Oct 2009 13:55:05 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
stepnem <at> gmail.com
:
New bug report received and forwarded. Copy sent to
Emacs Bugs <bug-gnu-emacs <at> gnu.org>
.
(Sat, 31 Oct 2009 13:55:05 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> emacsbugs.donarmstrong.com (full text, mbox):
Here is a part of my *Buffer List*:
desktop-menu.el 20228 Emacs-Lisp ~/.emacs.d/load/desktop-menu.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-bridge.el
面無人色.org 11681 Org ~/Documents/ling/cn/面無人色.org
xhc.org 1833 Org ~/Documents/ling/cn/xhc.org
词典.org 2940 Org ~/Documents/ling/cn/词典.org
鄭張古音.org 11993 Org ~/Documents/ling/cn/鄭張古音.org
ruznoct 2631 Fundamental ~/Documents/ling/cn/ruznoct
% *info*<2> 300707 Info (org) External links
% *info* 299983 Info (ansicl) define-symbol-macro
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=scim
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 <escape> <tab> <tab> <tab> <tab> k k k k k k
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
k k k / c a d r <return> k k k k k k k k k k k k k
k k k k k k k k k k k k k k k k k k k k k <backspace>
<backspace> <backspace> <backspace> <backspace> <backspace>
<backspace> <backspace> <backspace> <backspace> <backspace>
<backspace> <backspace> <backspace> <backspace> <backspace>
<backspace> <backspace> <backspace> <backspace> <backspace>
<backspace> j j j j j j j j j j j j j j j j j j j j
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
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
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
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
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
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
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
M-w M-x r e p o r t <return>
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/23.1.50/lisp/erc/erc-dcc
/usr/local/share/emacs/site-lisp/erc/erc-services hides /usr/local/share/emacs/23.1.50/lisp/erc/erc-services
/usr/local/share/emacs/site-lisp/erc/erc-compat hides /usr/local/share/emacs/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/emacs/23.1.50/lisp/erc/erc-replace
/usr/local/share/emacs/site-lisp/erc/erc-truncate hides /usr/local/share/emacs/23.1.50/lisp/erc/erc-truncate
/usr/local/share/emacs/site-lisp/erc/erc-button hides /usr/local/share/emacs/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/emacs/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/emacs/23.1.50/lisp/erc/erc-ezbounce
/usr/local/share/emacs/site-lisp/erc/erc-networks hides /usr/local/share/emacs/23.1.50/lisp/erc/erc-networks
/usr/local/share/emacs/site-lisp/erc/erc-netsplit hides /usr/local/share/emacs/23.1.50/lisp/erc/erc-netsplit
/usr/local/share/emacs/site-lisp/erc/erc-goodies hides /usr/local/share/emacs/23.1.50/lisp/erc/erc-goodies
/usr/local/share/emacs/site-lisp/erc/erc-speedbar hides /usr/local/share/emacs/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/23.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/emacs/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/emacs/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/emacs/23.1.50/lisp/erc/erc-identd
/usr/local/share/emacs/site-lisp/erc/erc-notify hides /usr/local/share/emacs/23.1.50/lisp/erc/erc-notify
/usr/local/share/emacs/site-lisp/erc/erc-spelling hides /usr/local/share/emacs/23.1.50/lisp/erc/erc-spelling
/usr/local/share/emacs/site-lisp/erc/erc-ibuffer hides /usr/local/share/emacs/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)
Information forwarded
to
bug-submit-list <at> lists.donarmstrong.com, Emacs Bugs <bug-gnu-emacs <at> gnu.org>
:
bug#4839
; Package
emacs
.
(Mon, 02 Nov 2009 09:15:03 GMT)
Full text and
rfc822 format available.
Message #8 received at 4839 <at> emacsbugs.donarmstrong.com (full text, mbox):
stepnem <at> 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).
Information forwarded
to
bug-submit-list <at> lists.donarmstrong.com, Emacs Bugs <bug-gnu-emacs <at> gnu.org>
:
bug#4839
; Package
emacs
.
(Mon, 02 Nov 2009 15:25:13 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Štěpán Němec <stepnem <at> gmail.com>
:
Extra info received and forwarded to list. Copy sent to
Emacs Bugs <bug-gnu-emacs <at> gnu.org>
.
(Mon, 02 Nov 2009 15:25:13 GMT)
Full text and
rfc822 format available.
Message #13 received at 4839 <at> emacsbugs.donarmstrong.com (full text, mbox):
On Mon, Nov 02, 2009 at 04:08:16AM -0500, Glenn Morris wrote:
> stepnem <at> 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*...
Information forwarded
to
bug-submit-list <at> lists.donarmstrong.com, Emacs Bugs <bug-gnu-emacs <at> gnu.org>
:
bug#4839
; Package
emacs
.
(Mon, 02 Nov 2009 15:45:04 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Andreas Schwab <schwab <at> linux-m68k.org>
:
Extra info received and forwarded to list. Copy sent to
Emacs Bugs <bug-gnu-emacs <at> gnu.org>
.
(Mon, 02 Nov 2009 15:45:04 GMT)
Full text and
rfc822 format available.
Message #18 received at 4839 <at> emacsbugs.donarmstrong.com (full text, mbox):
Štěpán Němec <stepnem <at> gmail.com> writes:
> On Mon, Nov 02, 2009 at 04:08:16AM -0500, Glenn Morris wrote:
>> stepnem <at> 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.
Andreas.
--
Andreas Schwab, schwab <at> linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5
"And now for something completely different."
Information forwarded
to
bug-submit-list <at> lists.donarmstrong.com, Emacs Bugs <bug-gnu-emacs <at> gnu.org>
:
bug#4839
; Package
emacs
.
(Mon, 02 Nov 2009 15:50:04 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Štěpán Němec <stepnem <at> gmail.com>
:
Extra info received and forwarded to list. Copy sent to
Emacs Bugs <bug-gnu-emacs <at> gnu.org>
.
(Mon, 02 Nov 2009 15:50:04 GMT)
Full text and
rfc822 format available.
Message #23 received at 4839 <at> emacsbugs.donarmstrong.com (full text, mbox):
[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).
Information forwarded
to
bug-submit-list <at> lists.donarmstrong.com, Emacs Bugs <bug-gnu-emacs <at> gnu.org>
:
bug#4839
; Package
emacs
.
(Mon, 02 Nov 2009 16:00:04 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Štěpán Němec <stepnem <at> gmail.com>
:
Extra info received and forwarded to list. Copy sent to
Emacs Bugs <bug-gnu-emacs <at> gnu.org>
.
(Mon, 02 Nov 2009 16:00:04 GMT)
Full text and
rfc822 format available.
Message #28 received at 4839 <at> emacsbugs.donarmstrong.com (full text, mbox):
On Mon, Nov 02, 2009 at 04:40:19PM +0100, Andreas Schwab wrote:
> Štěpán Němec <stepnem <at> gmail.com> writes:
>
> > On Mon, Nov 02, 2009 at 04:08:16AM -0500, Glenn Morris wrote:
> >> stepnem <at> 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...?
Information forwarded
to
bug-submit-list <at> lists.donarmstrong.com, Emacs Bugs <bug-gnu-emacs <at> gnu.org>
:
bug#4839
; Package
emacs
.
(Mon, 02 Nov 2009 22:55:05 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Jason Rumney <jasonr <at> gnu.org>
:
Extra info received and forwarded to list. Copy sent to
Emacs Bugs <bug-gnu-emacs <at> gnu.org>
.
(Mon, 02 Nov 2009 22:55:05 GMT)
Full text and
rfc822 format available.
Message #33 received at 4839 <at> emacsbugs.donarmstrong.com (full text, mbox):
Andreas Schwab wrote:
> Štěpán Němec <stepnem <at> gmail.com> 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).
Information forwarded
to
bug-submit-list <at> lists.donarmstrong.com, Emacs Bugs <bug-gnu-emacs <at> gnu.org>
:
bug#4839
; Package
emacs
.
(Tue, 03 Nov 2009 16:10:05 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Chong Yidong <cyd <at> stupidchicken.com>
:
Extra info received and forwarded to list. Copy sent to
Emacs Bugs <bug-gnu-emacs <at> gnu.org>
.
(Tue, 03 Nov 2009 16:10:05 GMT)
Full text and
rfc822 format available.
Message #38 received at 4839 <at> emacsbugs.donarmstrong.com (full text, mbox):
> > 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."
Information forwarded
to
bug-submit-list <at> lists.donarmstrong.com, Emacs Bugs <bug-gnu-emacs <at> gnu.org>
:
bug#4839
; Package
emacs
.
(Tue, 03 Nov 2009 17:10:05 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Štěpán Němec <stepnem <at> gmail.com>
:
Extra info received and forwarded to list. Copy sent to
Emacs Bugs <bug-gnu-emacs <at> gnu.org>
.
(Tue, 03 Nov 2009 17:10:05 GMT)
Full text and
rfc822 format available.
Message #43 received at 4839 <at> emacsbugs.donarmstrong.com (full text, mbox):
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
Severity set to 'minor' from 'normal'
Request was from
Glenn Morris <rgm <at> gnu.org>
to
control <at> emacsbugs.donarmstrong.com
.
(Wed, 04 Nov 2009 17:50:08 GMT)
Full text and
rfc822 format available.
Reply sent
to
Chong Yidong <cyd <at> stupidchicken.com>
:
You have taken responsibility.
(Fri, 06 Nov 2009 19:20:04 GMT)
Full text and
rfc822 format available.
Notification sent
to
stepnem <at> gmail.com
:
bug acknowledged by developer.
(Fri, 06 Nov 2009 19:20:04 GMT)
Full text and
rfc822 format available.
Message #50 received at 4839-done <at> emacsbugs.donarmstrong.com (full text, mbox):
Štěpán Němec <stepnem <at> gmail.com> writes:
> Tested; with this above change; the alignment is as expected.
> Thanks!
Checked in, thanks for testing.
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> emacsbugs.donarmstrong.com
.
(Sat, 05 Dec 2009 15:24:25 GMT)
Full text and
rfc822 format available.
This bug report was last modified 15 years and 201 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.