On Sat, Aug 05 2023 at 10:43 +02, Arash Esbati wrote: > Janusz S. Bień <jsb...@mimuw.edu.pl> writes: > >> I mean upgrage to Debian 12 (bookworm) > > Ah, Ok. > >> Yes. I've installed it from ELPA and was not aware it's not upgraded >> automatically. > > M?ELPA packages are controlled by Emacs, 'M-x list-packages RET' should > give a clue.
The clue could be more explicit... > >> I don't know how to load AUCTeX with "emacs -Q". > > The procedure is: > > • emacs -Q > • M-x package-initialize RET > > which activates all your packages. Or > > • emacs -Q > • M-: (progn (package-initialize t) (package-activate 'auctex)) RET > > to activate AUCTeX only. Thanks! > >> Anyway I'm unable now to reproduce the problem. > > Problem solved ;-) I hope so :-) > >> BTW, looks like when creating labels AUCTeX skips non-ASCII characters, >> so you get something like >> >> \subsection{Żółć} >> \label{sec:o} >> >> I can live with it, but I'm curious whether you are aware of it. > > Automatic insertion of labels is done by RefTeX and this particular > behavior is controlled by the variable `reftex-label-illegal-re': > > ,----[ C-h v reftex-label-illegal-re RET ] > | reftex-label-illegal-re is a variable defined in ‘reftex-vars.el’. > | > | Its value is "[^-a-zA-Z0-9_+=:;,.]" > | > | Regexp matching characters not valid in labels. > | > | You can customize this variable. > | > `---- > > which means ignore non-ASCII chars. You can try to set it to something > like this and see if it works: > > (setq reftex-label-illegal-re "[^-[:alnum:]_+=:;,.]") Yes, it works! Thank you very much! Best regards -- , Janusz S. Bien emeryt (emeritus) https://sites.google.com/view/jsbien