[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: which-func-mode keeps disappearing on the mode line
From: |
Stefan Monnier |
Subject: |
Re: which-func-mode keeps disappearing on the mode line |
Date: |
Wed, 08 Dec 2010 15:37:00 -0000 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) |
> (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