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. OTHER-WINDOW displays it in another window.

Source Code

;; Defined in ~/.emacs.d/elpa/projectile-20260930.434/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.  OTHER-WINDOW displays it in another window."
  (let* ((project (projectile-acquire-root))
         (ielm-buffer-name (projectile-generate-process-name "ielm" new-process project)))
    (if (get-buffer ielm-buffer-name)
        (if other-window
            (switch-to-buffer-other-window ielm-buffer-name)
          (switch-to-buffer ielm-buffer-name))
      (projectile-with-default-dir project
        (projectile--displaying-in-other-window other-window
          (ielm)))
      ;; ielm's buffer name is hardcoded, so we have to rename it after creation
      (rename-buffer ielm-buffer-name))))