GNU bug report logs - #24576
25.1; desktop.el does not fully preserve registers with macros

Previous Next

Package: emacs;

Reported by: Dmitri Paduchikh <dpaduchikh <at> gmail.com>

Date: Sat, 1 Oct 2016 04:50:01 UTC

Severity: normal

Tags: fixed

Found in version 25.1

Fixed in version 27.1

Done: npostavs <at> gmail.com

Bug is archived. No further changes may be made.

Full log


Message #20 received at 24576 <at> debbugs.gnu.org (full text, mbox):

From: Dmitri Paduchikh <dpaduchikh <at> gmail.com>
To: Noam Postavsky <npostavs <at> gmail.com>
Cc: Matthew Newton <matt <at> knosis.org>, 24576 <at> debbugs.gnu.org
Subject: Re: bug#24576: 25.1;
 desktop.el does not fully preserve registers with macros
Date: Wed, 29 May 2019 22:41:58 +0500
Noam Postavsky <npostavs <at> 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




This bug report was last modified 6 years and 60 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.