Fork me on GitHub

@nha Just out of curiosity - why exactly do you need to do this?


Thanks, I tweaked it to do what I wanted:

(defun ask-for-variable-names (names)
    (interactive "sEnter the variable names: ")
    (let ((bindings (mapcar (lambda (name)
                              (format "(def %s %s)" name name))
                            (s-split " " names))))
      (insert-before-markers (string-join bindings "\n"))))
Works perfectly! 😄


So I use this when I basically want to capture one or several values in a running program. Usually these are either: - too big to build by hand 😄 - in a running prod system 🤫


Isn’t it better to add some conditional logging for those?


Well they are also too big for logging 😅 as in, it freezes my emacs completely. So I personally prefer to use a def and navigate inside it from there. I know someone in our team did pretty print these to a file instead, and opened with a separate editor/diff software.


I didn’t expect this. 😄

😄 4