Alessandro Bertulli <[email protected]> writes:

> I think I got it: the list (just?) needs to be sorted. So if I set it to
> this:
> [...]
>
> it works!

👍

>> Since promotion and demotion both rely on this variable, I think it
>> shouldn't be changed by an AUCTeX style from lisp with `add-to-list'.
>
> I'm sorry, what do you mean here? That I should modify it with an AUCTeX
> style, or that the style should not use `add-to-list'?

I meant this part of the code from songs.el is not good:

   ;; Tell RefTeX:
   (when (boundp 'reftex-section-levels)
     (dolist (elt '(("songchapter" . 0) ("songsection" . 1)))
       (add-to-list 'reftex-section-levels elt t)))

I think we should leave this change to the users and an AUCTeX style
doesn't touch this variable at all.

Best, Arash

Reply via email to