Skip to main content
added 14 characters in body; edited title
Source Link
vfclists
  • 1.5k
  • 1
  • 15
  • 30

How can the hex representation of Is it possible to obtain an Emacs Lisp object be cast to a type of the same object from its printed representation?

For instance the expression (mapcar (lambda (frame) (cons frame (list (window-list frame)))) (frame-list)) produces the output:

((#<frame *scratch* 0x55e9a0b70408> (#<window 280 on *scratch*>)) (#<frame *scratch* 0x55e99b016538> (#<window 248 on *scratch*>)) (#<frame *scratch* 0x55e99db04910> (#<window 215 on *scratch*>)) (#<frame *scratch* 0x55e99abaa0d0> (#<window 30 on *scratch*>)) (#<frame *scratch* 0x55e99a2677f0> (#<window 27 on *scratch*>))) 

with each

which is a list of frames and the windows in them.

In EXWM the function exwm-workspace-switch (frame-or-index &optional force) switches to a frame or a particular workspace.

How can I convert the hex value such as 0x55e9a0b70408 to a form which could be used in the exwm-workspace-switch function?

How can the hex representation of an Emacs Lisp object be cast to a type of the same object?

For instance the expression (mapcar (lambda (frame) (cons frame (list (window-list frame)))) (frame-list)) produces the output:

((#<frame *scratch* 0x55e9a0b70408> (#<window 280 on *scratch*>)) (#<frame *scratch* 0x55e99b016538> (#<window 248 on *scratch*>)) (#<frame *scratch* 0x55e99db04910> (#<window 215 on *scratch*>)) (#<frame *scratch* 0x55e99abaa0d0> (#<window 30 on *scratch*>)) (#<frame *scratch* 0x55e99a2677f0> (#<window 27 on *scratch*>))) 

which is a list of frames and the windows in them.

In EXWM the function exwm-workspace-switch (frame-or-index &optional force) switches to a frame or a particular workspace.

How can I convert the hex value such as 0x55e9a0b70408 to a form which could be used in the exwm-workspace-switch function?

Is it possible to obtain an Emacs Lisp object from its printed representation?

For instance the expression (mapcar (lambda (frame) (cons frame (list (window-list frame)))) (frame-list)) produces the output:

((#<frame *scratch* 0x55e9a0b70408> (#<window 280 on *scratch*>)) (#<frame *scratch* 0x55e99b016538> (#<window 248 on *scratch*>)) (#<frame *scratch* 0x55e99db04910> (#<window 215 on *scratch*>)) (#<frame *scratch* 0x55e99abaa0d0> (#<window 30 on *scratch*>)) (#<frame *scratch* 0x55e99a2677f0> (#<window 27 on *scratch*>))) 

with each

which is a list of frames and the windows in them.

In EXWM the function exwm-workspace-switch (frame-or-index &optional force) switches to a frame or a particular workspace.

How can I convert the hex value such as 0x55e9a0b70408 to a form which could be used in the exwm-workspace-switch function?

edited tags
Link
Drew
  • 80.9k
  • 10
  • 125
  • 265
Source Link
vfclists
  • 1.5k
  • 1
  • 15
  • 30

How can the hex representation of an Emacs Lisp object be cast to a type of the same object?

For instance the expression (mapcar (lambda (frame) (cons frame (list (window-list frame)))) (frame-list)) produces the output:

((#<frame *scratch* 0x55e9a0b70408> (#<window 280 on *scratch*>)) (#<frame *scratch* 0x55e99b016538> (#<window 248 on *scratch*>)) (#<frame *scratch* 0x55e99db04910> (#<window 215 on *scratch*>)) (#<frame *scratch* 0x55e99abaa0d0> (#<window 30 on *scratch*>)) (#<frame *scratch* 0x55e99a2677f0> (#<window 27 on *scratch*>))) 

which is a list of frames and the windows in them.

In EXWM the function exwm-workspace-switch (frame-or-index &optional force) switches to a frame or a particular workspace.

How can I convert the hex value such as 0x55e9a0b70408 to a form which could be used in the exwm-workspace-switch function?