GNU bug report logs - #27422
25.2; Desktop mode fails to restore window registers

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: emacs; Severity: minor; Reported by: Pierre Neidhardt <ambrevar@HIDDEN>; merged with #17090; dated Sun, 18 Jun 2017 18:10:02 UTC; Maintainer for emacs is bug-gnu-emacs@HIDDEN.
Removed tag(s) moreinfo. Request was from Lars Ingebrigtsen <larsi@HIDDEN> to control <at> debbugs.gnu.org. Full text available.
Forcibly Merged 17090 27422. Request was from Lars Ingebrigtsen <larsi@HIDDEN> to control <at> debbugs.gnu.org. Full text available.

Message received at 27422 <at> debbugs.gnu.org:


Received: (at 27422) by debbugs.gnu.org; 19 Jun 2017 08:05:04 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Jun 19 04:05:04 2017
Received: from localhost ([127.0.0.1]:55588 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1dMrgG-0007qC-5P
	for submit <at> debbugs.gnu.org; Mon, 19 Jun 2017 04:05:04 -0400
Received: from mout.gmx.net ([212.227.17.20]:61385)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <rudalics@HIDDEN>) id 1dMrgE-0007pd-CX
 for 27422 <at> debbugs.gnu.org; Mon, 19 Jun 2017 04:05:03 -0400
Received: from [192.168.1.100] ([46.125.250.86]) by mail.gmx.com (mrgmx101
 [212.227.17.168]) with ESMTPSA (Nemesis) id 0Ldttv-1e3vzI2B6J-00j02I; Mon, 19
 Jun 2017 10:04:55 +0200
Message-ID: <594785A1.8000805@HIDDEN>
Date: Mon, 19 Jun 2017 10:04:49 +0200
From: martin rudalics <rudalics@HIDDEN>
MIME-Version: 1.0
To: Pierre Neidhardt <ambrevar@HIDDEN>, 27422 <at> debbugs.gnu.org
Subject: Re: bug#27422: 25.2; Desktop mode fails to restore window registers
References: <20170618180915.GD2617@HIDDEN>
In-Reply-To: <20170618180915.GD2617@HIDDEN>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: quoted-printable
X-Provags-ID: V03:K0:lERNnbb7ocSQxbg3hxm00CjrgfEZl5CGsGfcWCJZiqhJEwIRopQ
 7WaGL0mZJOa7JuiTosz0cPxuylEJ/mLDZpb6/cLFsZed27Uhw4JxiGBW6BGE65hjq7Iz9fC
 46ZDS5buWvQInrcuIZg1kKre+d/Wv5/KgaJf4IM4azJP72ViO5OlF/lMMFqu5nOO8OLjmEM
 kNXaxLyrK9NQI2wgMDVlg==
X-UI-Out-Filterresults: notjunk:1;V01:K0:2+FBrQ+oFfE=:sfgntc5UhHTWVKcfOuaLmK
 8QbifE+hoUzMQBJAFa3bJISFR3qQtiTbkHMmJO2V2ze9Ns/WiSQBdTW/BU67843gQVlarFw26
 QZRF+CfH79VEV52WLUz9HA2hoChSxgUzDz/oD1iTY5p/QIpgUAwT2GqiRXz4wspJ/EoCQjJHY
 hkhfwoyOC135quog1V6V/1/8lc50CuYrkBEl1IqYHCIYsKlUeW3qJNp8uYxU+eLPajGmbja61
 +MYzGxwxsl8rRun4+ThQo+oLJ0+N9mvDFP5EtR2B5e4hTbjfqhjEKv94u+H6HPMAZYmzOI5dw
 CyqLx3Whifw1F3vFJCX8yswxzBQ/UXTWJHwDYBQa4SxbWVnGA8GdpPYIWtYjR9s2FnmTOsPq5
 1XKvXIXzmSIjN8o3ZT3xVKXrxzDihA6R7TitLdfe403IRWDm8h90UfLbKd9144lEL/mlh+B1o
 a+Z0dGBub03F+6YmnOosnY4f99Qfcd8uGzwp1AW0C/G+HS0Ei8TCYJujUmgdvHfQNgF9cYKX7
 vSjdfDohtTKrsdpNKzpFX5oMR58BW0bX8hdDdDTubc+1zBP0NjE0c+L6RW3Gx/34GsczjcpdJ
 8u7BTFG16QkijND4f4Tg36KjLYlKfbAdWqeNy9FVRL+GPOMkrI30wFMu7fIQmTz2F8gzoISQZ
 hww9GJenRvpxE7Uog/2fzE3GDI84J9xbRIkcjwGSKwmL7uBleYmmVmUu2UpJY4LSXH47yJX4R
 PR2AG2xszrv0sgHTgBfCySm+EGs73ptMU3Id9ElX31oKdojpF9TH5cMkS9Ifa33oYPVBFViF2
 WrOxlf6OslmsC8SWEiL7Ab2Kod7Ug==
X-Spam-Score: -0.7 (/)
X-Debbugs-Envelope-To: 27422
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -0.7 (/)

 >> 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
=E2=80=98window-state-to-register=E2=80=99, based on =E2=80=98window-stat=
e-get=E2=80=99 and, when you
later jump to that register, use =E2=80=98window-state-put=E2=80=99 to pu=
t 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





Information forwarded to bug-gnu-emacs@HIDDEN:
bug#27422; Package emacs. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 18 Jun 2017 18:09:31 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sun Jun 18 14:09:31 2017
Received: from localhost ([127.0.0.1]:55347 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1dMedf-0002qE-D3
	for submit <at> debbugs.gnu.org; Sun, 18 Jun 2017 14:09:31 -0400
Received: from eggs.gnu.org ([208.118.235.92]:35029)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <ambrevar@HIDDEN>) id 1dMedd-0002q1-Vn
 for submit <at> debbugs.gnu.org; Sun, 18 Jun 2017 14:09:30 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <ambrevar@HIDDEN>) id 1dMedX-0001mU-Pk
 for submit <at> debbugs.gnu.org; Sun, 18 Jun 2017 14:09:24 -0400
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org
X-Spam-Level: 
X-Spam-Status: No, score=-0.5 required=5.0 tests=BAYES_05,FREEMAIL_FROM,
 T_DKIM_INVALID autolearn=disabled version=3.3.2
Received: from lists.gnu.org ([2001:4830:134:3::11]:59144)
 by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32)
 (Exim 4.71) (envelope-from <ambrevar@HIDDEN>) id 1dMedX-0001mJ-MU
 for submit <at> debbugs.gnu.org; Sun, 18 Jun 2017 14:09:23 -0400
Received: from eggs.gnu.org ([2001:4830:134:3::10]:54227)
 by lists.gnu.org with esmtp (Exim 4.71)
 (envelope-from <ambrevar@HIDDEN>) id 1dMedW-00028o-GR
 for bug-gnu-emacs@HIDDEN; Sun, 18 Jun 2017 14:09:23 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <ambrevar@HIDDEN>) id 1dMedS-0001jY-FM
 for bug-gnu-emacs@HIDDEN; Sun, 18 Jun 2017 14:09:22 -0400
Received: from mail-wm0-x243.google.com ([2a00:1450:400c:c09::243]:36720)
 by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16)
 (Exim 4.71) (envelope-from <ambrevar@HIDDEN>) id 1dMedS-0001is-82
 for bug-gnu-emacs@HIDDEN; Sun, 18 Jun 2017 14:09:18 -0400
Received: by mail-wm0-x243.google.com with SMTP id d17so13276415wme.3
 for <bug-gnu-emacs@HIDDEN>; Sun, 18 Jun 2017 11:09:18 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;
 h=date:from:to:subject:message-id:mime-version:content-disposition
 :content-transfer-encoding:user-agent;
 bh=pDsUfcz+bFwIKn0m1W2WTHsaIVcdIdG3b5D4w0jpVPw=;
 b=UF580zcJKxHyG/jMZBRljqww/xvc0jkNe4ijocnP0mAvr4/eNxmyfLwHhrJt3tGnQR
 15rLcO4epQmskA8QIF2rQF4ys514EYs9ls+Sqj9cr7wEKhzpU4VLXjCTHn1QXUbpoZWB
 JviQUBQKNgNmrC4sY6+k/k9nwJkLv7MA2WIlO1ZLTIilT5CFm2B+nz/2nK31slqNV/Gp
 TLtiBeEWF5So+wz24rKOblGuHJxKUIpelKNKiLqMF1oL9x+ZmqO6yI5StpcpOetslEDW
 DwDnMsBge+EJs8iAucWVsF+8EZpkTnMpIj9O3Ly7vAz2jJGty61BENSgrz4EEJNSyroH
 g9wA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20161025;
 h=x-gm-message-state:date:from:to:subject:message-id:mime-version
 :content-disposition:content-transfer-encoding:user-agent;
 bh=pDsUfcz+bFwIKn0m1W2WTHsaIVcdIdG3b5D4w0jpVPw=;
 b=HOLa7kwTuwOdxCrA5/kVjoxdsl7SSl3Gb7tlnkV74Jov9Xq8YDEL/+vWwKDJki9Wei
 3nhDF68AztuwGd3Rw0QwnMHam+HxTPr2WmUX4aORJLo4tI10mNRiUd1tcVaddo7XvBhd
 lKxTQDBz8k4hSg31psDjnGVn5zRpM3sZAIJpydauR7UwQvkQtnnex3y6DOKZeEe1ub8+
 qEZvnZ9KO9vEePPHH1bpWM9LOcBYGbvjEiqSXg/Ajx3yFfZVhLKg91+HQyMbGX6VFIvW
 LWw4Hma3IWGmqaNGULCoc4ZpWobrDL4uGVynEghNd50M3agxomOBA0U3dOma9s1bBZGT
 cLWQ==
X-Gm-Message-State: AKS2vOw9+N/ecLW/TmL68/vPgutLpvQUjDYx8CPeZ/u1TzWxMbm3pZZF
 fO063X6q7oX7+PrF
X-Received: by 10.28.107.88 with SMTP id g85mr12897890wmc.42.1497809356770;
 Sun, 18 Jun 2017 11:09:16 -0700 (PDT)
Received: from gmail.com ([196.203.31.130])
 by smtp.gmail.com with ESMTPSA id f15sm6070374wmf.22.2017.06.18.11.09.15
 for <bug-gnu-emacs@HIDDEN>
 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256);
 Sun, 18 Jun 2017 11:09:16 -0700 (PDT)
Date: Sun, 18 Jun 2017 19:09:15 +0100
From: Pierre Neidhardt <ambrevar@HIDDEN>
To: GNU Emacs bug Tracking System <bug-gnu-emacs@HIDDEN>
Subject: 25.2; Desktop mode fails to restore window registers
Message-ID: <20170618180915.GD2617@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Disposition: inline
Content-Transfer-Encoding: 8bit
X-Info: Simplicity is the ultimate sophistication.
User-Agent: Mutt/1.8.3 (2017-05-23)
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
 recognized.
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x
X-Received-From: 2001:4830:134:3::11
X-Spam-Score: -2.4 (--)
X-Debbugs-Envelope-To: submit
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -2.4 (--)

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




Acknowledgement sent to Pierre Neidhardt <ambrevar@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs@HIDDEN. Full text available.
Report forwarded to bug-gnu-emacs@HIDDEN:
bug#27422; Package emacs. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Mon, 25 Nov 2019 12:00:02 UTC

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