Modifying plugin style has no effect?

I am learning how TeXmacs uses plugin styles. Just as a test, I modified /usr/local/share/TeXmacs/plugin/python/packages/session/python.ts adding letters A and B to macro python-output like this:

<assign|python-output|<\macro|body>
  <\with|mode|text|language|verbatim|font-family|tt>
    <\generic-output>
      A<arg|body>B
    </generic-output>
  </with>
</macro>>

expecting these letters to show up in python output, but nothing happened. Thinking that this might have something to do with style caching, I ran texmacs --delete-style-cache, but nothing changed. What am I missing?

Never mind, I had file named python.ts under my .TeXmacs directory, and TeXmacs was picking that file over the one from the plugin. It never occurred to me that TeXmacs would search for this file along “the packages PATH” instead of looking directly into that specific plugin’s packages directory.

2 Likes