clojure-emacs / cider

The Clojure Interactive Development Environment that Rocks for Emacs
https://cider.mx
GNU General Public License v3.0
3.55k stars 645 forks source link

`cider-pprint-eval-last-sexp-to-comment` forgets "Elapsed time" #3732

Open metayan opened 3 months ago

metayan commented 3 months ago

Expected behavior

Using C-u C-c C-p with time should insert result and show "Elapsed time: x.xx msecs" in REPL.

Actual behavior

Result is inserted, but "Elapsed time" is not shown in REPL.

Steps to reproduce the problem

In a .clj file in Emacs:

(time nil)
;; press C-u C-c C-p

Note

C-u C-x C-e works correctly - inserts result in edited file and shows "Elapsed time" in REPL.

Environment & Version information

CIDER version information

;; CIDER 1.15.1 (Cogne), nREPL 1.3.0
;; Clojure 1.11.4, Java 19.0.1

also with
;; CIDER 1.14.0 (Verona), nREPL 1.1.2

Emacs version

28.2, 29.4

Operating system

Linux, macOS