Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP


Save point and mark when inserting ns form #5

wants to merge 1 commit into from

2 participants


No description provided.


I'm on the fence about this. M-x slamhound is essentially an editing command. If you hide it in a save-excursion, then you may not see the results of what you did.

@technomancy technomancy referenced this pull request from a commit
Alex Baranosky [Issue #5] uses require/refer from old ns when present 79a1c9b
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Apr 27, 2011
  1. @juergenhoetzel
This page is out of date. Refresh to see the latest.
Showing with 9 additions and 8 deletions.
  1. +9 −8
@@ -82,14 +82,15 @@ Add this definition to your Emacs config, then start a slime session.
(defun slamhound ()
- (let ((result (first (slime-eval `(swank:eval-and-grab-output
- (format "(do (require 'slam.hound)
- (slam.hound/reconstruct \"%s\"))"
- ,buffer-file-name))))))
- (goto-char (point-min))
- (kill-sexp)
- (insert result)))
+ (save-excursion
+ (let ((result (first (slime-eval `(swank:eval-and-grab-output
+ (format "(do (require 'slam.hound)
+ (slam.hound/reconstruct \"%s\"))"
+ ,buffer-file-name))))))
+ (goto-char (point-min))
+ (kill-sexp)
+ (insert result))))
Then you'll be able to run M-x slamhound to reconstruct your ns
form. This also avoids the startup penalty.
Something went wrong with that request. Please try again.