From: Leo Liu <sdl.web@gmail.com>
To: 13576@debbugs.gnu.org
Subject: bug#13576: 24.2.92; [PATCH] a bug in imenu--truncate-items
Date: Mon, 28 Jan 2013 23:09:04 +0800 [thread overview]
Message-ID: <m1d2wpfipb.fsf@gmail.com> (raw)
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)
next reply other threads:[~2013-01-28 15:09 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-01-28 15:09 Leo Liu [this message]
2013-01-28 16:30 ` bug#13576: 24.2.92; [PATCH] a bug in imenu--truncate-items Drew Adams
2013-01-29 2:25 ` Stefan Monnier
2013-01-29 7:22 ` Leo Liu
2013-01-30 18:01 ` Leo Liu
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=m1d2wpfipb.fsf@gmail.com \
--to=sdl.web@gmail.com \
--cc=13576@debbugs.gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).