Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7013805
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T22:26:20+00:00 2026-05-27T22:26:20+00:00

I am connecting to a swank server from my ClojureBox install. I.e. lein swank

  • 0

I am connecting to a swank server from my ClojureBox install. I.e. lein swank from my project directory and then M-x slime-connect from EmacsW32.

However, when I do this I see the DOS line-endings everywhere in the REPL (^M). I.e.

user> (doc map)
-------------------------^M
clojure.core/map^M
([f coll] [f c1 c2] [f c1 c2 c3] [f c1 c2 c3 & colls])^M
  Returns a lazy sequence consisting of the result of applying f to the
  set of first items of each coll, followed by applying f to the set
  of second items in each coll, until any one of the colls is
  exhausted.  Any remaining items in other colls are ignored. Function
  f should accept number-of-colls arguments.^M
nil 

user> (println "foo")
foo^M

I’m aware that this has to do with platform encoding, but I’m having trouble figuring out how to suppress them. I poked around in the EmacsW32 menus and tried the java command line system property (in lein.bat) -Dfile.encoding=ISO-8859-1 to no avail.

I’ve also found other questions about doing global find/replace of ^M within buffers – but I want to filter REPL output.

I also noticed the following in the *inferior-lisp* buffer:

(do (.. java.net.InetAddress getLocalHost getHostAddress) nil)(swank.swank/start-server "c:/Users/noahz/AppData/Local/Temp/slime.4912" :encoding "iso-latin-1-unix")

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T22:26:20+00:00Added an answer on May 27, 2026 at 10:26 pm

    I have this in my .emacs:

    (defun hide-eol ()
      "Do not show ^M in files containing mixed UNIX and DOS line endings."
      (interactive)
      (setq buffer-display-table (make-display-table))
      (aset buffer-display-table ?\^M []))
    

    I just call it with M-x hide-eol when required. You could bind a key, or put it in a hook of some sort if you prefer.

    Credit is due to persons unknown – I copied this function from somewhere, but I don’t remember where.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

When trying to M-x slime-connect to a swank server running in a clojure app
When connecting to sql server, I have the hardcoded string (local). Is this a
I am connecting to a server from an android device and querying the database
When connecting to oracle server from .NET application using ADO.NET for oracle, even if
After connecting to server, I run some commands on server and then trying to
My superficial understanding is that 'swank-clojure' makes 'M-x slime-connect' possible. I mean, it gives
When connecting to my server (from a different machine) I get Error Code: 1044
when I start swank through leiningen it accepts the next slime connection and off
I am looking at connecting to a openSuse 11.1 Beta 3 virtual machine from
I tried connecting to my cassandra cluster [version 1.0.6] via nodejs using node-cassandra-client This

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.