[slime-devel] slime-with-output-to-temp-buffer small fix

Rui Patrocínio rui.patrocinio at netvisao.pt
Sat Jun 19 17:30:29 UTC 2004


Hello,

 When invoking something in a temp buffer, the old window configuration
is erased by the current one. I don't know if this is a bug but it's a
little annoying, so here is a small fix.

 Rui Patrocínio
-------------- next part --------------
--- slime.el	2004-06-19 18:09:46.000000000 +0100
+++ /home/rmmp/system/slime/slime.el	2004-06-19 18:13:18.000000000 +0100
@@ -954,9 +954,10 @@
      (prog1 (with-current-buffer standard-output , at body)
        (with-current-buffer standard-output
          (setq slime-buffer-connection connection)
-         (set (make-local-variable 
-               'slime-temp-buffer-saved-window-configuration)
-              ,config)
+         (when (not slime-temp-buffer-saved-window-configuration)
+           (set (make-local-variable
+                 'slime-temp-buffer-saved-window-configuration)
+                ,config))
          (goto-char (point-min))
          (slime-mode 1)
          (set-syntax-table lisp-mode-syntax-table)


More information about the slime-devel mailing list