caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
* Emacs 22.3.1 + tuareg + fold-mode
@ 2009-01-13 10:15 Jan Kybic
  2009-01-15  3:21 ` Stefan Monnier
  0 siblings, 1 reply; 3+ messages in thread
From: Jan Kybic @ 2009-01-13 10:15 UTC (permalink / raw)
  To: caml-list

Hello,
        when editing Ocaml sources in Emacs, I found fold-mode quite handy
to selectively and hierarchically hide parts of the code and make it
easier to concentrate on the part I am working on.

Now, with Emacs 22.3.1, tuareg-mode (1.45.6) and fold-mode no longer work
together, the folding just does not happen. With xemacs, it works
fine. 

I have also tried the "folding" mode which works if the markers "{{{"
are alone on the line but stops working as soon as they are enclosed
in comments, like "(* {{{ *)", despite my experiments with modifying
the markers with folding-add-to-marks-list.

Does anyone know if there is a chance that tuareg and fold-mode will
work again together in Emacs? Or would you have a working setup for
the folding-mode? Can you recommend yet another  alternative folding
package for Emacs that works? Or should I switch to XEmacs (a move I
was trying to avoid for some time since I rely on Emacs for most of my
work)?

As a bonus, I would also like the folding to work in tuareg+twt mode.

Thank you for your advice,

Jan

-- 
-------------------------------------------------------------------------
Jan Kybic <kybic@fel.cvut.cz>                       tel. +420 2 2435 5721
http://cmp.felk.cvut.cz/~kybic                      ICQ 200569450


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

* Re: Emacs 22.3.1 + tuareg + fold-mode
  2009-01-13 10:15 Emacs 22.3.1 + tuareg + fold-mode Jan Kybic
@ 2009-01-15  3:21 ` Stefan Monnier
  2009-01-15  9:35   ` [Caml-list] " Jan Kybic
  0 siblings, 1 reply; 3+ messages in thread
From: Stefan Monnier @ 2009-01-15  3:21 UTC (permalink / raw)
  To: caml-list

> Now, with Emacs 22.3.1, tuareg-mode (1.45.6) and fold-mode no longer work
> together, the folding just does not happen. With xemacs, it works

Looks like an Emacs bug.  Why don't you M-x report-emacs-bug ?


        Stefan



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

* Re: [Caml-list] Re: Emacs 22.3.1 + tuareg + fold-mode
  2009-01-15  3:21 ` Stefan Monnier
@ 2009-01-15  9:35   ` Jan Kybic
  0 siblings, 0 replies; 3+ messages in thread
From: Jan Kybic @ 2009-01-15  9:35 UTC (permalink / raw)
  To: Stefan Monnier; +Cc: caml-list

>> Now, with Emacs 22.3.1, tuareg-mode (1.45.6) and fold-mode no longer work
>> together, the folding just does not happen. With xemacs, it works
>
> Looks like an Emacs bug.  Why don't you M-x report-emacs-bug ?
>

In the meantime, I succeeded in making the folding-mode work by
creating my own custom version of folding.el where I add the marks for
the tuareg-mode by adding:

    (folding-add-to-marks-list 'tuareg-mode  "(* {{{" "(* }}}" " *)" t)
    (folding-add-to-marks-list 'tuareg+twt-mode "(* {{{" "(* }}}" " *)" t)

It would have been more elegant to do this customization in the
~/.emacs file but I do not know how to do it and the above solution is
good enough for me for the moment.

Yours,

Jan

-- 
-------------------------------------------------------------------------
Jan Kybic <kybic@fel.cvut.cz>                       tel. +420 2 2435 5721
http://cmp.felk.cvut.cz/~kybic                      ICQ 200569450


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

end of thread, other threads:[~2009-01-15  9:36 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-01-13 10:15 Emacs 22.3.1 + tuareg + fold-mode Jan Kybic
2009-01-15  3:21 ` Stefan Monnier
2009-01-15  9:35   ` [Caml-list] " Jan Kybic

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 NNTP newsgroup(s).