all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* bug#13576: 24.2.92; [PATCH] a bug in imenu--truncate-items
@ 2013-01-28 15:09 Leo Liu
  2013-01-28 16:30 ` Drew Adams
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Leo Liu @ 2013-01-28 15:09 UTC (permalink / raw)
  To: 13576

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)





^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2013-01-30 18:01 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-01-28 15:09 bug#13576: 24.2.92; [PATCH] a bug in imenu--truncate-items Leo Liu
2013-01-28 16:30 ` Drew Adams
2013-01-29  2:25 ` Stefan Monnier
2013-01-29  7:22   ` Leo Liu
2013-01-30 18:01 ` Leo Liu

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.