diff options
| author | Jonas Bernoulli <jonas@bernoul.li> | 2017-09-24 19:55:00 +0200 |
|---|---|---|
| committer | Jonas Bernoulli <jonas@bernoul.li> | 2017-09-24 19:55:00 +0200 |
| commit | ae405e9b5963d6a2332650ced871bb61ea9285dc (patch) | |
| tree | 8fd7026e38ab8f1072f1f5f8ce9129e8639eaa12 | |
| parent | 241726118dee067a8d9880d53c6a781d580ba8a1 (diff) | |
with-editor-export-editor: remove unnecessary leftovers
Previously we just reinstated to already set filter.
This completes fab38c451da40db17d021009ffbc53199b5e2237.
| -rw-r--r-- | with-editor.el | 4 |
1 files changed, 1 insertions, 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 |
