technomancy / slamhound

Slamhound rips your namespace form apart and reconstructs it.
Other
473 stars 38 forks source link

Emacs integration handles newlines incorrectly #3

Closed dakrone closed 12 years ago

dakrone commented 13 years ago

Using slamhound from Emacs, I get this new form:


(ns opennlp.nlp
  "The main namespace for the clojure-opennlp project. Functions for\n  creating NLP performers can be created with the tools in this namespace."
  (:use [clojure.java.io :only [input-stream]])
  (:import
    (opennlp.tools.namefind NameFinderME TokenNameFinderModel)
    (opennlp.tools.postag POSModel POSTaggerME)
    (opennlp.tools.sentdetect SentenceDetectorME SentenceModel)
    (opennlp.tools.tokenize
      DetokenizationDictionary
      DetokenizationDictionary$Operation
      Detokenizer$DetokenizationOperation
      DictionaryDetokenizer
      TokenizerME
      TokenizerModel)))

From the command-line, the docstring is printed correctly, but in emacs it's inserted incorrectly. (There's probably some elisp to fix this up pretty quickly, but I don't know it)

technomancy commented 12 years ago

Just got rid of the elisp prettification.