aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJ.D. Smith2006-11-20 21:35:28 +0000
committerJ.D. Smith2006-11-20 21:35:28 +0000
commitdd5baa1aae3d6efafbb1099088a88f2c60fca987 (patch)
tree1084c5f89f516cfed5f1313b84c6eb189d36f73b
parent1ce0a32d363fa529e90b24eb4e83ca7ea871d27d (diff)
downloademacs-dd5baa1aae3d6efafbb1099088a88f2c60fca987.tar.gz
emacs-dd5baa1aae3d6efafbb1099088a88f2c60fca987.zip
(idlwave-shell-filter-directory): Handle extra newlines and spaces.
(idlwave-shell-mode-map): Add help-with-topic.
-rw-r--r--lisp/progmodes/idlw-shell.el15
1 files changed, 9 insertions, 6 deletions
diff --git a/lisp/progmodes/idlw-shell.el b/lisp/progmodes/idlw-shell.el
index f4c117fd935..9f43aa1f9e8 100644
--- a/lisp/progmodes/idlw-shell.el
+++ b/lisp/progmodes/idlw-shell.el
@@ -6,7 +6,7 @@
6;; Carsten Dominik <dominik@astro.uva.nl> 6;; Carsten Dominik <dominik@astro.uva.nl>
7;; Chris Chase <chase@att.com> 7;; Chris Chase <chase@att.com>
8;; Maintainer: J.D. Smith <jdsmith@as.arizona.edu> 8;; Maintainer: J.D. Smith <jdsmith@as.arizona.edu>
9;; Version: 6.0_em22 9;; Version: 6.1_em22
10;; Keywords: processes 10;; Keywords: processes
11 11
12;; This file is part of GNU Emacs. 12;; This file is part of GNU Emacs.
@@ -31,7 +31,7 @@
31;; This mode is for IDL version 5 or later. It should work on 31;; This mode is for IDL version 5 or later. It should work on
32;; Emacs>20.3 or XEmacs>20.4. 32;; Emacs>20.3 or XEmacs>20.4.
33;; 33;;
34;; Runs IDL as an inferior process of Emacs, much like the emacs 34;; Runs IDL as an inferior process of Emacs, much like the Emacs
35;; `shell' or `telnet' commands. Provides command history and 35;; `shell' or `telnet' commands. Provides command history and
36;; searching. Provides debugging commands available in buffers 36;; searching. Provides debugging commands available in buffers
37;; visiting IDL procedure files, e.g., breakpoint setting, stepping, 37;; visiting IDL procedure files, e.g., breakpoint setting, stepping,
@@ -252,7 +252,7 @@ to set this option to nil."
252 :group 'idlwave-shell-general-setup 252 :group 'idlwave-shell-general-setup
253 :type 'boolean) 253 :type 'boolean)
254 254
255(defcustom idlwave-shell-file-name-chars "~/A-Za-z0-9+:_.$#%={}\\-" 255(defcustom idlwave-shell-file-name-chars "~/A-Za-z0-9+:_.$#%={}\\- "
256 "The characters allowed in file names, as a string. 256 "The characters allowed in file names, as a string.
257Used for file name completion. Must not contain `'', `,' and `\"' 257Used for file name completion. Must not contain `'', `,' and `\"'
258because these are used as separators by IDL." 258because these are used as separators by IDL."
@@ -1573,7 +1573,8 @@ and then calls `idlwave-shell-send-command' for any pending commands."
1573 (re-search-backward idlwave-shell-prompt-pattern nil t) 1573 (re-search-backward idlwave-shell-prompt-pattern nil t)
1574 (goto-char (match-end 0)) 1574 (goto-char (match-end 0))
1575 (setq idlwave-shell-command-output 1575 (setq idlwave-shell-command-output
1576 (buffer-substring-no-properties (point-min) (point))) 1576 (buffer-substring-no-properties
1577 (point-min) (point)))
1577 (delete-region (point-min) (point))) 1578 (delete-region (point-min) (point)))
1578 (setq idlwave-shell-command-output 1579 (setq idlwave-shell-command-output
1579 (with-current-buffer (process-buffer proc) 1580 (with-current-buffer (process-buffer proc)
@@ -2101,7 +2102,7 @@ HEAP_GC, /VERBOSE"
2101Change the default directory for the process buffer to concur." 2102Change the default directory for the process buffer to concur."
2102 (save-excursion 2103 (save-excursion
2103 (set-buffer (idlwave-shell-buffer)) 2104 (set-buffer (idlwave-shell-buffer))
2104 (if (string-match ",___cur[\n\r]\\(\\S-*\\) *[\n\r]" 2105 (if (string-match ",___cur[\n\r ]+\\([^\n\r]+\\)[\n\r]"
2105 idlwave-shell-command-output) 2106 idlwave-shell-command-output)
2106 (let ((dir (substring idlwave-shell-command-output 2107 (let ((dir (substring idlwave-shell-command-output
2107 (match-beginning 1) (match-end 1)))) 2108 (match-beginning 1) (match-end 1))))
@@ -4099,13 +4100,15 @@ Otherwise, just expand the file name."
4099 4100
4100;(define-key idlwave-shell-mode-map "\M-?" 'comint-dynamic-list-completions) 4101;(define-key idlwave-shell-mode-map "\M-?" 'comint-dynamic-list-completions)
4101;(define-key idlwave-shell-mode-map "\t" 'comint-dynamic-complete) 4102;(define-key idlwave-shell-mode-map "\t" 'comint-dynamic-complete)
4103(define-key idlwave-shell-mode-map "\C-w" 'comint-kill-region)
4102(define-key idlwave-shell-mode-map "\t" 'idlwave-shell-complete) 4104(define-key idlwave-shell-mode-map "\t" 'idlwave-shell-complete)
4103(define-key idlwave-shell-mode-map "\M-\t" 'idlwave-shell-complete) 4105(define-key idlwave-shell-mode-map "\M-\t" 'idlwave-shell-complete)
4104(define-key idlwave-shell-mode-map "\C-c\C-s" 'idlwave-shell) 4106(define-key idlwave-shell-mode-map "\C-c\C-s" 'idlwave-shell)
4105(define-key idlwave-shell-mode-map "\C-c?" 'idlwave-routine-info) 4107(define-key idlwave-shell-mode-map "\C-c?" 'idlwave-routine-info)
4106(define-key idlwave-shell-mode-map "\C-g" 'idlwave-keyboard-quit) 4108(define-key idlwave-shell-mode-map "\C-g" 'idlwave-keyboard-quit)
4107(define-key idlwave-shell-mode-map "\M-?" 'idlwave-context-help) 4109(define-key idlwave-shell-mode-map "\M-?" 'idlwave-context-help)
4108(define-key idlwave-shell-mode-map [(control meta ?\?)] 'idlwave-online-help) 4110(define-key idlwave-shell-mode-map [(control meta ?\?)]
4111 'idlwave-help-assistant-help-with-topic)
4109(define-key idlwave-shell-mode-map "\C-c\C-i" 'idlwave-update-routine-info) 4112(define-key idlwave-shell-mode-map "\C-c\C-i" 'idlwave-update-routine-info)
4110(define-key idlwave-shell-mode-map "\C-c\C-y" 'idlwave-shell-char-mode-loop) 4113(define-key idlwave-shell-mode-map "\C-c\C-y" 'idlwave-shell-char-mode-loop)
4111(define-key idlwave-shell-mode-map "\C-c\C-x" 'idlwave-shell-send-char) 4114(define-key idlwave-shell-mode-map "\C-c\C-x" 'idlwave-shell-send-char)