I am using a variable storing a cons cell
(defvar typex-frame-position (cons 1270 1223))
Followed by
(setq initial-frame-alist
'((left . (car typex-frame-position))
(top . (cdr typex-frame-position))
(width . 73) (height . 21)))
But, the only way I get the frame at the correct position is to hardwire the numbers like this.
(setq initial-frame-alist
'((left . 1270)
(top . 1223)
(width . 73) (height . 21)))
How can I use the values from typex-frame-position?
'suppresses evaluation, allowing you to write a literal list. but(car typex-frame-position)is an expression that you want to evaluate. So you need to useinstead:((left ,(car …)) …)). – db48x Sep 18 '22 at 00:47initial-frame-alistsuppresses any evaluation. Meaning that(car typex-frame-position)is not evaluated, and consequently the value of the expression does not get associated withleft. Using,allows(car typex-frame-position)to be evaluated to the value1270. Right? – Dilna Sep 18 '22 at 00:56,inside of a backquoted expression. Using it inside an ordinary quoted expression doesn’t work. – db48x Sep 18 '22 at 00:57(car typex-frame-position), I had a variable likefxpos? – Dilna Sep 18 '22 at 01:07(left . ,fxpos)would evaluate to the value1270. – Dilna Sep 18 '22 at 01:19