all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: martin rudalics <rudalics@gmx.at>
To: Drew Adams <drew.adams@oracle.com>
Cc: 12158@debbugs.gnu.org
Subject: bug#12158: 24.1; unclear, incomplete doc of window parameter `quit-restore'
Date: Thu, 09 Aug 2012 10:44:25 +0200	[thread overview]
Message-ID: <50237869.5000004@gmx.at> (raw)
In-Reply-To: <E0D472D8242647FC83A9D85A7C5A1017@us.oracle.com>

 > In (elisp) `Window Parameters', the description of `quit-restore' is not
 > very helpful.  It says what the parameter is used for, and how it is
 > established, and even which function uses it.  But it says _nothing_
 > about what the parameter value is or how to understand its various
 > components.
 >
 >>From the description of `window-parameters' and experimenting using that
 > function we can discover that `quit-restore' has a value that is a list.
 > But that is all.  What the parts of that list are and what they mean or
 > are used for is a complete mystery.  Here is an example `quit-restore'
 > value:
 >
 > (frame frame #<window 3 on *Messages*> #<buffer *Process List*>)
 >
 > And?  What is the expected form of the parameter value?  Does it always
 > have 4 elements?  What are they - what do they mean?  How are they used?

The value of the `quit-restore' parameter is set by the buffer display
routines and inspected when quitting the window.  Applications are not
supposed to inspect or alter the value of this parameter.

The window-pub branch contains a detailed description of an earlier
version of this parameter.  You can find it here:

http://bzr.savannah.gnu.org/lh/emacs/old-branches/window-pub/annotate/head:/doc/lispref/windows.texi

In the course of subsequent changes to the buffer display code, this
description was omitted from the current version of the manual.

 > OK, so there are two cross references here, that should presumably
 > enlighten us.  Following the first and searching for `quit-restore', we
 > find NOTHING - it is not even mentioned in that node.
 >
 > Following the second and searching for `quit-restore', we find only
 > this:
 >
 >  "The function `quit-window' bases its decisions on information stored
 >   in WINDOW's `quit-restore' window parameter (*note Window Parameters::),
 >   and resets that parameter to `nil' after it's done."
 >
 > That does not help us at all to understand the `quit-restore' value.
 > Searching the rest of the manual shows that there is nothing anywhere
 > that helps us interpret `quit-restore' values.
 >
 > NOTE: It is possible that this comment applies also to other window
 > parameters listed in this node.  Please describe each parameter: its
 > format (possible values), including the use/meaning of any components of
 > possible values.

These parameters are listed in this node in order to tell programmers
that their names are in use and which parts of the Emacs code use it.
If any information is missing, please provide a report.

martin





  reply	other threads:[~2012-08-09  8:44 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-08-08 16:11 bug#12158: 24.1; unclear, incomplete doc of window parameter `quit-restore' Drew Adams
2012-08-09  8:44 ` martin rudalics [this message]
2012-08-09 14:21   ` Drew Adams
2012-08-09 18:01     ` martin rudalics
2012-11-09  9:50 ` 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=50237869.5000004@gmx.at \
    --to=rudalics@gmx.at \
    --cc=12158@debbugs.gnu.org \
    --cc=drew.adams@oracle.com \
    /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.