Function: helpful--c-source-directory
helpful--c-source-directory is a byte-compiled function defined in
helpful.el.
Signature
(helpful--c-source-directory BUTTON)
Documentation
Set find-function-C-source-directory so we can show the
source code to primitives.
Source Code
;; Defined in ~/.emacs.d/elpa/helpful-20250408.334/helpful.el
(defun helpful--c-source-directory (_button)
"Set `find-function-C-source-directory' so we can show the
source code to primitives."
(let ((emacs-src-dir (read-directory-name "Path to Emacs source code: ")))
;; Let the user specify the source path with or without src/,
;; which is a subdirectory in the Emacs tree.
(unless (equal (f-filename emacs-src-dir) "src")
(setq emacs-src-dir (f-join emacs-src-dir "src")))
(setq find-function-C-source-directory emacs-src-dir))
(helpful-update))