title: Remove the suffix of a returned filename
body: <p>I set the yasnippet of elisp src as </p>
  
  <pre><code>#+begin_src emacs-lisp :session `(current-buffer)` :lexical t
  $0
  #+end_src
  </code></pre>
  
  <p>Which set the current-buffer as session name</p>
  
  <pre><code>#+begin_src emacs-lisp :current-file-name sicp :lexical t
  (current-buffer)
  #+end_src
  #+RESULTS:
  : #&lt;buffer yasnippet-offprint.org&gt;
  </code></pre>
  
  <p>A minor problem is to remove  suffix <code>org</code> from yasnippet-offprint.org.</p>
  
  <p>This might be trivial, but search the elisp manual, thus did not got an immediate solution.</p>
  
  <p>How could remove the suffix the yasnippet-offprint.org</p>
  
  <p>The result I desire is</p>
  
  <pre><code>#+begin_src emacs-lisp :session yasnippet-offprint :lexical t
  
  #+end_src
  </code></pre>