[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/idris-mode 928f785bb7 4/9: Remove conditional for srcdir i
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/idris-mode 928f785bb7 4/9: Remove conditional for srcdir in `idris-load-file` used to switch work directory |
Date: |
Tue, 6 Dec 2022 05:59:06 -0500 (EST) |
branch: elpa/idris-mode
commit 928f785bb70ccb4c7c48da4a5bc064df7f21f775
Author: Marek L <nospam.keram@gmail.com>
Commit: Marek L <nospam.keram@gmail.com>
Remove conditional for srcdir in `idris-load-file` used to switch work
directory
Why:
The conditional needed is already present in
`idris-switch-working-directory` and
this fixes issue of unable to load files into Idris2 in different
directories.
Steps to reproduce:
Given directory "a" with file foo.idr and directory "b" with bar.idr
Then open a/foo.idr and load the file to Idris2 (M-x idris-load-file)
Then open b/bar.idr and try load it to Idris2.
Current result:
`Evaluation returned an error: Error loading file bar.idr: File Not Found.`
Expected:
bar.idr loaded to Idris2 and working directory switched to "b".
---
idris-commands.el | 8 +-------
1 file changed, 1 insertion(+), 7 deletions(-)
diff --git a/idris-commands.el b/idris-commands.el
index 9b8eb7ee32..75b9a05433 100644
--- a/idris-commands.el
+++ b/idris-commands.el
@@ -214,13 +214,7 @@ A prefix argument forces loading but only up to the
current line."
;; Actually do the loading
(let* ((dir-and-fn (idris-filename-to-load))
(fn (cdr dir-and-fn))
- (srcdir
- (if (> idris-protocol-version 1)
- (prin1-to-string (car dir-and-fn))
- (car dir-and-fn)
- )
- )
- )
+ (srcdir (car dir-and-fn)))
(setq idris-currently-loaded-buffer nil)
(idris-switch-working-directory srcdir)
(idris-delete-ibc t) ;; delete the ibc to avoid interfering with
partial loads
- [nongnu] elpa/idris-mode updated (0cae4b8086 -> 4a36953e76), ELPA Syncer, 2022/12/06
- [nongnu] elpa/idris-mode 6fbd9cff31 6/9: Improve `idris-switch-working-directory` by, ELPA Syncer, 2022/12/06
- [nongnu] elpa/idris-mode 4a36953e76 9/9: Merge pull request #580 from keram/load-file-switch-dir-idris2, ELPA Syncer, 2022/12/06
- [nongnu] elpa/idris-mode ee551230ed 7/9: Merge pull request #579 from keram/tests-impro, ELPA Syncer, 2022/12/06
- [nongnu] elpa/idris-mode 71ab6a35e3 5/9: [semantic-highlight] Remove and rebuild overlays in file on reload only in changed area, ELPA Syncer, 2022/12/06
- [nongnu] elpa/idris-mode 7ebd8e721b 8/9: Merge pull request #581 from keram/highlight-partial, ELPA Syncer, 2022/12/06
- [nongnu] elpa/idris-mode d6ac9524f6 1/9: Simplify `idris-test-idris-type-search` by removing loading a file, ELPA Syncer, 2022/12/06
- [nongnu] elpa/idris-mode 928f785bb7 4/9: Remove conditional for srcdir in `idris-load-file` used to switch work directory,
ELPA Syncer <=
- [nongnu] elpa/idris-mode d0d609bff7 3/9: Include tests from idris-navigate.el in idris-tests.el, ELPA Syncer, 2022/12/06
- [nongnu] elpa/idris-mode 8a4ce46373 2/9: Delete AddClause.ibc between and after tests, ELPA Syncer, 2022/12/06