]> git.eshelyaron.com Git - emacs.git/commitdiff
(elint-add-required-env): Revert to not using temp-buffers (2009-09-12).
authorGlenn Morris <rgm@gnu.org>
Mon, 14 Sep 2009 00:48:06 +0000 (00:48 +0000)
committerGlenn Morris <rgm@gnu.org>
Mon, 14 Sep 2009 00:48:06 +0000 (00:48 +0000)
lisp/ChangeLog
lisp/emacs-lisp/elint.el

index 328e68dc7fb524decb04e925c06e4ab0f8823e93..41362abced0d509ebc0064714e2238cbe89b3fca 100644 (file)
@@ -1,3 +1,8 @@
+2009-09-14  Glenn Morris  <rgm@gnu.org>
+
+       * emacs-lisp/elint.el (elint-add-required-env): Revert to not using
+       temp-buffers (2009-09-12).
+
 2009-09-13  Stefan Monnier  <monnier@iro.umontreal.ca>
 
        * textmodes/ispell.el (ispell-command-loop): Improve last fix, using
index d2e950ae908a14fae425935b33ec09fb3207ea40..e90b72f65ff649e5ebb462d6ee404a4fb7c02fd0 100644 (file)
@@ -352,14 +352,17 @@ Return nil if there are no more forms, t otherwise."
        (message nil)
        (if lib
            (save-excursion
-             ;;; (set-buffer (find-file-noselect lib))
-             ;;; (elint-update-env)
-             ;;; (setq env (elint-env-add-env env elint-buffer-env)))
-             (with-temp-buffer
-               (insert-file-contents lib)
-               (with-syntax-table emacs-lisp-mode-syntax-table
-                 (elint-update-env))
-               (setq env (elint-env-add-env env elint-buffer-env))))
+             ;; FIXME this doesn't use a temp buffer, because it
+             ;; stores the result in buffer-local variables so that
+             ;; it can be reused.
+             (set-buffer (find-file-noselect lib))
+             (elint-update-env)
+             (setq env (elint-env-add-env env elint-buffer-env)))
+             ;;; (with-temp-buffer
+             ;;;       (insert-file-contents lib)
+             ;;;       (with-syntax-table emacs-lisp-mode-syntax-table
+             ;;;         (elint-update-env))
+             ;;;       (setq env (elint-env-add-env env elint-buffer-env))))
              ;;(message "Elint processed (require '%s)" name))
          (error "Unable to find require'd library %s" name)))
     (error