|
1 | 1 | ;;; julia-repl.el --- A minor mode for a Julia REPL -*- lexical-binding:t; no-byte-compile:t -*- |
2 | 2 |
|
3 | | -;; Copyright (C) 2016 Tamas K. Papp |
| 3 | +;; Copyright (C) 2016–2024 Tamas K. Papp |
4 | 4 | ;; Author: Tamas Papp <[email protected]> |
5 | 5 | ;; Keywords: languages |
6 | | -;; Version: 1.3.1 |
| 6 | +;; Version: 1.4.0 |
7 | 7 | ;; Package-Requires: ((emacs "25.1")(s "1.12")) |
8 | 8 | ;; URL: https://github.com/tpapp/julia-repl |
9 | 9 |
|
@@ -326,7 +326,9 @@ Entries have the form |
326 | 326 |
|
327 | 327 | (KEY EXECUTABLE-PATH :BASEDIR BASEDIR) |
328 | 328 |
|
329 | | -A missing :BASEDIR will be completed automatically when first used. |
| 329 | +`executable-path' is invoked as is, so make sure that it is in the path available to Emacs. |
| 330 | +
|
| 331 | +A missing :BASEDIR will be completed automatically when first used, and it assumed to be the same afterwards. |
330 | 332 |
|
331 | 333 | This is used for key lookup for ‘julia-repl-executable-key’. The |
332 | 334 | first entry is the default.") |
@@ -419,13 +421,10 @@ is printed to the *Messages* buffer." |
419 | 421 | (defun julia-repl--executable-path (executable-record) |
420 | 422 | "Retrun the Julia executable for the given EXECUTABLE-RECORD. |
421 | 423 |
|
422 | | -Return the executable path in the given EXECUTABLE-RECORD if it's |
423 | | -absolute. Else, return the absolute path of the Julia executable |
424 | | -using ‘executable-find’, or NIL." |
425 | | - (let ((executable (cl-second executable-record))) |
426 | | - (if (file-name-absolute-p executable) |
427 | | - executable |
428 | | - (executable-find executable)))) |
| 424 | +It is checked for being a string." |
| 425 | + (let ((executable-path (cl-second executable-record))) |
| 426 | + (cl-assert (stringp executable-path) nil "No valid executable path found in %s" executable-record) |
| 427 | + executable-path)) |
429 | 428 |
|
430 | 429 | (defun julia-repl--complete-executable-record! (executable-record) |
431 | 430 | "Complete EXECUTABLE-RECORD if necessary. |
|
0 commit comments