unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Chong Yidong <cyd@stupidchicken.com>
To: "Drew Adams" <drew.adams@oracle.com>
Cc: emacs-devel@gnu.org, 'Miles Bader' <miles@gnu.org>
Subject: Re: Face remapping on mouse menu
Date: Thu, 12 Jun 2008 11:38:33 -0400	[thread overview]
Message-ID: <87hcby4q9y.fsf@stupidchicken.com> (raw)
In-Reply-To: <006a01c8cc9f$00cd9ac0$c2b22382@us.oracle.com> (Drew Adams's message of "Thu, 12 Jun 2008 08:14:25 -0700")

"Drew Adams" <drew.adams@oracle.com> writes:

>> Now that the face-remapping code has been checked in, I'd suggest
>> changing this menu to a "buffer faces" menu.  It should contain a few
>> items that remap the `default' face in the current buffer: an item to
>> increase the face size, an item to decrease the face size, and an
>> item to change the face font.  When fontconfig is available, the
>> latter can use x-popup-dialog to pop up the GTK font selector,
>> instead of relying on x-fixed-font-alist.
>> 
>> WDYT?
>
> I don't really follow it, frankly, perhaps because I'm not very
> familiar with the face-remapping code.
>
> Are you suggesting to replace the dialog to choose a font for the
> current frame by a dialog to choose a font for the current buffer? Is
> that essentially what you are suggesting?
>
> Can you please describe the changes you propose more concretely? What
> bindings for what menus, what changes to the existing menus, reasons,
> etc.

The idea is for shift-down-mouse-1 to pop up a context menu something
like this:

 Increase Text Size
 Decrease Text Size
 Change Buffer Font
 Restore Default Text Size

The operations in this menu would affect the text in the current buffer
only, via the face-remapping code.  The "Restore Default Text Size" item
would simply remove the face remapping.

With GTK/Fontconfig, the "Change Buffer Font" item pops up a GTK font
dialog to choose the font for the current buffer.  On Win32, it pops up
a Windows font dialog for the same purpose.  Otherwise, it would be a
submenu containing the old mouse-select-font choices.




  reply	other threads:[~2008-06-12 15:38 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-06-12  5:26 Face remapping on mouse menu Chong Yidong
2008-06-12  7:07 ` joakim
2008-06-12  8:21 ` Miles Bader
2008-06-12 15:14 ` Drew Adams
2008-06-12 15:38   ` Chong Yidong [this message]
2008-06-12 16:01     ` Drew Adams
2008-06-12 16:17     ` Jason Rumney
2008-06-15 20:08 ` Chong Yidong
2008-06-15 23:55   ` Juanma Barranquero
2008-06-16  1:25     ` Chong Yidong
2008-06-16 23:03       ` Juanma Barranquero
  -- strict thread matches above, loose matches on Subject: below --
2008-06-16 10:43 Robert J. Chassell

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=87hcby4q9y.fsf@stupidchicken.com \
    --to=cyd@stupidchicken.com \
    --cc=drew.adams@oracle.com \
    --cc=emacs-devel@gnu.org \
    --cc=miles@gnu.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).