Subject: mailing-list for TeXmacs Users
List archive
[texmacs-users] Fwd: quoting [was : Re: last question… (read only if you want to see the working code)]
- From: vincent douce <address@concealed>
- To: address@concealed
- Subject: [texmacs-users] Fwd: quoting [was : Re: last question… (read only if you want to see the working code)]
- Date: Tue, 24 Dec 2024 10:06:34 +0100
sorry i had clicked on « repond » instead of « respond to all"
Début du message réexpédié :De: vincent douce <address@concealed>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 <address@concealed>Giovanni hellobefore reading your message i had tried thisi have put a quasiquote instead of the general quotethen i have unquoted the variable and it worksso your solution was the same, hopefully i had not seen your mail before i try thisnow i understand and now it works so thanks for your helpbut it remains a theoric point that i dont understandso : the quote symbol ‘( will quote everything inside the (…)okwhat 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 quotedi had not guessed this but now for me is is clear, it is logicalbut 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)VincentLe 24 déc. 2024 à 00:56, Giovanni Piredda <address@concealed> 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
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")
!!!!
-
[texmacs-users] Fwd: quoting [was : Re: last question… (read only if you want to see the working code)],
vincent douce, 12/24/2024
- Re: [texmacs-users] quoting [was : Re: last question… (read only if you want to see the working code)], vincent douce, 12/24/2024
Archive powered by MHonArc 2.6.24.