unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#26457: 25.2; Cannot pass a function to imenu-generic-expression
@ 2017-04-12  4:43 Damien Cassou
  2017-04-12  7:32 ` Damien Cassou
  2017-04-13  9:47 ` bug#26457: [Nicolas Petton] " Nicolas Petton
  0 siblings, 2 replies; 11+ messages in thread
From: Damien Cassou @ 2017-04-12  4:43 UTC (permalink / raw)
  To: 26457

 
$ emacs -Q

M-:
(setq-local imenu-generic-expression `(("Foo" "^;; .*$" 0 ,(lambda 
(item pos) (message "%s" item)))))

M-x imenu
 
This results in

  sort: Wrong type argument: number-or-marker-p, (#<marker at 72 
  in *scratch*> (lambda (item pos) (message "%s" item)))
 
In GNU Emacs 25.2.3 (x86_64-unknown-linux-gnu, GTK+ Version 
3.22.9) 
 of 2017-03-09 built on x230
Repository revision: aceac954ed29c2653e2a0eb71b899be5c916edda
Windowing system distributor 'Fedora Project', version 
11.0.11903000
Configured features:
XPM JPEG TIFF GIF PNG RSVG IMAGEMAGICK SOUND GPM DBUS GCONF 
GSETTINGS NOTIFY ACL LIBSELINUX GNUTLS LIBXML2 FREETYPE M17N_FLT 
LIBOTF XFT ZLIB TOOLKIT_SCROLL_BARS GTK3 X11
Important settings:
  value of $LANG: fr_FR.UTF-8
  value of $XMODIFIERS: @im=ibus
  locale-coding-system: utf-8-unix

-- 
Damien Cassou
http://damiencassou.seasidehosting.st

"Success is the ability to go from one failure to another without
losing enthusiasm." --Winston Churchill





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

end of thread, other threads:[~2017-04-13 11:09 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-04-12  4:43 bug#26457: 25.2; Cannot pass a function to imenu-generic-expression Damien Cassou
2017-04-12  7:32 ` Damien Cassou
2017-04-12  8:03   ` Nicolas Petton
2017-04-12  8:24   ` Nicolas Petton
2017-04-12  8:42     ` Damien Cassou
2017-04-12 12:42       ` Nicolas Petton
2017-04-13  9:45       ` Nicolas Petton
2017-04-13 10:35         ` Damien Cassou
2017-04-13 10:42           ` Eli Zaretskii
2017-04-13 11:09             ` Damien Cassou
2017-04-13  9:47 ` bug#26457: [Nicolas Petton] " Nicolas Petton

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).