Skip to content

Commit

Permalink
avoid temp file
Browse files Browse the repository at this point in the history
  • Loading branch information
msin32 authored Aug 23, 2024
1 parent 0cb4f3d commit 05dc4d1
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions emacs-everywhere.el
Original file line number Diff line number Diff line change
Expand Up @@ -426,8 +426,9 @@ Never paste content when ABORT is non-nil."
(when (and (frame-parameter nil 'emacs-everywhere-app)
emacs-everywhere-paste-command
(not abort))
(apply #'call-process (car emacs-everywhere-paste-command)
(if (cdr emacs-everywhere-paste-command) nil (make-temp-file nil nil nil "key shift+insert")) nil nil (cdr emacs-everywhere-paste-command)))))
(if (cdr emacs-everywhere-paste-command) (apply #'call-process (car emacs-everywhere-paste-command)
nil nil nil (cdr emacs-everywhere-paste-command))
(apply #'shell-command-on-region "key shift+insert" nil "dotool" nil nil nil nil nil)))))
;; Clean up after ourselves in case the buffer survives `server-buffer-done'
;; (b/c `server-existing-buffer' is non-nil).
(emacs-everywhere-mode -1)
Expand Down

0 comments on commit 05dc4d1

Please # to comment.