all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Vasilij Schneidermann <v.schneidermann@gmail.com>
To: martin rudalics <rudalics@gmx.at>
Cc: 20848@debbugs.gnu.org
Subject: bug#20848: 24.5; window-state-put fails when strongly dedicated windows are involved
Date: Fri, 19 Jun 2015 21:43:38 +0200	[thread overview]
Message-ID: <20150619194338.GA701@odonien> (raw)
In-Reply-To: <55845595.7040904@gmx.at>

> The dedicated status is stored for each live window individually and
> should be restored as such.  Did you try it?

Yes, the patch works for me.  To accomodate for Emacs 24.3, 24.4 and
24.5, I've modified my example to contain a workaround:

(progn
  (switch-to-buffer "*Messages*")
  (let ((old-window-config (window-state-get)))
    (set-window-dedicated-p nil t)
    (switch-to-buffer-other-window "*scratch*")
    (when (version<= emacs-version "24.5")
      (delete-other-windows)
      (set-window-dedicated-p nil nil)
      (window-state-put old-window-config (frame-root-window)))))
 
> The state of the argument window of ‘window-state-put’ is destroyed by
> the latter so I have no idea how that could be done.
 
I thought of introducing a variable roughly equivalent to
`inhibit-read-only' which state is checked by a few window primitives.
If it were bound, functions like `set-window-buffer' wouldn't error out
for dedicated windows at all.





  reply	other threads:[~2015-06-19 19:43 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-06-19 12:20 bug#20848: 24.5; window-state-put fails when strongly dedicated windows are involved Vasilij Schneidermann
2015-06-19 15:15 ` martin rudalics
2015-06-19 16:54   ` Vasilij Schneidermann
2015-06-19 17:47     ` martin rudalics
2015-06-19 19:43       ` Vasilij Schneidermann [this message]
2015-06-20  8:40         ` martin rudalics
2015-07-06 11:09           ` martin rudalics

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=20150619194338.GA701@odonien \
    --to=v.schneidermann@gmail.com \
    --cc=20848@debbugs.gnu.org \
    --cc=rudalics@gmx.at \
    /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.