GNU bug report logs - #13576
24.2.92; [PATCH] a bug in imenu--truncate-items

Previous Next

Package: emacs;

Reported by: Leo Liu <sdl.web <at> gmail.com>

Date: Mon, 28 Jan 2013 15:16:01 UTC

Severity: normal

Tags: patch

Found in version 24.2.92

Done: Leo Liu <sdl.web <at> gmail.com>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: help-debbugs <at> gnu.org (GNU bug Tracking System)
To: Leo Liu <sdl.web <at> gmail.com>
Subject: bug#13576: closed (Re: bug#13576: 24.2.92; [PATCH] a bug in
 imenu--truncate-items)
Date: Wed, 30 Jan 2013 18:03:01 +0000
[Message part 1 (text/plain, inline)]
Your bug report

#13576: 24.2.92; [PATCH] a bug in imenu--truncate-items

which was filed against the emacs package, has been closed.

The explanation is attached below, along with your original report.
If you require more details, please reply to 13576 <at> debbugs.gnu.org.

-- 
13576: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=13576
GNU Bug Tracking System
Contact help-debbugs <at> gnu.org with problems
[Message part 2 (message/rfc822, inline)]
From: Leo Liu <sdl.web <at> gmail.com>
To: 13576-done <at> debbugs.gnu.org
Subject: Re: bug#13576: 24.2.92; [PATCH] a bug in imenu--truncate-items
Date: Thu, 31 Jan 2013 02:01:20 +0800
Fixed in trunk

[Message part 3 (message/rfc822, inline)]
From: Leo Liu <sdl.web <at> gmail.com>
To: bug-gnu-emacs <at> gnu.org
Subject: 24.2.92; [PATCH] a bug in imenu--truncate-items
Date: Mon, 28 Jan 2013 23:09:04 +0800
According to documentation on imenu--index-alist, a special item looks
like:

        (INDEX-NAME POSITION FUNCTION ARGUMENTS...)

which fails imenu--truncate-items.

diff --git a/lisp/imenu.el b/lisp/imenu.el
index 80dacf93..649fc0a7 100644
--- a/lisp/imenu.el
+++ b/lisp/imenu.el
@@ -557,7 +557,7 @@ (defun imenu--truncate-items (menulist)
   "Truncate all strings in MENULIST to `imenu-max-item-length'."
   (mapcar (lambda (item)
             (cond
-             ((consp (cdr item))
+             ((imenu--subalist-p item)
               (imenu--truncate-items (cdr item)))
              ;; truncate if necessary
              ((and (numberp imenu-max-item-length)



This bug report was last modified 12 years and 116 days ago.

Previous Next


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