emacs-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[debbugs-tracker] bug#13143: closed (24.2; mpc.el: mpc-songs-refresh: Ar


From: GNU bug Tracking System
Subject: [debbugs-tracker] bug#13143: closed (24.2; mpc.el: mpc-songs-refresh: Args out of range)
Date: Wed, 12 Dec 2012 16:06:02 +0000

Your message dated Wed, 12 Dec 2012 11:04:46 -0500
with message-id <address@hidden>
and subject line Re: bug#13143: 24.2; mpc.el: mpc-songs-refresh: Args out of 
range
has caused the debbugs.gnu.org bug report #13143,
regarding 24.2; mpc.el: mpc-songs-refresh: Args out of range
to be marked as done.

(If you believe you have received this mail in error, please contact
address@hidden)


-- 
13143: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=13143
GNU Bug Tracking System
Contact address@hidden with problems
--- Begin Message --- Subject: 24.2; mpc.el: mpc-songs-refresh: Args out of range Date: Tue, 11 Dec 2012 16:03:51 +0100
This bug report will be sent to the Bug-GNU-Emacs mailing list
and the GNU bug tracker at debbugs.gnu.org.  Please check that
the From: line contains a valid email address.  After a delay of up
to one day, you should receive an acknowledgement at that address.

Please write in English if possible, as the Emacs maintainers
usually do not have translators for other languages.

Please describe exactly what actions triggered the bug, and
the precise symptoms of the bug.  If you can, give a recipe
starting from `emacs -Q':

Dear Emacs developers,

I first launched the mpc interface by typing M-x mpc. I did not touch
any configuration parameter for this mode.
I then chose an album in the Albums | Playlists window by typing RET on
it. This triggered the following error:

mpc-songs-refresh: Args out of range: "..." 0, -21

for an album name that contains japanese characters and is 45 characters
long. The "..." in the error above contains exactly the name of the
album. The down right window only displays the title of the first song of
the album, and nothing else.

I have redacted out the name of the album because this error occurs
with a maybe different and always negative second number for every
sufficiently long album name containing japanese characters. 

Another maybe related bug: when there are japanese characters in the
album name and it is too long to be displayed without ellipsis (…), the
longer the less characters are present before the ellipsis.

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/share/emacs/24.2/etc/DEBUG.


In GNU Emacs 24.2.1 (x86_64-pc-linux-gnu, GTK+ Version 2.24.10)
 of 2012-09-09 on trouble, modified by Debian
Configured using:
 `configure '--build' 'x86_64-linux-gnu' '--build' 'x86_64-linux-gnu'
 '--prefix=/usr' '--sharedstatedir=/var/lib' '--libexecdir=/usr/lib'
 '--localstatedir=/var/lib' '--infodir=/usr/share/info'
 '--mandir=/usr/share/man' '--with-pop=yes'
 
'--enable-locallisppath=/etc/emacs24:/etc/emacs:/usr/local/share/emacs/24.2/site-lisp:/usr/local/share/emacs/site-lisp:/usr/share/emacs/24.2/site-lisp:/usr/share/emacs/site-lisp'
 '--with-crt-dir=/usr/lib/x86_64-linux-gnu' '--with-x=yes'
 '--with-x-toolkit=gtk' '--with-toolkit-scroll-bars'
 'build_alias=x86_64-linux-gnu' 'CFLAGS=-g -O2 -fstack-protector
 --param=ssp-buffer-size=4 -Wformat -Werror=format-security -Wall'
 'CPPFLAGS=-D_FORTIFY_SOURCE=2''

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_US.UTF-8
  value of $XMODIFIERS: nil
  locale-coding-system: utf-8-unix
  default enable-multibyte-characters: t

Major mode: Fundamental

Minor modes in effect:
  show-paren-mode: t
  tooltip-mode: t
  mouse-wheel-mode: t
  tool-bar-mode: t
  menu-bar-mode: t
  file-name-shadow-mode: t
  global-font-lock-mode: t
  font-lock-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:
ESC [ > 0 ; 1 1 5 ; 0 c ESC x e m DEL DEL r e p o TAB 
r TAB RET ESC O A ESC O A m p c : SPC m p c - r e l 
o a n DEL DEL DEL DEL DEL DEL TAB TAB DEL DEL s o n 
g s - r e l o a DEL C-g C-x b C-g C-x C-f e m TAB RET 
C-x b C-g ESC x e m a TAB r e p TAB DEL DEL DEL DEL 
DEL DEL DEL DEL DEL r e p TAB o TAB r TAB RET

Recent messages:
Startup with window[1]
Loading /etc/emacs/site-start.d/50windows-el.el (source)...done
Loading /etc/emacs/site-start.d/51ghc-mod.el (source)...done
Loading /etc/emacs/site-start.d/51tuareg-mode.el (source)...done
Loading iso-transl...done
For information about GNU Emacs and the GNU system, type C-h C-a.
Making completion list...
goto-history-element: Beginning of history; no preceding item [2 times]
Quit [3 times]
Making completion list... [2 times]

Load-path shadows:



--- End Message ---
--- Begin Message --- Subject: Re: bug#13143: 24.2; mpc.el: mpc-songs-refresh: Args out of range Date: Wed, 12 Dec 2012 11:04:46 -0500 User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux)
Version: 24.4

> I looked at the code of this function, and from what I can gather, the bug
> seems to be in:
> (substring text 0 (- size postwidth textwidth 1))

Yes, that's also what I bumped into.  Great minds debug alike!

The patch looks good, installed in `trunk', thank you very much.


        Stefan


PS: I guess I didn't know about truncate-string-to-width when I wrote
this code.  But looking at truncate-string-to-width, I hope it won't
impact performance too much.


--- End Message ---

reply via email to

[Prev in Thread] Current Thread [Next in Thread]