[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/with-editor 9fc0477 040/140: with-editor-output-filter: do
From: |
Jonas Bernoulli |
Subject: |
[nongnu] elpa/with-editor 9fc0477 040/140: with-editor-output-filter: don't use tramp-make-tramp-file-name |
Date: |
Fri, 6 Aug 2021 12:51:16 -0400 (EDT) |
branch: elpa/with-editor
commit 9fc047751b537178b5123fead9426d72b794b4d3
Author: Kyle Meyer <kyle@kyleam.com>
Commit: Jonas Bernoulli <jonas@bernoul.li>
with-editor-output-filter: don't use tramp-make-tramp-file-name
As of Emacs's dca22e86e0 (Introduce a defstruct `tramp-file-name' as
central data structure, 2017-05-24), tramp-make-tramp-file-name takes
two more positional arguments. Instead of adding a compatibility
kludge, use file-remote-p to construct the file name.
Fixes #29.
---
with-editor.el | 8 ++------
1 file changed, 2 insertions(+), 6 deletions(-)
diff --git a/with-editor.el b/with-editor.el
index 13e0c6a..7cb5e7b 100644
--- a/with-editor.el
+++ b/with-editor.el
@@ -82,8 +82,7 @@
(require 'cl-lib)
(require 'dash)
(require 'server)
-(require 'tramp)
-(require 'tramp-sh nil t)
+(require 'shell)
(and (require 'async-bytecomp nil t)
(memq 'magit (bound-and-true-p async-bytecomp-allowed-packages))
@@ -516,10 +515,7 @@ which may or may not insert the text into the PROCESS'
buffer."
(with-current-buffer
(find-file-noselect
(if (file-name-absolute-p file)
- (if (tramp-tramp-file-p default-directory)
- (with-parsed-tramp-file-name default-directory nil
- (tramp-make-tramp-file-name method user host file
hop))
- file)
+ (concat (file-remote-p default-directory) file)
(expand-file-name file)))
(with-editor-mode 1)
(setq with-editor--pid pid)
- [nongnu] elpa/with-editor fb1e10a 030/140: Ignore /dir, (continued)
- [nongnu] elpa/with-editor fb1e10a 030/140: Ignore /dir, Jonas Bernoulli, 2021/08/06
- [nongnu] elpa/with-editor 1126035 004/140: Add remaps for common evil commands, Jonas Bernoulli, 2021/08/06
- [nongnu] elpa/with-editor 5bb0b8a 012/140: with-editor-sleeping-editor: document csh complications, Jonas Bernoulli, 2021/08/06
- [nongnu] elpa/with-editor 15b2565 013/140: AUTHORS.md: update list of contributors, Jonas Bernoulli, 2021/08/06
- [nongnu] elpa/with-editor 19201be 021/140: with-editor-locate-emacsclient-1: look for yet another suffix, Jonas Bernoulli, 2021/08/06
- [nongnu] elpa/with-editor c05420c 020/140: don't use pcase-dolist, not all supported Emacsen have it, Jonas Bernoulli, 2021/08/06
- [nongnu] elpa/with-editor de4022e 018/140: stop directing users to the issue tracker of magit, Jonas Bernoulli, 2021/08/06
- [nongnu] elpa/with-editor ee41302 029/140: manual: minor improvements and typo fixes, Jonas Bernoulli, 2021/08/06
- [nongnu] elpa/with-editor 2248a63 031/140: bump version, Jonas Bernoulli, 2021/08/06
- [nongnu] elpa/with-editor eb00831 033/140: with-editor-debug: add link to manual to doc-string, Jonas Bernoulli, 2021/08/06
- [nongnu] elpa/with-editor 9fc0477 040/140: with-editor-output-filter: don't use tramp-make-tramp-file-name,
Jonas Bernoulli <=
- [nongnu] elpa/with-editor ae405e9 052/140: with-editor-export-editor: remove unnecessary leftovers, Jonas Bernoulli, 2021/08/06
- [nongnu] elpa/with-editor 216ee34 056/140: Build on Travis, Jonas Bernoulli, 2021/08/06
- [nongnu] elpa/with-editor b37d94b 035/140: with-editor-debug: fix old reference to magit in output, Jonas Bernoulli, 2021/08/06
- [nongnu] elpa/with-editor 706c8ce 011/140: instruct users to use term-exec-hook, Jonas Bernoulli, 2021/08/06
- [nongnu] elpa/with-editor 07bb67b 010/140: remove with-editor-export-editor from hook for shell-command, Jonas Bernoulli, 2021/08/06
- [nongnu] elpa/with-editor 6f41998 017/140: with-editor-export-editor: fix doc-string, Jonas Bernoulli, 2021/08/06
- [nongnu] elpa/with-editor 0a8d9ce 039/140: manual: set version in Org source, Jonas Bernoulli, 2021/08/06
- [nongnu] elpa/with-editor 1a6c49b 023/140: update list of contributors, Jonas Bernoulli, 2021/08/06
- [nongnu] elpa/with-editor b2d9d6b 024/140: stop using "BEGIN_EXPORT texinfo" to support Org v9.0, Jonas Bernoulli, 2021/08/06
- [nongnu] elpa/with-editor 8ae3c7a 032/140: Add a space in before export command to avoid polluting HISTFILE, Jonas Bernoulli, 2021/08/06