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))))
stacko
  • 1,597
  • 1
  • 11
  • 19

1 Answers1

0

It turned out that I needed lambda. This worked.

(message "%s" (mapcar  (lambda (x) (cdr (assq 'top (frame-parameters x) )))(frame-list) )) 
stacko
  • 1,597
  • 1
  • 11
  • 19