File tree Expand file tree Collapse file tree 2 files changed +7
-4
lines changed Expand file tree Collapse file tree 2 files changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -1554,7 +1554,12 @@ download step is omitted. This function returns t if the ESSR
15541554load is successful, and nil otherwise."
15551555 (let ((loader (ess-file-content (expand-file-name " ESSR/LOADREMOTE" ess-etc-directory))))
15561556 (or (with-temp-message " Fetching and loading ESSR into the remote ..."
1557- (ess-boolean-command (format loader essr-version)))
1557+ (let ((essr (or essr-version
1558+ ; ; FIXME: Hack: on MELPA essr-version is not set
1559+ (lm-with-file (expand-file-name " ess.el" ess-lisp-directory)
1560+ (lm-header " ESSR-Version" ))
1561+ (error " `essr-version' could not be automatically inferred from ess.el file" ))))
1562+ (ess-boolean-command (format loader essr-version))))
15581563 (let ((errmsg (with-current-buffer " *ess-command-output*" (buffer-string ))))
15591564 (message (format " Couldn't load or download ESSR.rds on the remote.\n Error: %s \n Injecting local copy of ESSR. " errmsg))
15601565 nil ))))
Original file line number Diff line number Diff line change 5151
5252(require 'ess-utils )
5353(require 'cl-generic )
54-
54+ ( require 'lisp-mnt )
5555(defvar reporter-prompt-for-summary-p )
5656
5757
5858; ; Versions
5959
6060(defconst ess-version (eval-when-compile
61- (require 'lisp-mnt )
6261 (lm-version (or load-file-name buffer-file-name)))
6362 " Version of ESS currently loaded." )
6463
6564(defconst essr-version (eval-when-compile
66- (require 'lisp-mnt )
6765 (lm-with-file (or load-file-name buffer-file-name)
6866 (lm-header " ESSR-Version" )))
6967 " Version of ESSR package." )
You can’t perform that action at this time.
0 commit comments