<html>
  <head>
    <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <br>
    <br>
    <div class="moz-cite-prefix">On 07/14/2015 06:15 PM, Blake McBride
      wrote:<br>
    </div>
    <blockquote
cite="mid:CABwHSOs1Q_MaqAYhw+6sbfgni2HsiaUnsXv3vC095bqcd2HmSw@mail.gmail.com"
      type="cite">
      <div dir="ltr">I had to take the "P" argument out, and then
        everything worked perfectly.  Thanks!!
        <div><br>
        </div>
        <div>(I am using GNU Emacs 24.3.1)</div>
        <div><br>
        </div>
        <div>I am surprised this sequence isn't a pre-configured feature
          of standard slime with a keyboard shortcut.  It is my most
          used sequence.</div>
        <div><br>
        </div>
        <div>Thanks!</div>
        <div><br>
        </div>
        <div>Blake</div>
        <div><br>
        </div>
        <div class="gmail_extra"><br>
          <div class="gmail_quote">On Tue, Jul 14, 2015 at 6:17 PM,
            edgar <span dir="ltr"><<a moz-do-not-send="true"
                href="mailto:edgar-rft@web.de" target="_blank">edgar-rft@web.de</a>></span>
            wrote:<br>
            <blockquote class="gmail_quote" style="margin:0 0 0
              .8ex;border-left:1px #ccc solid;padding-left:1ex">Am Tue,
              14 Jul 2015 16:58:31 -0500<br>
              schrieb Blake McBride <<a moz-do-not-send="true"
                href="mailto:blake@mcbride.name">blake@mcbride.name</a>>:<br>
              <span class=""><br>
                > Greetings,<br>
                ><br>
                > Long-time lisp user, short time slime user here. 
                There is something<br>
                > I like to do frequently but seems to be a real
                hassle with slime.<br>
                > I'm sure either there is a command to do what I
                want, or it is easy<br>
                > for me to write one.  I thought rather than going
                doen an ignorant<br>
                > path, I'd ask the list.  Sure appreciate any help.<br>
                ><br>
                > What I would like is a keyboard command that would:<br>
                ><br>
                > 1.  save the current file being edited<br>
                ><br>
                > 2.  load (not compile) that file without asking
                it's name<br>
                <br>
              </span>A basic Emacs function doing both could look like
              this:<br>
              <br>
              (defun slime-save-and-load-file ()<br>
                (interactive "P")<br>
                (let ((filename (buffer-file-name)))<br>
                  (if (not filename)<br>
                      (message "Buffer %s is not associated with a
              file."<br>
                               (buffer-name))<br>
                    (save-buffer)<br>
                    (slime-load-file filename))))<br>
              <span class="HOEnZb"><font color="#888888"><br>
                  - edgar<br>
                </font></span></blockquote>
          </div>
          <br>
        </div>
      </div>
    </blockquote>
    <br>
    Just out of curiosity, why do you do this all the time? What's the
    scenario?<br>
    <br>
    --Jeff<br>
    <br>
  </body>
</html>