Handling of file Local Variables

Bug #1005960 reported by lborgman
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
nXhtml
New
Undecided
Unassigned

Bug Description

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:
*/

Revision history for this message
lborgman (lennart-borgman) wrote :

Thanks Konrad, I think you have found a bug that might be important.

I have not thought about "Local Variables" and how MuMaMo/nXhtml should handle them.

Unfortunately I do not have much time to do that now. If someone else want to jump in that would be good.

Revision history for this message
Konrad Eisele (koxrad) wrote : Re: [Bug 1005960] Re: Handling of file Local Variables

lborgman wrote:
> Thanks Konrad, I think you have found a bug that might be important.
>
> I have not thought about "Local Variables" and how MuMaMo/nXhtml should
> handle them.
>
> Unfortunately I do not have much time to do that now. If someone else
> want to jump in that would be good.
>

I could try to look into it, however I dont have much
insight into emacs-lisp. If you could give me some hints
how "Local Variables" get processed in Emacs (what files
for c-mode are involved) and what a fix for nxhtml would
have to look like I could try to
dig in...
-- Konrad

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Related questions

Remote bug watches

Bug watches keep track of this bug in other bug trackers.