Function: projectile--run-ielm

projectile--run-ielm is a byte-compiled function defined in projectile.el.

Signature

(projectile--run-ielm NEW-PROCESS &optional OTHER-WINDOW)

Documentation

Invoke ielm in the project's root.

NEW-PROCESS forces creation of a new process instead of reusing an existing buffer.

Source Code

;; Defined in ~/.emacs.d/elpa/projectile-20260820.1509/projectile.el
(defun projectile--run-ielm (new-process &optional _other-window)
  "Invoke `ielm' in the project's root.
NEW-PROCESS forces creation of a new process instead of reusing an
existing buffer."
  (let* ((project (projectile-acquire-root))
         (ielm-buffer-name (projectile-generate-process-name "ielm" new-process project)))
    (if (get-buffer ielm-buffer-name)
        (switch-to-buffer ielm-buffer-name)
      (projectile-with-default-dir project
        (ielm))
      ;; ielm's buffer name is hardcoded, so we have to rename it after creation
      (rename-buffer ielm-buffer-name))))