GNU bug report logs - #10348
24.0.92; Save and load window states

Previous Next

Package: emacs;

Reported by: Michael Bach <phaebz <at> gmail.com>

Date: Thu, 22 Dec 2011 01:40:08 UTC

Severity: normal

Found in version 24.0.92

Done: martin rudalics <rudalics <at> gmx.at>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: help-debbugs <at> gnu.org (GNU bug Tracking System)
To: Michael Bach <phaebz <at> gmail.com>
Subject: bug#10348: closed (Re: bug#10348: 24.0.92; Save and load window
 states)
Date: Mon, 16 Jan 2012 09:44:02 +0000
[Message part 1 (text/plain, inline)]
Your bug report

#10348: 24.0.92; Save and load window states

which was filed against the emacs package, has been closed.

The explanation is attached below, along with your original report.
If you require more details, please reply to 10348 <at> debbugs.gnu.org.

-- 
10348: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=10348
GNU Bug Tracking System
Contact help-debbugs <at> gnu.org with problems
[Message part 2 (message/rfc822, inline)]
From: martin rudalics <rudalics <at> gmx.at>
To: 10348-done <at> debbugs.gnu.org
Cc: Michael Bach <phaebz <at> gmail.com>
Subject: Re: bug#10348: 24.0.92; Save and load window states
Date: Mon, 16 Jan 2012 10:43:00 +0100
> `window-state-put' as used within the following functions does not work.
> Please see *Backtrace* below for error.  (See also post to
> help-gnu-emacs <at> gnu.org with subject "Save and load window states")
>
> Steps to reproduce:
> 1) Start via `emacs -Q'.
> 2) evaluate the two functions:
> (defun my-save-frame ()
>   (interactive)
>   (let ((buf (find-file-noselect "/tmp/emacs-layout")))
>     (set-buffer buf)
>     (erase-buffer)
>     (print (window-state-get) buf)
>     (save-buffer)
>     (kill-buffer)))
>
> (defun my-load-frame ()
>   (interactive)
>   (let ((buf (find-file-noselect "/tmp/emacs-layout")))
>     (set-buffer buf)
>     (beginning-of-buffer)
>     (window-state-put (read buf))
>     (kill-buffer)))
>
> 3) Do a `M-x my-save-frame' and after that `M-x my-load-frame'
>
> Debugger entered--Lisp error: (invalid-read-syntax "#")
>   read(#<buffer emacs-layout>)
>   (window-state-put (read buf))
>   (let ((buf (find-file-noselect "/tmp/emacs-layout"))) (set-buffer buf) (beginning-of-buffer) (window-state-put (read buf)) (save-buffer) (kill-buffer))
>   my-load-frame()
>   call-interactively(my-load-frame t nil)
>   execute-extended-command(nil)
>   call-interactively(execute-extended-command nil nil)

This problem should have been resolved with revision 106873 on trunk.

Thanks, martin

[Message part 3 (message/rfc822, inline)]
From: Michael Bach <phaebz <at> gmail.com>
To: bug-gnu-emacs <at> gnu.org
Subject: 24.0.92; Save and load window states
Date: Wed, 21 Dec 2011 21:41:05 +0100
`window-state-put' as used within the following functions does not work.
Please see *Backtrace* below for error.  (See also post to
help-gnu-emacs <at> gnu.org with subject "Save and load window states")

Steps to reproduce: 
1) Start via `emacs -Q'.
2) evaluate the two functions:
(defun my-save-frame ()
  (interactive)
  (let ((buf (find-file-noselect "/tmp/emacs-layout")))
    (set-buffer buf)
    (erase-buffer)
    (print (window-state-get) buf)
    (save-buffer)
    (kill-buffer)))

(defun my-load-frame ()
  (interactive)
  (let ((buf (find-file-noselect "/tmp/emacs-layout")))
    (set-buffer buf)
    (beginning-of-buffer)
    (window-state-put (read buf))
    (kill-buffer)))

3) Do a `M-x my-save-frame' and after that `M-x my-load-frame'

Debugger entered--Lisp error: (invalid-read-syntax "#")
  read(#<buffer emacs-layout>)
  (window-state-put (read buf))
  (let ((buf (find-file-noselect "/tmp/emacs-layout"))) (set-buffer buf) (beginning-of-buffer) (window-state-put (read buf)) (save-buffer) (kill-buffer))
  my-load-frame()
  call-interactively(my-load-frame t nil)
  execute-extended-command(nil)
  call-interactively(execute-extended-command nil nil)

Important settings:
  value of $LC_ALL: nil
  value of $LC_COLLATE: nil
  value of $LC_CTYPE: nil
  value of $LC_MESSAGES: nil
  value of $LC_MONETARY: nil
  value of $LC_NUMERIC: nil
  value of $LC_TIME: nil
  value of $LANG: en_US.UTF-8
  value of $XMODIFIERS: nil
  locale-coding-system: utf-8
  default enable-multibyte-characters: t

Recent messages:
Wrote /tmp/emacs-layout
Quit
Mark set
window-state-put: Invalid read syntax: "#"



This bug report was last modified 13 years and 222 days ago.

Previous Next


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