branch: externals/idlwave commit 6c9137c2daa8d9e9e8c66faf49a71d36195f72ba Author: JD Smith <jdtsm...@gmail.com> Commit: JD Smith <jdtsm...@gmail.com>
Run hooks later and wait for initial commands. Ensures correct prompt pattern recognition. --- idlw-shell.el | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/idlw-shell.el b/idlw-shell.el index 868c50d6f9..ee9ba5c412 100644 --- a/idlw-shell.el +++ b/idlw-shell.el @@ -1085,13 +1085,13 @@ IDL has currently stepped.") (set (make-local-variable 'tool-bar-map) nil) ;; Run the hooks. - (run-mode-hooks 'idlwave-shell-mode-hook) - (idlwave-shell-send-command idlwave-shell-initial-commands nil 'hide) ;; Turn off IDL's paging, and define a system ;; variable which knows the version of IDLWAVE + (idlwave-shell-send-command idlwave-shell-initial-commands nil 'hide 'wait) (idlwave-shell-send-command (format "!MORE=0 & defsysv,'!idlwave_version','%s',1" idlwave-mode-version) nil 'hide) + (run-mode-hooks 'idlwave-shell-mode-hook) ;; Read the paths, and save if they changed (idlwave-shell-send-command idlwave-shell-path-query 'idlwave-shell-get-path-info