* bug#27422: 25.2; Desktop mode fails to restore window registers
@ 2017-06-18 18:09 Pierre Neidhardt
2017-06-19 8:04 ` martin rudalics
0 siblings, 1 reply; 2+ messages in thread
From: Pierre Neidhardt @ 2017-06-18 18:09 UTC (permalink / raw)
To: 27422
Steps to reproduce:
$ emacs -Q -f desktop-save-mode
C-x r w a
C-x C-c
y <RET>
$ emacs -Q -f desktop-read
C-x r j
The last command returns the error:
> user-error: Register doesn’t contain a buffer position or configuration
M-x list-registers
shows in buffer:
> Register a contains a rectangle starting with Unprintable entity
This is mentioned in #17090.
Also Stefan Monnier wrote in
https://groups.google.com/forum/#!topic/gnu.emacs.help/64aO_O43530:
> This said, I have the impression that this is already done (at least partly)
> in newer Emacsen.
Don't know what it's worth.
In GNU Emacs 25.2.1 (x86_64-unknown-linux-gnu, GTK+ Version 3.22.10)
of 2017-04-22 built on juergen
Windowing system distributor 'The X.Org Foundation', version 11.0.11903000
System Description: Arch Linux
Configured using:
'configure --prefix=/usr --sysconfdir=/etc --libexecdir=/usr/lib
--localstatedir=/var --with-x-toolkit=gtk3 --with-xft --with-modules
'CFLAGS=-march=x86-64 -mtune=generic -O2 -pipe
-fstack-protector-strong' CPPFLAGS=-D_FORTIFY_SOURCE=2
LDFLAGS=-Wl,-O1,--sort-common,--as-needed,-z,relro'
Configured features:
XPM JPEG TIFF GIF PNG RSVG IMAGEMAGICK SOUND GPM DBUS GCONF GSETTINGS
NOTIFY ACL GNUTLS LIBXML2 FREETYPE M17N_FLT LIBOTF XFT ZLIB
TOOLKIT_SCROLL_BARS GTK3 X11 MODULES
Important settings:
value of $LANG: en_US.UTF-8
locale-coding-system: utf-8-unix
^ permalink raw reply [flat|nested] 2+ messages in thread
* bug#27422: 25.2; Desktop mode fails to restore window registers
2017-06-18 18:09 bug#27422: 25.2; Desktop mode fails to restore window registers Pierre Neidhardt
@ 2017-06-19 8:04 ` martin rudalics
0 siblings, 0 replies; 2+ messages in thread
From: martin rudalics @ 2017-06-19 8:04 UTC (permalink / raw)
To: Pierre Neidhardt, 27422
>> This said, I have the impression that this is already done (at least partly)
>> in newer Emacsen.
>
> Don't know what it's worth.
I think he means that C-x r f should work as intended. To fix C-x r w
accordingly you would have to write a new function, say
‘window-state-to-register’, based on ‘window-state-get’ and, when you
later jump to that register, use ‘window-state-put’ to put the state
saved in that register into the selected window. Binding C-x r w to
that new function should then produce a register you can restore in a
later session. Could you try implementing and testing that?
martin
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2017-06-19 8:04 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-06-18 18:09 bug#27422: 25.2; Desktop mode fails to restore window registers Pierre Neidhardt
2017-06-19 8:04 ` martin rudalics
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.