Path: eternal-september.org!reader01.eternal-september.org!.POSTED!not-for-mail From: =?utf-8?Q?Denis_Bitouz=C3=A9?= Newsgroups: fr.comp.applications.emacs Subject: Re: `add-to-list` : factorisation ? Date: Wed, 20 May 2020 11:50:34 +0200 Organization: A noiseless patient Spider Lines: 45 Message-ID: <87k117szo5.fsf@example.com> References: <87k11fk12p.fsf@example.com> <878shvc950.fsf@charlotte.rdhp> <87mu6aijsu.fsf@example.com> <87pnb6beql.fsf@charlotte.rdhp> <87h7wdxm36.fsf@example.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: reader02.eternal-september.org; posting-host="f04c6ae9a1da26d71c71cfe5487f7d24"; logging-data="716"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18E6j4IUzfQBcNiDoQHguEIBRIAHFBjCzU=" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (gnu/linux) Cancel-Lock: sha1:KLzTCxSom14gS639RRlZ7YamrGI= sha1:Cm1y+LINn1v9r3HxL7HQfT7tp/8= X-Archive: encrypt X-Url: http://gte.univ-littoral.fr/members/dbitouze/pub/latex Le 18/05/20 =C3=A0 18h08, Denis Bitouz=C3=A9 a =C3=A9crit : > Le 14/05/20 =C3=A0 19h36, Jean-Jacques R=C3=A9torr=C3=A9 a =C3=A9crit : > >> ;;;;;;;;;;;;;;;;;;;;;;;;;;;; >> >> (setq LaTeX-verbatim-environments-local '("truc" >> "machin" >> "bidule" >> )) >> >> (dolist (env LaTeX-verbatim-environments-local) >> (add-to-list 'LaTeX-indent-environment-list (list env #'current-in= dentation)))) >>=20=20=20=20=20=20=20 >> ;;;;;;;;;;;;;;;;;;;;;;;;;;; >> >> >> Cette fois j'ai test=C3=A9 (je ne l'avais pas fait honte =C3=A0 moi ) ca= r =C3=A7a >> m'avais paru trop facile, maintenant je comprends mieux ta demande. > > Bon, finalement, =C3=A7a marchait dans mon instance Emacs d=C3=A9j=C3=A0 = ouverte, mais > le red=C3=A9marrage plante. En fait, je pense que Jean-Jacques avait, comme d'habitude, raison mais qu'il a juste oubli=C3=A9 une ligne dans son code (`(with-eval-after-load "latex"`), ce qui expliquerait la parenth=C3=A8se que je croyais superf=C3=A9tatoire. Voici le code fonctionnel (r=C3=A9ponse obtenue sur auctex@gnu.org) : --8<---------------cut here---------------start------------->8--- (setq LaTeX-verbatim-environments-local '("truc" "machin" "bidule" )) (with-eval-after-load "latex" (dolist (env LaTeX-verbatim-environments-local) (add-to-list 'LaTeX-indent-environment-list (list env #'current-indentati= on)))) --8<---------------cut here---------------end--------------->8--- --=20 Denis