From: Dmitri Paduchikh <dpaduchikh@gmail.com>
To: Noam Postavsky <npostavs@gmail.com>
Cc: Matthew Newton <matt@knosis.org>, 24576@debbugs.gnu.org
Subject: bug#24576: 25.1; desktop.el does not fully preserve registers with macros
Date: Wed, 29 May 2019 22:41:58 +0500 [thread overview]
Message-ID: <87imttximx.fsf@gmail.com> (raw)
In-Reply-To: <87a7fdal9r.fsf@gmail.com> (Noam Postavsky's message of "Wed, 22 May 2019 23:43:12 -0400")
Noam Postavsky <npostavs@gmail.com> wrote:
>>> The "unprintable entity" comes from desktop--v2s, looks like it doesn't
>>> handle compiled function values, so that's why :print-func and
>>> :insert-func get messed up like that.
NP> I note that the functions in question come from this code in kmacro.el:
NP> (defun kmacro-to-register (r)
NP> ... (registerv-make
NP> last-kbd-macro
NP> :jump-func 'kmacro-execute-from-register
NP> :print-func (lambda (k)
NP> (princ (format "a keyboard macro:\n %s"
NP> (format-kbd-macro k))))
NP> :insert-func (lambda (k)
NP> (insert (format-kbd-macro k))))
This must be easy to fix. Just defun these anonymous functions and use their
names in place of lambdas. Or any newer approach, of course.
All the best.
Dmitri Paduchikh
next prev parent reply other threads:[~2019-05-29 17:41 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
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 [this message]
2019-06-12 17:43 ` npostavs
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87imttximx.fsf@gmail.com \
--to=dpaduchikh@gmail.com \
--cc=24576@debbugs.gnu.org \
--cc=matt@knosis.org \
--cc=npostavs@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.