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 9190283
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T20:25:35+00:00 2026-06-17T20:25:35+00:00

Recently I have started dabbling in the sml-mode Emacs package for running SML code.

  • 0

Recently I have started dabbling in the sml-mode Emacs package for running SML code. The problem I’m facing is when I try to send across a region of my SML code/file to the REPL (which I think is the only logical way of writing multi-line functions in SML without getting troubled by the primitive REPL). Here is my workflow:

  • Open up an SML file (the SML mode shows in the bottom part of the window)
  • Open up the REPL if it isn’t already running (C-c C-s)
  • Again get back to the SML file and write a function
  • Select the entire function and then press C-C C-r. I get an error “Not a `sml-prog-proc` buffer”
  • Now instead of selecting a region, just try to send the entire file to the REPL using C-C C-l; again the same error in the mini-buffer

Can someone please help me out in understand why this occurs and how to actually send across code from a script/file to the REPL when using SML? If it matters, I’m using SML/NJ.

TIA,
sasuke

  • 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-06-17T20:25:36+00:00Added an answer on June 17, 2026 at 8:25 pm

    This was bugging me as well, as it worked on some occasions but not on others.

    If the sml process is killed with C-d (as recommended when issuing ‘use’ commands) and immediately restarted from the same buffer (C-c C-s), the error will occur whenever any of the ‘send-to-repl’ operations are performed.

    The correct way (after killing the repl) is to switch back to the buffer containing the .sml file that is being edited and restart the repl from there (C-c C-s) or by either of (C-c C-r) or (C-c C-l).

    HTH.

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

Sidebar

Related Questions

I have recently started learning c# and have come across an issue. I'm not
I have recently started using DocCheck for checking the validity of JavaDoc's in code
I have recently started using Emacs after using Vim for a long time now
I have recently started to code heavily AJAX supported scripts in PHP, thing is,
I have started dabbling with Facebook Graph api fairly recently. I have defined a
We have recently started using git and had a nasty problem when someone committed
Have recently started working with Sitecore 6.2. Is there a way to preserve code
I have recently started creating a website in PHP. Most of my code is
Recently I have started learning rails and was a little surprised that the default
I have recently started using Netbeans with following stack Liferay, icefaces with jBoss. Is

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.