Deutsch   English   Français   Italiano  
<6360251d$0$31525$426a74cc@news.free.fr>

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

Path: ...!news.mixmin.net!proxad.net!feeder1-2.proxad.net!cleanfeed1-a.proxad.net!nnrp1-1.free.fr!not-for-mail
Date: Mon, 31 Oct 2022 20:42:25 +0100
From: NoSpam <nospam@valrik.invalid>
Newsgroups: fr.comp.lang.lisp
Subject: (yas)sippets =?ISO-8859-1?Q?imbriqu=E9s.?=
User-Agent: Wanderlust/2.15.9 (Almost Unreal) SEMI-EPG/1.14.7 (Harue)
 FLIM-LB/1.14.9 (=?ISO-8859-4?Q?Goj=F2?=) APEL-LB/10.8 EasyPG/1.0.0
 Emacs/27.1 (x86_64-pc-linux-gnu) MULE/6.0 (HANACHIRUSATO)
MIME-Version: 1.0 (generated by SEMI-EPG 1.14.7 - "Harue")
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
Lines: 69
Message-ID: <6360251d$0$31525$426a74cc@news.free.fr>
Organization: Guest of ProXad - France
NNTP-Posting-Date: 31 Oct 2022 20:42:21 CET
NNTP-Posting-Host: 91.172.153.64
X-Trace: 1667245341 news-2.free.fr 31525 91.172.153.64:53103
X-Complaints-To: abuse@proxad.net
Bytes: 2869


Bonjour les Lispiens et Lispiennes.

Voila, j'essaie depuis maintenant un temps consid=E9rable d'ex=E9cuter un (=
une ?) snippet =E0 partir d'un autre.

Voici le code des deux :

# -*- mode: snippet -*-
# name: fa00-html-entete-lien_stylesheet
# key: fa00_lss=20
# keybinding: <f7> lss
# expand-env:=20
# contributor:=20
# --
<link rel=3D"${10:stylesheet}" href=3D"${20:styles.css}" type=3D"${30:text/=
css}" media=3D"${40:$$(yas/choose-value '("all" "screen"))}" />


et pour l'autre :

# -*- mode: snippet -*-
# name: fa00-html-general-trame_page
# key: fa00_tdp
# keybinding: <f7> tdp
# expand-env:=20
# contributor:=20
# --
<!DOCTYPE html>
<html lang=3D"fr">
  <head>
    <meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3Dutf-8=
" >
    <meta name=3D"description"
    	  CONTENT=3D"${10:La description}"
    	  >
    <meta name=3D"keywords"
    	  CONTENT=3D"${20:Mots, cl=E9, s=E9par=E9s, par, une, virgule}"
    	  >
    <title>${30:Le titre de la page}</title>
    fa00_lss${$$(yas-expand-from-trigger-key)}
    <link rel=3D"stylesheet" type=3D"text/css" media=3D"all" href=3D"${40:s=
tyle.css}">
  </head>
  <body>
    <a href=3D"${50:../index.html}">le_lien</a>
  </body>
</html>


j'arrive =E0 afficher le lien mais ce n'est pas interactif et j'ai un messa=
ge d'erreur :
yas--move-to-field: Wrong type argument: markerp, 319

=AB t =BB s'affiche devant la balise, laissant entendre que cela provient l=
a fonction =AB yas-expand-from-trigger-key =BB.
Cela donne =E7a :

t<link rel=3D"stylesheet" href=3D"styles.css" type=3D"text/css" media=3D"" =
/>

Je suis =E0 peu pr=E8s certain de ne pas utiliser la bonne fonction. J'en a=
i d'ailleurs essay=E9 d'autres, sans r=E9sultat.

Je tourne en rond depuis bien trop longtemps, mais j'avoue ne pas avoir lu =
la documentation dans son enti=E8ret=E9.

Une id=E9e, une piste ?