Next: Fix eval-in-emacs next-user package substitution.
parent
27eec69f58
commit
c52ac5a0b0
|
@ -7,12 +7,13 @@
|
|||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||||
(defun eval-in-emacs (&rest s-exps)
|
||||
"Evaluate S-exps with `emacsclient'."
|
||||
(let ((s-exps-string (str:replace-all
|
||||
(let ((s-exps-string (cl-ppcre:regex-replace-all
|
||||
;; Discard the package prefix.
|
||||
"next::" ""
|
||||
"next-user::?"
|
||||
(write-to-string
|
||||
`(progn ,@s-exps) :case :downcase))))
|
||||
(log:debug "Sending to Emacs: ~a" s-exps-string)
|
||||
`(progn ,@s-exps) :case :downcase)
|
||||
"")))
|
||||
(log:debug "Sending to Emacs: ~s" s-exps-string)
|
||||
(ignore-errors (uiop:run-program
|
||||
(list "emacsclient" "--eval" s-exps-string)))))
|
||||
|
||||
|
|
Loading…
Reference in New Issue