branch: externals/idlwave
commit 5f64a4f9266955c3956e10f83504ea2666b3fd16
Author: JD Smith <jdtsm...@gmail.com>
Commit: JD Smith <jdtsm...@gmail.com>

    Create sintern type on idlwave load
---
 idlw-complete-structtag.el | 4 ++--
 idlw-shell.el              | 3 ++-
 2 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/idlw-complete-structtag.el b/idlw-complete-structtag.el
index abfa4d03d2..e9f344e99c 100644
--- a/idlw-complete-structtag.el
+++ b/idlw-complete-structtag.el
@@ -103,8 +103,8 @@
 (defvar idlwave-sint-structtags nil)
 
 ;; Create the sintern type for structure talks
-(declare-function idlwave-sintern-structtag "idlw-complete-structtag" t t)
-(idlwave-new-sintern-type 'structtag)
+(add-hook 'idlwave-load-hook
+         (lambda () (idlwave-new-sintern-type 'structtag)))
 
 ;; Hook the plugin into idlwave
 (add-to-list 'idlwave-complete-special 'idlwave-complete-structure-tag)
diff --git a/idlw-shell.el b/idlw-shell.el
index 0fa3e24d98..5f61ba47b3 100644
--- a/idlw-shell.el
+++ b/idlw-shell.el
@@ -2255,7 +2255,8 @@ Change the default directory for the process buffer to 
concur."
              (match-string 1 idlwave-shell-command-output)))))
 
 (defvar idlwave-sint-sysvars nil)
-(idlwave-new-sintern-type 'execcomm)
+(add-hook 'idlwave-load-hook
+         (lambda () (idlwave-new-sintern-type 'execcomm)))
 
 (defun idlwave-shell-complete (&optional arg)
   "Do completion in the idlwave-shell buffer.

Reply via email to