[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/jarchive a5ab89db3f 15/33: Do not set default-directory
From: |
ELPA Syncer |
Subject: |
[elpa] externals/jarchive a5ab89db3f 15/33: Do not set default-directory, and manually set buffer-file-name |
Date: |
Sat, 12 Nov 2022 17:57:56 -0500 (EST) |
branch: externals/jarchive
commit a5ab89db3f7bf248f3f0ff0ad97767f2c9fe01e5
Author: dannyfreeman <danny@dfreeman.email>
Commit: dannyfreeman <danny@dfreeman.email>
Do not set default-directory, and manually set buffer-file-name
When `eglot-extend-to-xref` is `t`, this allows eglot to manage the
newly opened buffer with the current server instead of starting a new
one.
For clojure-lsp in particular, this does not allow continued xref use to
work. For that, the buffer still needs to be saved to disk I believe.
lsp-mode I think handles this specially for clojure by dumping extracted
files to a temp directory and including that directory in the current
project somehow.
---
jarchive.el | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/jarchive.el b/jarchive.el
index 589821c145..2423b2d2f9 100644
--- a/jarchive.el
+++ b/jarchive.el
@@ -71,8 +71,7 @@ provided when calling OP."
(with-current-buffer (create-file-buffer buffer-file)
(archive-zip-extract jar file-in-jar)
(goto-char 0)
- (set-visited-file-name buffer-file)
- (setq-local default-directory (file-name-directory jar))
+ (setq-local buffer-file-name buffer-file)
(setq-local buffer-offer-save nil)
(setq-local buffer-read-only t)
(set-auto-mode)
- [elpa] externals/jarchive 72465b705a 30/33: Address checkdoc feedback, (continued)
- [elpa] externals/jarchive 72465b705a 30/33: Address checkdoc feedback, ELPA Syncer, 2022/11/12
- [elpa] externals/jarchive 4aa2e5d394 13/33: Add section to readme for mailing list, ELPA Syncer, 2022/11/12
- [elpa] externals/jarchive a4505a4784 32/33: Add FSF as copyright holder, ELPA Syncer, 2022/11/12
- [elpa] externals/jarchive b93da9f976 17/33: Do NOT implement file-attributes, ELPA Syncer, 2022/11/12
- [elpa] externals/jarchive 3ff89ae9cb 05/33: Update doc string, ELPA Syncer, 2022/11/12
- [elpa] externals/jarchive 0733e1fcb3 07/33: Use find-buffer-visiting instead of local var check, ELPA Syncer, 2022/11/12
- [elpa] externals/jarchive c9fdbe909d 19/33: Cleanup docstring, and ensure var is set after eglot loads, ELPA Syncer, 2022/11/12
- [elpa] externals/jarchive 050436241e 27/33: Update README now that this includes hacks to fix legacy eglot, ELPA Syncer, 2022/11/12
- [elpa] externals/jarchive 2c182b3cf9 06/33: Make setup function interactive for convenience, ELPA Syncer, 2022/11/12
- [elpa] externals/jarchive 82ff9f791f 12/33: Remove unnecessary local variable, ELPA Syncer, 2022/11/12
- [elpa] externals/jarchive a5ab89db3f 15/33: Do not set default-directory, and manually set buffer-file-name,
ELPA Syncer <=
- [elpa] externals/jarchive 5736d46d33 24/33: Include hack to work with legacy versions of eglot., ELPA Syncer, 2022/11/12
- [elpa] externals/jarchive c8c12f1c9b 25/33: Update file preamble, ELPA Syncer, 2022/11/12
- [elpa] externals/jarchive bfcc201cca 33/33: Bump to version 0.1.0 was 0.3.0, ELPA Syncer, 2022/11/12