all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "Drew Adams" <drew.adams@oracle.com>
To: "'Miles Bader'" <miles@gnu.org>
Cc: 'Stefan Monnier' <monnier@iro.umontreal.ca>, emacs-devel@gnu.org
Subject: RE: face-remap.el patch to resize window
Date: Mon, 10 Aug 2009 10:00:24 -0700	[thread overview]
Message-ID: <4AA53AB1A08C45E694CE138273DE59E8@us.oracle.com> (raw)
In-Reply-To: <871vnkfee9.fsf@catnip.gol.com>

> What do you think of the following patch, which is an alternative
> approach based on hooks?
> 
> Basically to get the behavior you want, you can do:
>    (add-hook 'text-scale-mode-hook 
>              'text-scale-mode-adjust-window-size)

If that's what it takes to get such a feature added, fine; please go for it.

I don't, however see any advantage of your hook hack over the patch I sent. And
you didn't cite any.

On the contrary, I see disadvantages of your approach:

1. The means of changing the setting (say from vertical to horizontal size
adjustment) is, well, removing and adding hook functions.

Why make users do that? With my patch, you can easily change the option value on
the fly using, say, `set-variable'.

2. What's more, a user could make the option buffer-local, and so have
window-resizing behavior be buffer-specific: don't resize, resize horizontally,
vertically, or both.


At any rate, for my personal use I already have what I need, so if you want to
add your patch to Emacs, I'm in favor.






  reply	other threads:[~2009-08-10 17:00 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-08-10  1:04 face-remap.el patch to resize window Drew Adams
2009-08-10  3:00 ` Stefan Monnier
2009-08-10  3:27   ` Drew Adams
2009-08-10  5:04     ` Miles Bader
2009-08-10 17:00       ` Drew Adams [this message]
2009-08-10  3:34   ` Miles Bader
2009-08-10 15:01     ` Stefan Monnier
2009-08-10 16:31     ` Drew Adams
2009-08-10 16:52       ` Miles Bader
2009-08-10 16:59         ` Drew Adams
2009-08-10 17:16         ` Stefan Monnier
2009-08-10 17:00       ` Stefan Monnier
2009-08-10 17:15         ` Drew Adams
2009-08-10 17:37           ` Miles Bader
2009-08-10 21:41             ` Drew Adams
2009-08-10 18:03           ` Stefan Monnier
2009-08-10 21:50             ` Drew Adams
2009-08-11  3:45               ` Stefan Monnier
  -- strict thread matches above, loose matches on Subject: below --
2009-06-29 22:10 Drew Adams
2009-06-22 20:40 Drew Adams

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=4AA53AB1A08C45E694CE138273DE59E8@us.oracle.com \
    --to=drew.adams@oracle.com \
    --cc=emacs-devel@gnu.org \
    --cc=miles@gnu.org \
    --cc=monnier@iro.umontreal.ca \
    /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.