How to enable /* Local variables */

Asked by Konrad Eisele

I have added my own little mumamo c-org-mumamo-mode so that
I can embed org-mode snippets inside a c-file comment. " use +{ ... }+ brackets
to mark org-mode.
Now the problem I have is that the /* Local Variables: */ of the
test.c dont get propagated to c-mode. The local variables are
ignored. How can I enable so that c-mode gets the local variables?
-- Konrad

mumamo-fun.el:
...
(defun mumamo-chunk-c-org(pos min max)
  "Find +{ ... }+. Return range and `org-mode'.
See `mumamo-find-possible-chunk' for POS, MIN and MAX."
  (mumamo-quick-static-chunk pos min max "+{" "}+" t 'org-mode t))

;;;###autoload
(define-mumamo-multi-major-mode c-org-mumamo-mode
  "Turn on multiple major modes for C with main mode `c-mode' and comment embedded org-mode snippets. "
  ("C-org Family" c-mode
   (mumamo-chunk-c-org
    )))
...

test.c:
/*+{
This is org-mde
}+
*/

func() {}

/*
Local Variables:
c-basic-offset:4
indent-tabs-mode:nil
End:
*/

Question information

Language:
English Edit question
Status:
Answered
For:
nXhtml Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
lborgman (lennart-borgman) said :
#1

Thanks Konrad, I think this is a bug so I have created a bug report linked to this question. Please see there for more.

Can you help with this problem?

Provide an answer of your own, or ask Konrad Eisele for more information if necessary.

To post a message you must log in.