emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[nongnu] elpa/with-editor ae405e9 052/140: with-editor-export-editor: re


From: Jonas Bernoulli
Subject: [nongnu] elpa/with-editor ae405e9 052/140: with-editor-export-editor: remove unnecessary leftovers
Date: Fri, 6 Aug 2021 12:51:18 -0400 (EDT)

branch: elpa/with-editor
commit ae405e9b5963d6a2332650ced871bb61ea9285dc
Author: Jonas Bernoulli <jonas@bernoul.li>
Commit: Jonas Bernoulli <jonas@bernoul.li>

    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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]