all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* bug#24576: 25.1; desktop.el does not fully preserve registers with macros
@ 2016-10-01  4:48 Dmitri Paduchikh
  2019-05-10 20:53 ` Matthew Newton
  0 siblings, 1 reply; 7+ messages in thread
From: Dmitri Paduchikh @ 2016-10-01  4:48 UTC (permalink / raw)
  To: 24576

Hello,

Register ?a contains keyboard macro. After loading desktop file:

(registerv-insert-func (get-register ?a))
=> "Unprintable entity"

(registerv-print-func (get-register ?a))
=> "Unprintable entity"

This makes M-x list-registers and register insertion to fail. Using
interpreted version of kmacro-to-register fixes this problem.

(registerv-insert-func (get-register ?b))
=> (lambda (k) (insert (format-kbd-macro k)))

(registerv-print-func (get-register ?b))
=> (lambda (k) (princ (format "a keyboard macro:
   %s" (format-kbd-macro k))))

In GNU Emacs 25.1.1 (x86_64-unknown-linux-gnu, GTK+ Version 3.20.9)
 of 2016-09-18 built on juergen

Regards,
Dmitri Paduchikh





^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2019-06-12 17:43 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-10-01  4:48 bug#24576: 25.1; desktop.el does not fully preserve registers with macros Dmitri Paduchikh
2019-05-10 20:53 ` Matthew Newton
2019-05-11 12:15   ` Noam Postavsky
2019-05-22 20:58     ` Matthew Newton
2019-05-23  3:43       ` Noam Postavsky
2019-05-29 17:41         ` Dmitri Paduchikh
2019-06-12 17:43         ` npostavs

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.