You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Am I missing something, or is the pandoc conversion on insert (from markdown to org-mode) not working? I think the root cause is the arguments passed to call-process-region. We should set BUFFER, DELETE, and DISPLAY to t.
Fixed version:
(defunemacs-everywhere-insert-selection ()
"Insert the last text selection into the buffer."
(pcase system-type
('darwin (progn
(call-process"osascript"nilnilnil"-e""tell application \"System Events\" to keystroke \"c\" using command down")
(sleep-for emacs-everywhere-clipboard-sleep-delay) ; lets clipboard info propagate
(yank)))
((or'ms-dos'windows-nt'cygwin)
(emacs-everywhere-insert-selection--windows))
(_ (when-let ((selection (gui-get-selection'PRIMARY'UTF8_STRING)))
(gui-backend-set-selection'PRIMARY"")
(insert selection))))
(when (and (eq major-mode 'org-mode)
(emacs-everywhere-markdown-p)
(executable-find"pandoc"))
(apply#'call-process-region
(point-min) (point-max) "pandoc"ttt
emacs-everywhere-pandoc-md-args)
(deactivate-mark) (goto-char (point-max)))
(cond ((bound-and-true-p evil-local-mode) (evil-insert-state))))
The text was updated successfully, but these errors were encountered:
cashpw
pushed a commit
to cashpw/emacs-everywhere
that referenced
this issue
Dec 4, 2024
Am I missing something, or is the pandoc conversion on insert (from markdown to org-mode) not working? I think the root cause is the arguments passed to
call-process-region
. We should setBUFFER
,DELETE
, andDISPLAY
tot
.Fixed version:
The text was updated successfully, but these errors were encountered: