April 07, 2005

using tags with SML

1. After wasting 3–4 hours on looking for tags utility for sml, I've realized that ctags supports SML also. Ctags provides an option (-e) for generating TAGS file for xemacs. So, in order to create SML tags for xemacs, we can use:
ctags -e -R *
and then use [ Meta-. ] and [ Meta-, ] to navigate through them. To remember this diffficult key-sequence, please notice that in british keyboard dot and comma is on the key having > and <, respectively. So to go forward, press Meta-(key having >) and go backward Meta-(key having <)

2. To use comments in SML, do [ Meta-; ] , xemacs will put (* *) magically in the end of the line :).

3. [ C-c C-l ] loads the current sml files and starts sml.

4. [ C-c C-r ]: send the current region to sml-buffer.

5. [ C-x` ] : go to the src line containing the next error.


- 2 comments by 0 or more people Not publicly viewable

  1. Jian Liu

    there is no "–e" option for ctags.
    maybe etags is ok.

    Moreover, I find that some times the result "TGAS" by etags is no so good for programming

    07 May 2005, 14:52

  2. Ashutosh trivedi

    Which Ctags version you are using? Infact ctags 5.4 provides –e option. For me, TAGS results were very helpful for SML as well (not as good as the are for C, though).

    07 May 2005, 16:18


Add a comment

You are not allowed to comment on this entry as it has restricted commenting permissions.

PhD Comics

April 2005

Mo Tu We Th Fr Sa Su
Mar |  Today  | May
            1 2 3
4 5 6 7 8 9 10
11 12 13 14 15 16 17
18 19 20 21 22 23 24
25 26 27 28 29 30   

Search this blog

Adbar

Most recent comments

  • Can't beat a German Market. by on this entry
  • Imagine Shiva in Words by this stotra (Thanks to Ravana) by Yogendra on this entry
  • This is the favorite and most inspiring stothram for me. It invokes the manliness in ourself to rise… by Bhargav on this entry
  • Went last night and it was really good. First time i have been and will definatly return next year. by Mad Dozza on this entry
  • strota really purifies soul by shailendra on this entry

Blog archive

Loading…
Not signed in
Sign in

Powered by BlogBuilder
© MMXIX