Deutsch   English   Fran├žais   Italiano  
<878shvc950.fsf@charlotte.rdhp>

View for Bookmarking (what is this?)
Look up another Usenet article

Path: ...!news.gegeweb.eu!gegeweb.org!usenet-fr.net!feeder1-2.proxad.net!proxad.net!feeder1-1.proxad.net!cleanfeed2-b.proxad.net!nnrp1-2.free.fr!not-for-mail
From: jj.retorre@gmail.com (Jean-Jacques =?utf-8?B?UsOpdG9ycsOp?=)
Newsgroups: fr.comp.applications.emacs
Subject: Re: `add-to-list` : factorisation ?
References: <87k11fk12p.fsf@example.com>
Date: Thu, 14 May 2020 08:39:55 +0200
Message-ID: <878shvc950.fsf@charlotte.rdhp>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux)
Cancel-Lock: sha1:NE3d4tXNkyWIQRaDJOJGO+jjMOg=
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
Lines: 55
Organization: Guest of ProXad - France
NNTP-Posting-Date: 14 May 2020 08:39:55 CEST
NNTP-Posting-Host: 82.245.47.163
X-Trace: 1589438395 news-3.free.fr 9914 82.245.47.163:55572
X-Complaints-To: abuse@proxad.net

mer. 13 mai 2020,  Denis Bitouz=C3=A9 <dbitouze@wanadoo.fr> disait :

> Bonsoir,
>
> dans mon `.emacs`, j'ai quelque chose qui ressemble =C3=A0 ceci :
>
> (setq LaTeX-verbatim-environments-local '("truc"
>                                           "machin"
>                                           "bidule"
>                                           ))
>
> (with-eval-after-load "latex"
>   (add-to-list 'LaTeX-indent-environment-list '("truc" current-indentatio=
n))
>   (add-to-list 'LaTeX-indent-environment-list '("machin" current-indentat=
ion))
>   (add-to-list 'LaTeX-indent-environment-list '("bidule" current-indentat=
ion)))
>
> mais avec une liste beaucoup plus longue que seulement :
>
>   =E2=94=8C=E2=94=80=E2=94=80=E2=94=80=E2=94=80
>   =E2=94=82 "truc"
>   =E2=94=82 "machin"
>   =E2=94=82 "bidule"
>   =E2=94=94=E2=94=80=E2=94=80=E2=94=80=E2=94=80
>
> Concernant `add-to-list`, y aurait-il moyen de factoriser la chose, de
> sorte =C3=A0 ne r=C3=A9p=C3=A9ter :=20
>
> 1. ni `'LaTeX-indent-environment-list '` ;
> 2. ni ` current-indentation` ?
>
> L'id=C3=A9al serait =C3=A9videmment de ne pas avoir maintenir =C3=A0 deux=
 endroits
> diff=C3=A9rents la liste :
>
>   =E2=94=8C=E2=94=80=E2=94=80=E2=94=80=E2=94=80
>   =E2=94=82 "truc"
>   =E2=94=82 "machin"
>   =E2=94=82 "bidule"
>   =E2=94=94=E2=94=80=E2=94=80=E2=94=80=E2=94=80
>
> Merci d'avance !

J'aurais propos=C3=A9

(dolist (env LaTeX-verbatim-environments-local (add-to-list
'LaTeX-indent-environment-list (list env current-indentation))))

=C3=87a me para=C3=AEt vraiment trop simple...


--
JJR.