unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: "Drew Adams" <drew.adams@oracle.com>
To: "'Jan Djärv'" <jan.h.d@swipnet.se>,
	"'John Yates'" <john@yates-sheets.org>
Cc: 'Emacs Development' <emacs-devel@gnu.org>
Subject: RE: difference between maximized and fullscreen?
Date: Wed, 1 Jul 2009 10:52:33 -0700	[thread overview]
Message-ID: <E64D8B72A3F849B1AC6E96E1984CAB12@us.oracle.com> (raw)
In-Reply-To: <4A4B9641.9090805@swipnet.se>

> I added a frame parameter called sticky.  Please try it.

1. I haven't been following this thread. Please ignore if I misunderstand.

Does this mean that the current frame size (and position?) can be "pinned"
(locked), so that frame sizing (and positioning?) functions have no effect
(unless the `sticky' frame parameter is reset to nil)?

That could be interesting. But it might be even better to have a frame-local
variable to control such locking, instead of a frame parameter. That way, a
function could `let'-bind the variable, to inhibit frame movements and resizing
for a given `let' scope (duration). A user could still unconditionally lock a
frame, but would do so by setting the variable instead of a frame parameter.

----

2. We might even have a user option whose value is a list of frame parameters
(not their values) that are to be controlled by this locking. By default, the
list could be just the size and position parameters, but other parameters might
be made susceptible also.

----

3. BTW, I see that the Elisp manual (node Frame-Local Variables) suggests that
frame-local vars are more or less deprecated (since 22.2). Why? The only reason
given is that they "have not proven very useful." The same could be said for
lots of Emacs features that have never been used much. That's hardly been a
sufficient reason to deprecate.

I've never used frame-local variables, myself, but it seems like they could be
useful, as suggested above. `let' binding could be handier than calling
`modify-frame-parameters' explicitly to set and then reset (and perhaps wrapping
with `unwind-protect', to ensure restoration).

Now if there is some additional reason for deprecating - some _problems_ that
arise from having frame-local vars, then that is a different matter. But the
only reason given seems pretty weak: lack of use of a feature is not much of a
reason to remove it. Especially since this feature was introduced only a short
while before it was deprecated (IIUC, it was introduced in Emacs 22.1 and
deprecated in Emacs 22.2?).






  parent reply	other threads:[~2009-07-01 17:52 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-06-28  7:26 difference between maximized and fullscreen? joakim
2009-06-28  9:39 ` Jan Djärv
     [not found]   ` <m3vdmgbku2.fsf@verona.se>
2009-06-28 16:25     ` Jan Djärv
2009-07-01 14:12     ` Jan Djärv
2009-06-30  2:29   ` John Yates
2009-06-30 14:40     ` Jan Djärv
2009-07-01 17:00     ` Jan Djärv
2009-07-01 17:05       ` Jan Djärv
2009-07-01 17:52       ` Drew Adams [this message]
2009-07-01 20:10         ` Jan Djärv
2009-07-01 23:12           ` Drew Adams
2009-07-02  4:36             ` tomas
2009-07-02  5:36               ` Stephen J. Turnbull
2009-07-02  6:26             ` Jan Djärv

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

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=E64D8B72A3F849B1AC6E96E1984CAB12@us.oracle.com \
    --to=drew.adams@oracle.com \
    --cc=emacs-devel@gnu.org \
    --cc=jan.h.d@swipnet.se \
    --cc=john@yates-sheets.org \
    /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 public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).