aboutsummaryrefslogtreecommitdiffstats
path: root/lisp/progmodes/idlw-shell.el
diff options
context:
space:
mode:
Diffstat (limited to 'lisp/progmodes/idlw-shell.el')
-rw-r--r--lisp/progmodes/idlw-shell.el31
1 files changed, 14 insertions, 17 deletions
diff --git a/lisp/progmodes/idlw-shell.el b/lisp/progmodes/idlw-shell.el
index 692fce0234e..6720014ed31 100644
--- a/lisp/progmodes/idlw-shell.el
+++ b/lisp/progmodes/idlw-shell.el
@@ -508,11 +508,19 @@ the expression output by IDL."
508(defvar comint-last-input-start) 508(defvar comint-last-input-start)
509(defvar comint-last-input-end) 509(defvar comint-last-input-end)
510 510
511(defvar idlwave-shell-temp-pro-file nil
512 "Absolute pathname for temporary IDL file for compiling regions")
513
514(defvar idlwave-shell-temp-rinfo-save-file nil
515 "Absolute pathname for temporary IDL file save file for routine_info.
516This is used to speed up the reloading of the routine info procedure
517before use by the shell.")
518
511(defun idlwave-shell-temp-file (type) 519(defun idlwave-shell-temp-file (type)
512 "Return a temp file, creating it if necessary. 520 "Return a temp file, creating it if necessary.
513 521
514TYPE is either 'pro or 'rinfo, and idlwave-shell-temp-pro-file or 522TYPE is either `pro' or `rinfo', and `idlwave-shell-temp-pro-file' or
515idlwave-shell-temp-rinfo-save-file is set (respectively)." 523`idlwave-shell-temp-rinfo-save-file' is set (respectively)."
516 (cond 524 (cond
517 ((eq type 'rinfo) 525 ((eq type 'rinfo)
518 (or idlwave-shell-temp-rinfo-save-file 526 (or idlwave-shell-temp-rinfo-save-file
@@ -550,17 +558,6 @@ idlwave-shell-temp-rinfo-save-file is set (respectively)."
550 nil) 558 nil)
551 file))) 559 file)))
552 560
553;; Other variables
554(defvar idlwave-shell-temp-pro-file
555 nil
556 "Absolute pathname for temporary IDL file for compiling regions")
557
558(defvar idlwave-shell-temp-rinfo-save-file
559 nil
560 "Absolute pathname for temporary IDL file save file for routine_info.
561This is used to speed up the reloading of the routine info procedure
562before use by the shell.")
563
564(defvar idlwave-shell-dirstack-query "cd,current=___cur & print,___cur" 561(defvar idlwave-shell-dirstack-query "cd,current=___cur & print,___cur"
565 "Command used by `idlwave-shell-resync-dirs' to query IDL for 562 "Command used by `idlwave-shell-resync-dirs' to query IDL for
566the directory stack.") 563the directory stack.")
@@ -2523,6 +2520,10 @@ idlw-shell-examine-alist from which to select the help command text."
2523(defvar idlwave-shell-examine-window-alist nil 2520(defvar idlwave-shell-examine-window-alist nil
2524 "Variable to hold the win/height pairs for all *Examine* windows.") 2521 "Variable to hold the win/height pairs for all *Examine* windows.")
2525 2522
2523(defvar idlwave-shell-examine-map (make-sparse-keymap))
2524(define-key idlwave-shell-examine-map "q" 'idlwave-shell-examine-display-quit)
2525(define-key idlwave-shell-examine-map "c" 'idlwave-shell-examine-display-clear)
2526
2526(defun idlwave-shell-examine-display () 2527(defun idlwave-shell-examine-display ()
2527 "View the examine command output in a separate buffer." 2528 "View the examine command output in a separate buffer."
2528 (let (win cur-beg cur-end) 2529 (let (win cur-beg cur-end)
@@ -2603,10 +2604,6 @@ idlw-shell-examine-alist from which to select the help command text."
2603 (skip-chars-backward "\n") 2604 (skip-chars-backward "\n")
2604 (recenter -1))))) 2605 (recenter -1)))))
2605 2606
2606(defvar idlwave-shell-examine-map (make-sparse-keymap))
2607(define-key idlwave-shell-examine-map "q" 'idlwave-shell-examine-display-quit)
2608(define-key idlwave-shell-examine-map "c" 'idlwave-shell-examine-display-clear)
2609
2610(defun idlwave-shell-examine-display-quit () 2607(defun idlwave-shell-examine-display-quit ()
2611 (interactive) 2608 (interactive)
2612 (let ((win (selected-window))) 2609 (let ((win (selected-window)))