From: Stefan Monnier <monnier@iro.umontreal.ca>
To: Leo Liu <sdl.web@gmail.com>
Cc: 13576@debbugs.gnu.org
Subject: bug#13576: 24.2.92; [PATCH] a bug in imenu--truncate-items
Date: Mon, 28 Jan 2013 21:25:01 -0500 [thread overview]
Message-ID: <jwvfw1ksp3r.fsf-monnier+emacs@gnu.org> (raw)
In-Reply-To: <m1d2wpfipb.fsf@gmail.com> (Leo Liu's message of "Mon, 28 Jan 2013 23:09:04 +0800")
> 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)
Looks right, please install it in trunk,
Stefan
next prev parent reply other threads:[~2013-01-29 2:25 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
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 [this message]
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=jwvfw1ksp3r.fsf-monnier+emacs@gnu.org \
--to=monnier@iro.umontreal.ca \
--cc=13576@debbugs.gnu.org \
--cc=sdl.web@gmail.com \
/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 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.