<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=iso-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Tobias C. Rittweiler wrote:
<blockquote cite="mid:878wtfhvet.fsf@freebits.de" type="cite">
<pre wrap="">Knut Olav Bøhmer <a class="moz-txt-link-rfc2396E" href="mailto:knut-olav.bohmer@telenor.com"><knut-olav.bohmer@telenor.com></a> writes:
</pre>
<blockquote type="cite">
<blockquote type="cite">
<pre wrap="">I just committed not to do that when we're inside a REPL buffer; but it
doesn't make much sense for .lisp buffers either, or SLDB buffers, or
the inspector, or..
</pre>
</blockquote>
<pre wrap="">
Right, it does not make sense for REPL, SLDB or inspector. But as you
can see from the example above: It makes a lot of sense for .lisp files,
and I use it every day.
</pre>
</blockquote>
<pre wrap=""><!---->
I didn't understand your example. Perhaps you're looking for an extra
command to make the current connection buffer-local in a buffer.
</pre>
</blockquote>
Ok, say stop where you fall off.<br>
--- Example ---<br>
I have two different lisp images running in one emacs. One
business-logic-image, and one web-server-image<br>
There is one source file for image the business-logic-image (lets call
it the business-logic-file), and a different file for the
web-server-image (lets call it the web-server-file)<br>
When I press C-x C-e in the business-logic-file, I want the lisp-form
to be evaluated in the business-logic-file<br>
When I press C-x C-e in the web-server-file, I want the lisp-form to be
evaluated in the web-server-file<br>
Then if I shall do a change in my system that requires changes in both
web-server and business-logic, then I have to change default
connection, at least once.<br>
If the development-cycle requires several iterations. Either because I
want to improve the code, add features, or debug. I would have to
change default connection back and fourth several times.<br>
Then it would be better to have the connection buffer-local, so I would
not have to change it in every development cycle.<br>
------<br>
<br>
And I don't want to make the current default-connection buffer-local.
In my experience, this would require many more steps of interacting
with Emacs to get the desired result. <br>
(step 1: selcect a different default-connection. Step 2: make it
buffer-local. Step 3: go to a different-buffer, that does not have a
buffer-local default-connection. Step 4: select the original
default-connection, to restore desired behaviour. So that we don't
forget this later. Step 5: jump back to the special customized buffer,
to complete your work)<br>
<br>
I want a different connection from the current default-connection to be
the buffer-local default-connection. <br>
The reason that I don't what the current default-connection to be
buffer-local, should be obvious. If I wanted to use the
default-connection, then I would not have to make it buffer-local.<br>
<br>
<blockquote cite="mid:878wtfhvet.fsf@freebits.de" type="cite">
<pre wrap="">Slime-cycle-connections making the new connection buffer-local means for
example that making another connection the default connection via
slime-list-connections will lead to surprises.</pre>
</blockquote>
There will be no surprises. You will anyway need to keep track of your
connection. You can do that by looking at the connection-name in the
mode-line. You will also have to have to know what kind of source-code
you are evaluating, then you would know which lisp-image it should be
evaluated in.<br>
<blockquote cite="mid:878wtfhvet.fsf@freebits.de" type="cite">
<pre wrap="">
Additionally, buffer-local connections can become stale, rendering the
.lisp buffer useless.
</pre>
</blockquote>
If the buffer-local connection become sale, you will avoid running
lisp-commands in another random default connection. <br>
You would then have to restart your lisp-image, or connect again. Then
select the connection as buffer-local for that buffer.<br>
Anyway this is not an hindrance, to implement this functionality. It's
merely an interesting beginners hacking assignment, to <br>
pop up buffer with the connection-list if the connection is broken.<br>
<br>
<div class="moz-signature">-- <br>
<title>FreeCode Signature</title>
<meta http-equiv="Content-Type" content="text/html; ">
<style type="text/css">
body {
font-family: Helvetica, Verdana, "Tahoma MS", Arial, Sans-Serif;
color: black;
font-size: 11pt;
}
.name {
color: #072669;
font-weight: bold;
}
.pos {
color: #cd071e;
font-weight: bold;
}
.cat {
color: #cd071e;
font-size: 10pt;
font-weight: normal;
}
.val {
color: #072669;
font-weight: normal;
}
.quote {
color: gray;
font-size: 9pt;
font-weight: normal;
}
</style>
<span class="name">Free Software Consultant</span><br>
<span class="val">Cell:</span> <span class="val">+47 - 47 34 40 08</span><br>
<span class="val">Phone:</span> <span class="val">+47 - 21 53 69 00, </span><span
class="val">Fax:</span> <span class="val">+47 - 21 53 69 09</span><br>
<span class="val">Addr:</span> <span class="val">Nydalsveien 30b, 0484
Oslo</span><br>
<a href="http://www.freecode.no/" style="text-decoration: none;"><img
style="border: medium none ; padding: 7px 0px 0px;"
src="cid:part1.04000608.01060605@telenor.com" alt="" height="56"
width="370"></a><br>
<pre class="quote">
</pre>
</div>
</body>
</html>