I found the github issue about matlab-sections and the highlighting issue,
and added a patch there that should both resolve the issue, and make it
easier to add new features unique to different types of MATLAB files.

Eric

On Wed, Nov 20, 2024 at 3:10 PM Uwe Brauer <o...@mat.ucm.es> wrote:

> >>> "EL" == Eric Ludlam <ericlud...@gmail.com> writes:
>
> > Thanks for the feedback.
> > I was proposing adding a 2nd set of bindings.  For folks with super-key,
> > the current bindings will be faster.  More obscure bindings won't get in
> > their way.
>
> > As for C-c %  vs C-c C-<key> - the Elisp manual is pretty specific saying
> > that C-<punctuation> is reserved for minor modes (excluding ; : { and }
> ).
> >  I picked % out of a hat since it is a comment character.
>
> > As for the bolding effect, that is an overlay in matlab-sections, and if
> > you turn off sections mode, then it goes away.  Sections mode just
> happens
> > to have also adopted the face used for %% comments.  It would be easy to
> > change the defface in sections to inherit from `font-lock-comment-face'
> and
> > fix general font locking.  I lost track of where the actual font lock
> usage
> > of it is, but the defface should be near the font-lock regexps.
>
> Well I just started to use the new section features on a more regular
> base, and I still am not sure whether I like is or prefer to tweak a bit
> the setting.
>
> > As for auto-choosing when to enable detection of sections to avoid
> bolding
> > in functions 'matlab-guess-script-type' already detects the basics of
> what
> > is needed.  It could just not add its post-command-hook if not in a
> > script.  Sections would then also need to watch when this value changes
> and
> > reset itself - typically when one goes from an empty file to one with a
> > function decl in it.
>
> > I'll go look in that other thread too.  Thanks for pointing it out.  I
> > hadn't realized how much I missed b/c the emails are getting binned in a
> > weird place for me when I rearranged my mailing list subscriptions.
>
> Well now, we mostly use issues, not that I am a huge fan, but I can see its
> benefits, and I also managed to configure magit/forge so that I can
> access them from within Emacs which is a big plus.
>
> Uwe
> --
> I strongly condemn Hamas heinous despicable pogroms/atrocities on Israel
> I strongly condemn Putin's war of aggression against Ukraine.
> I support to deliver weapons to Ukraine's military.
> I support the EU and NATO membership of Ukraine.
>
>
_______________________________________________
Matlab-emacs-discuss mailing list
Matlab-emacs-discuss@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matlab-emacs-discuss

Reply via email to