branch: elpa/with-editor
commit ae405e9b5963d6a2332650ced871bb61ea9285dc
Author: Jonas Bernoulli <[email protected]>
Commit: Jonas Bernoulli <[email protected]>
with-editor-export-editor: remove unnecessary leftovers
Previously we just reinstated to already set filter.
This completes fab38c451da40db17d021009ffbc53199b5e2237.
---
with-editor.el | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/with-editor.el b/with-editor.el
index 83b4b92..621605a 100644
--- a/with-editor.el
+++ b/with-editor.el
@@ -566,14 +566,12 @@ This works in `shell-mode', `term-mode' and
`eshell-mode'."
(interactive (list (with-editor-read-envvar)))
(cond
((derived-mode-p 'comint-mode 'term-mode)
- (let* ((process (get-buffer-process (current-buffer)))
- (filter (process-filter process)))
+ (let ((process (get-buffer-process (current-buffer))))
(goto-char (process-mark process))
(process-send-string
process (format " export %s=%s\n" envvar
(shell-quote-argument with-editor-sleeping-editor)))
(while (accept-process-output process 0.1))
- (set-process-filter process filter)
(if (derived-mode-p 'term-mode)
(with-editor-set-process-filter process
'with-editor-emulate-terminal)
(add-hook 'comint-output-filter-functions 'with-editor-output-filter