[slime-devel] Patch for recent changes in CVS emacs.
Lawrence Mitchell
wence at gmx.li
Fri Jun 11 22:21:19 UTC 2004
I wondered today why doing C-u M-x slime wasn't prompting me to
create a new inferior-lisp buffer. It turns out that a
recentish change to generate-new-buffer-name in CVS emacs meant
that rename-buffer wasn't actually renaming the inferior-lisp
buffer.
This patch fixes things (we generate the buffer-name
semi-manually).
2004-06-11 Lawrence Mitchell <wence at gmx.li>
* slime.el (slime-maybe-rearrange-inferior-lisp): Call
`generate-new-buffer-name' manually, rather than relying on the
UNIQUE argument to `rename-buffer' to do so.
Index: slime.el
===================================================================
RCS file: /project/slime/cvsroot/slime/slime.el,v
retrieving revision 1.312
diff -u -r1.312 slime.el
--- slime.el 10 Jun 2004 17:34:07 -0000 1.312
+++ slime.el 11 Jun 2004 22:16:08 -0000
@@ -1122,7 +1122,7 @@
"Offer to rename *inferior-lisp* so that another can be started."
(when (y-or-n-p "Create an additional *inferior-lisp*? ")
(with-current-buffer "*inferior-lisp*"
- (rename-buffer (buffer-name) t)
+ (rename-buffer (generate-new-buffer-name (buffer-name)))
t)))
(defun slime-maybe-start-lisp ()
--
Lawrence Mitchell <wence at gmx.li>
More information about the slime-devel
mailing list