unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* What should which-func-functions return?
@ 2018-08-21  9:33 Shuguang Sun
  0 siblings, 0 replies; only message in thread
From: Shuguang Sun @ 2018-08-21  9:33 UTC (permalink / raw)
  To: help-gnu-emacs

Hi,


I'm trying which-funciton-mode in ess-mode, and the imenu provide redundant information in case of which fun. For example, I juse tneed Functions, but imenu provide library, class, and etc.
Therefore I come to which-func-functions, and  put the following code for ess-mode, however, it doesn't work.

What hould the function in the list of which-func-functions return?


(defun ess-r--which-function ()
  "goto function name"
  (save-excursion
    (cond
     ((ess-beginning-of-function t)
      (goto-char (ess-beginning-of-function t))
      (if (looking-at "[[:space:]]*\\(?1:.*?\\)[[:space:]]*<-")
          (match-string-no-properties 1)))
     )))
(add-to-list 'which-func-functions 'ess-r--which-function)








Best Regards,
Shuguang

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

only message in thread, other threads:[~2018-08-21  9:33 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-08-21  9:33 What should which-func-functions return? Shuguang Sun

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