0

I'd like to make a list of parameters of each frame such as the top coordinate, left coordinate, and name to achieve what I asked in my previous question. I'm trying to follow the advice I got there and wrote a snippet to print the top coordinates of each frame, but it doesn't work. Could anyone tell me which part is wrong?

(message "%s" (mapcar (cdr (assq 'top (frame-parameters)))) (frame-list))

It returns

Invalid function:(mapcar (cdr (assq 'top (frame-parameters))))

1 Answer 1

0

It turned out that I needed lambda. This worked.

(message "%s" (mapcar  (lambda (x) (cdr (assq 'top (frame-parameters x) )))(frame-list) )) 

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.