Subject: bug#15848: 24.3.50; cperl-mode + which-function: Improve reporting (corner case)

From: Jambunathan K <[email-masked]>
Date: Tue, 12 Nov 2013 10:53:51 +0530

Nathan Trapuzzano <[email-masked]> writes:

> Jambunathan K <[email-masked]> writes:
>
>> Instead of bickering :-), we should ask for a third party vote or a
>> veto.
>
> Tell you what: if you can convince the maintainers to accept such a
> change, I'll write the patch.

I am convinced that maintainers are unlikely to have any other opinion.

Did you look at the behaviour of `which-function-mode' on Emacs Lisp
files.  You can also look at the behaviour in C source files.

In my specific case, the cursor is "right on" the function name.  So the
the displayed value should be that function name and not the previous
function name.

On the buffer zone between two defuns, which-function-mode MAY return
nil.  But this case is a "don't care" for me.