From f95f7f89ce2091334e6609641381b6c7e442832e Mon Sep 17 00:00:00 2001 From: Kazu Yamamoto Date: Wed, 6 Aug 2014 20:50:50 +0900 Subject: [PATCH] removing warnings of Emacs Lisp. --- elisp/ghc-rewrite.el | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/elisp/ghc-rewrite.el b/elisp/ghc-rewrite.el index 98f765b..c861b94 100644 --- a/elisp/ghc-rewrite.el +++ b/elisp/ghc-rewrite.el @@ -11,6 +11,9 @@ (require 'ghc-func) (require 'ghc-process) +(defvar ghc-auto-info nil) +(defvar ghc-auto-buffer nil) + ;; Common code for case splitting and refinement (defun ghc-perform-rewriting (info) @@ -123,7 +126,7 @@ (if (null info) (message "No automatic completions found") (if (= (length (ghc-sinfo-get-info info)) 1) - (ghc-perform-rewriting-auto info (first (ghc-sinfo-get-info info))) + (ghc-perform-rewriting-auto info (car (ghc-sinfo-get-info info))) (ghc-show-auto-messages info))))) (defun ghc-obtain-auto ()