all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Re: which-func-mode keeps disappearing on the mode line
       [not found] <5c8c61dd-f8e3-4adc-87de-634e70f9ee7a@g2g2000vbe.googlegroups.com>
@ 2010-11-21 21:34 ` Stefan Monnier
  0 siblings, 0 replies; only message in thread
From: Stefan Monnier @ 2010-11-21 21:34 UTC (permalink / raw
  To: help-gnu-emacs

> (defun trim-front-spaces (s)
>   (substring-no-properties s (string-match-p "[:space:]" s)))
> (setq which-func-cleanup-function 'trim-front-spaces)
> (which-function-mode 1)

Apparently which-func-cleanup-function ends up receiving a list of
strings (with a single element) rather than a string.  Part of the
reason appears to be which-func-imenu-joiner-function which defaults to
`last' which doesn't return the last element of a list, but the last
cons of a list.


        Stefan


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2010-11-21 21:34 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <5c8c61dd-f8e3-4adc-87de-634e70f9ee7a@g2g2000vbe.googlegroups.com>
2010-11-21 21:34 ` which-func-mode keeps disappearing on the mode line Stefan Monnier

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.