[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/with-editor b8641ac 054/140: with-editor-output-filter: do
From: |
Jonas Bernoulli |
Subject: |
[nongnu] elpa/with-editor b8641ac 054/140: with-editor-output-filter: don't assume default-directory is valid |
Date: |
Fri, 6 Aug 2021 12:51:19 -0400 (EDT) |
branch: elpa/with-editor
commit b8641ac189a5e2635b5f97c2fa3777baeea51e8a
Author: Jonas Bernoulli <jonas@bernoul.li>
Commit: Jonas Bernoulli <jonas@bernoul.li>
with-editor-output-filter: don't assume default-directory is valid
... because `with-editor-process-filter' may bind it to nil.
When we still used `file-remote-p' instead of `tramp-tramp-file-p' in
`with-editor-output-filter' (i.e. before 9fc047751b53), then that did
not matter because the latter simply returns nil when its argument is
nil, while the former raises an error.
---
with-editor.el | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/with-editor.el b/with-editor.el
index a29cc41..2b35b52 100644
--- a/with-editor.el
+++ b/with-editor.el
@@ -521,7 +521,7 @@ which may or may not insert the text into the PROCESS'
buffer."
(file (match-string 2 string)))
(with-current-buffer
(find-file-noselect
- (if (file-name-absolute-p file)
+ (if (and (file-name-absolute-p file) default-directory)
(concat (file-remote-p default-directory) file)
(expand-file-name file)))
(with-editor-mode 1)
- [nongnu] elpa/with-editor 8c95e7d 036/140: Use when-let instead of macros from dash, (continued)
- [nongnu] elpa/with-editor 8c95e7d 036/140: Use when-let instead of macros from dash, Jonas Bernoulli, 2021/08/06
- [nongnu] elpa/with-editor 1d34c65 047/140: Use user-error when appropriate, Jonas Bernoulli, 2021/08/06
- [nongnu] elpa/with-editor 4d3d50b 049/140: with-editor--setup: create from code previously in with-editor, Jonas Bernoulli, 2021/08/06
- [nongnu] elpa/with-editor b591c28 050/140: with-editor-locate-emacsclient: don't assume version string length, Jonas Bernoulli, 2021/08/06
- [nongnu] elpa/with-editor 99d3278 058/140: shell-command: enable with-editor-mode when appropriate, Jonas Bernoulli, 2021/08/06
- [nongnu] elpa/with-editor 50b40a8 059/140: manual: enforce preservation of indentation, Jonas Bernoulli, 2021/08/06
- [nongnu] elpa/with-editor d34824c 009/140: add .mailmap file, Jonas Bernoulli, 2021/08/06
- [nongnu] elpa/with-editor fab38c4 016/140: with-editor-export-editor: don't suppress output during setup, Jonas Bernoulli, 2021/08/06
- [nongnu] elpa/with-editor e300dab 041/140: with-editor-locate-emacsclient: cosmetics, Jonas Bernoulli, 2021/08/06
- [nongnu] elpa/with-editor 791f985 042/140: with-editor-locate-emacsclient: fix previous commit, Jonas Bernoulli, 2021/08/06
- [nongnu] elpa/with-editor b8641ac 054/140: with-editor-output-filter: don't assume default-directory is valid,
Jonas Bernoulli <=
- [nongnu] elpa/with-editor b0ff338 060/140: manual: put local-variables into an ignored section, Jonas Bernoulli, 2021/08/06
- [nongnu] elpa/with-editor 6147262 064/140: make: remove clean-texi and clean-all targets, Jonas Bernoulli, 2021/08/06
- [nongnu] elpa/with-editor f733034 067/140: Ignore additional generated files, Jonas Bernoulli, 2021/08/06
- [nongnu] elpa/with-editor 93876b6 068/140: manual: use @noindent before version sentence, Jonas Bernoulli, 2021/08/06
- [nongnu] elpa/with-editor f401e12 071/140: Add some autoload, Jonas Bernoulli, 2021/08/06
- [nongnu] elpa/with-editor fcbccec 072/140: Use process-live-p to check whether process is alive, Jonas Bernoulli, 2021/08/06
- [nongnu] elpa/with-editor 3e64247 080/140: Release version 2.7.4, Jonas Bernoulli, 2021/08/06
- [nongnu] elpa/with-editor cacb41d 062/140: make: use same export settings as for manual Org exports, Jonas Bernoulli, 2021/08/06
- [nongnu] elpa/with-editor ee39f23 065/140: make: generate CDN invalidation after upload, Jonas Bernoulli, 2021/08/06
- [nongnu] elpa/with-editor 73d3d1a 066/140: Use the emacsclient again when running shell commands, Jonas Bernoulli, 2021/08/06