<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/xhtml; charset=utf-8">
</head>
<body><div style="font-family: sans-serif;"><div class="markdown" style="white-space: normal;">
<p dir="auto">Another question about Aquamacs and <a href="https://github.com/joaotavora/sly" style="color: #3983C4;">SLY</a>:</p>
<p dir="auto">SLY has constructs called stickers, implemented as overlays on code. As code is executed the values of the code snippets are logged and then one can replay them in a special buffer. For more details, see <a href="http://joaotavora.github.io/sly/#Stickers" style="color: #3983C4;">this page in the SLY manual</a>.</p>
<p dir="auto">My problem (also recorded in <a href="https://github.com/joaotavora/sly/issues/554" style="color: #3983C4;">this sly issue</a> is that when I press a key in the sticker replay buffer, it should highlight the corresponding piece of the code in the source buffer.  And, indeed, it does that correctly.  <strong>But</strong> instead of leaving the cursor in the replay buffer, the cursor is left in the source code buffer, which is bad because it makes it hard to move back and forth in the history and because inappropriate keystrokes get inserted into the source code.</p>
<p dir="auto">The full details of the code are in <a href="https://github.com/joaotavora/sly/issues/554" style="color: #3983C4;">the sly issue</a>, but the gist seems to be that the sly function's use of <code style="margin: 0 0; padding: 0 0.25em; border-radius: 3px; background-color: #F7F7F7;">display-buffer</code> or <code style="margin: 0 0; padding: 0 0.25em; border-radius: 3px; background-color: #F7F7F7;">with-selected-window</code> does not function correctly.</p>
<p dir="auto">I wonder if this could be another interaction with Aquamacs.  Note that this is happening to me across frames (source buffer in one frame, sticker replay buffer in another), in case it's related to the issue of multiple frames (which maybe work differently on Aquamacs?).  Note that I do <em>not</em> use one-buffer one-frame mode.</p>
<p dir="auto">Thanks for any advice!</p>

</div>
</div>
</body>

</html>