gnu-emacs-sources
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Displays the current function/method on the mode line


From: Stefan Monnier
Subject: Re: Displays the current function/method on the mode line
Date: Fri, 18 Feb 2011 14:22:08 -0500
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux)

DP> ;;; cfm.el --- Displays the current function or method on the mode-line
>> Could you explain how this is different from `which-func-mode'?

> class A
> {
>    void foo()
>    {
>             <--- displays A::foo here on the mode line
>    }
> }

which-func-mode is a general "framework" (a pompous word for so little
functionality), so your code could be changed to simply provide a new
function to put on which-func-functions.


        Stefan


reply via email to

[Prev in Thread] Current Thread [Next in Thread]