Fwd: quoting [was : Re: last question … (read only if you want to see the working code)]

vincent douce <[email protected]> Tue, 24 Dec 2024 10:06:34 +0100
Newsgroups gmane.editors.texmacs.user
Message-ID <[email protected]>
sorry i had clicked on « repond » instead of « respond to all"

> Début du message réexpédié :
> 
> De: vincent douce <[email protected]>
> Objet: quoting [was : Re: [texmacs-users] last question… (read only if you want to see the working code)]
> Date: 24 décembre 2024 à 09:46:28 UTC+1
> À: Giovanni Piredda <[email protected]>
> 
> Giovanni hello
> before reading your message i had tried this
> 
> i have put a quasiquote instead of the general quote
> then i have unquoted the variable and it works
> so your solution was the same, hopefully i had not seen your mail before i try this
> 
> now i understand and now it works so thanks for your help 
> 
> but it remains a theoric point that i dont understand
> 
> so : the quote symbol ‘( will quote everything inside the (…)
> ok
> what i had not guessed is that it will quote also what is written in all level of inside parenthesis
> (define x 4)
> ‘(+ (- x 2) 3)
> the x is also quoted
> i had not guessed this but now for me is is clear, it is logical
> 
> but in this case, why is the instruction « point » evaleatued  ?
> 
> i explain :
> my orignal code with the simple quote (before i work on it) was something like (insert ’(…(thing …….(thing …(line.(point ‘’3’’ ‘’4''.)))….))
> 
> -> if the quote at the beginning quotes eveyrthing in all levels of inside parenthesis, then how it is that « line » and « point » are evaluated (and they are, since the line was drawed with this code)
> 
> Vincent
> 
>> Le 24 déc. 2024 à 00:56, Giovanni Piredda <[email protected] <mailto:[email protected]>> a écrit :
>> 
>> After having defined x1:
>> 
>> (kbd-map ("p tab" (insert `(point ,x1 "0"))))
>> 
>> On 23/12/24 22:48, Giovanni Piredda wrote:
>>> I had not noticed the attachment, please accept my apology.
>>> 
>>> On the other hand, the text in the attachment is clear, and you are not following what it says.
>>> 
>>> One more hint:
>>> 
>>> quoting avec ' qui dit :  n'évalue rien à l'intérieur des ()
>>> 
>>> quasiquoting avec ` qui dit  ne pas exécuter sauf le unquoting ,
>>> 
>>> 
>>> 
>>> On 23/12/24 22:44, Giovanni Piredda wrote:
>>>> 
>>>> On 23/12/24 21:22, vincent douce wrote:
>>>>> 
>>>>> so i can’t see the problem
>>>>> 
>>>>> 
>>>> 
>>>> Because this is the wrong approach in my opinion.
>>>> 
>>>> I _suggest_ that you read this first: https://www.cs.utexas.edu/ftp/garbage/cs345/schintro-v13/schintro_129.html <https://www.cs.utexas.edu/ftp/garbage/cs345/schintro-v13/schintro_129.html>
>>>> 
>>>> But if you don't want, just let me know and I will write the answer to your question.
>>>> 
>>>> Here is a hint:
>>>> 
>>>>> according to « quotes » i think that (point xx "-1") is correct : point is a function, xx a variable, both have to be evaluated
>>>> 
>>>> and are they, if they are inside an expression that is quoted? Your quoted expression starts with
>>>> 
>>>> '(with
>>>> 
>>>> and *contains*
>>>> 
>>>> (point xx "-1")
>>>> 
>>>> !!!!
>>>> 
>>>> 
>