Browse files

Complete struct-tags even if shell only loaded.

  • Loading branch information...
1 parent e9d1908 commit d62acf6aef60d35cfb74ca642f189d313c434d12 @jdtsmith committed Jan 2, 2011
Showing with 5 additions and 7 deletions.
  1. +2 −1 idlw-shell.el
  2. +3 −6 idlwave.el
View
3 idlw-shell.el
@@ -964,7 +964,8 @@ IDL has currently stepped.")
\\{idlwave-shell-mode-map}"
(interactive)
- (idlwave-setup) ; Make sure config files and paths, etc. are available.
+ ; Make sure config files and paths, etc. are available.
+ (idlwave-setup)
(unless (file-name-absolute-p idlwave-shell-command-history-file)
(setq idlwave-shell-command-history-file
(expand-file-name idlwave-shell-command-history-file
View
9 idlwave.el
@@ -2002,11 +2002,6 @@ The main features of this mode are
;; Update the routine info with info about current buffer?
(idlwave-new-buffer-update)
- (if idlwave-complete-structure-tags
- (add-hook 'idlwave-mode-hook
- (lambda ()
- (require 'idlw-complete-structtag))))
-
;; Run the mode hook
(run-mode-hooks 'idlwave-mode-hook))
@@ -2031,7 +2026,9 @@ The main features of this mode are
(idlwave-read-paths) ; we may need these early
(idlwave-help-check-locations)
-
+
+ (if idlwave-complete-structure-tags
+ (require 'idlw-complete-structtag))
(setq idlwave-setup-done t)))
(defun idlwave-font-lock-fontify-region (beg end &optional verbose)

0 comments on commit d62acf6

Please sign in to comment.