You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For example, when I type (plot func #:), the point is after #:, I can complete the all keywords of plot.
I wrote a function to get possible function's name, in the above example, it returns "plot".
(defunracket-current-function-name ()
"Return the function name of current funcall or nil."
(let ((beg (condition-casenil
(scan-lists (point) -11)
(scan-error nil))))
(when beg
(save-excursion
(goto-char (1+ beg))
(current-word)))))
The text was updated successfully, but these errors were encountered:
I learnt
procedure-keywords
can extract a function's keywords, e.g.,For example, when I type
(plot func #:)
, the point is after#:
, I can complete the all keywords ofplot
.I wrote a function to get possible function's name, in the above example, it returns
"plot"
.The text was updated successfully, but these errors were encountered: