unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#26521: sml-mode indentation level problem
@ 2017-04-15 13:43 Téssio Fechine
  2019-07-26  9:48 ` Lars Ingebrigtsen
  0 siblings, 1 reply; 2+ messages in thread
From: Téssio Fechine @ 2017-04-15 13:43 UTC (permalink / raw)
  To: 26521

[-- Attachment #1: Type: text/plain, Size: 403 bytes --]

Hello,

The default indentation level of sml-mode is 4 (as appears in Options ->
Customize Emacs -> Top-level Customization Group -> Programming ->
Languages -> Sml -> Sml Indent Level), but in a newly installed sml-mode
6.7 running on Emacs 25.1.1 (Xubuntu 17.04) it's indenting with only 2
spaces.
I tried manually setting it to another value, using the Customize Emacs
facility, but nothing changes.

[-- Attachment #2: Type: text/html, Size: 484 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

* bug#26521: sml-mode indentation level problem
  2017-04-15 13:43 bug#26521: sml-mode indentation level problem Téssio Fechine
@ 2019-07-26  9:48 ` Lars Ingebrigtsen
  0 siblings, 0 replies; 2+ messages in thread
From: Lars Ingebrigtsen @ 2019-07-26  9:48 UTC (permalink / raw)
  To: Téssio Fechine; +Cc: 26521

Téssio Fechine <tessiof@gmail.com> writes:

> The default indentation level of sml-mode is 4 (as appears in Options
> -> Customize Emacs -> Top-level Customization Group -> Programming ->
> Languages -> Sml -> Sml Indent Level), but in a newly installed
> sml-mode 6.7 running on Emacs 25.1.1 (Xubuntu 17.04) it's indenting
> with only 2 spaces.  I tried manually setting it to another value,
> using the Customize Emacs facility, but nothing changes.

I tried this test SML program:

val _ =
    let
	val t = Timer.startCPUTimer()
    in
	count(10000000);
	print (Time.toString(#usr(Timer.checkCPUTimer(t))) ^ "\n")
    end;

and then

(setq sml-indent-level 8)

and reindented:

val _ =
    let
	      val t = Timer.startCPUTimer()
    in
	      count(10000000);
	      print (Time.toString(#usr(Timer.checkCPUTimer(t))) ^ "\n")
    end;

So it seems to work on some bits, but not others?  You'd expect the
"let" etc also to be indented with 8 spaces, but I'm not familiar with
SML (any more).

Perhaps somebody with more knowledge of this could weigh in here.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no





^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2019-07-26  9:48 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-04-15 13:43 bug#26521: sml-mode indentation level problem Téssio Fechine
2019-07-26  9:48 ` Lars Ingebrigtsen

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).