From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Drew Adams" Newsgroups: gmane.emacs.devel Subject: RE: Face remapping on mouse menu Date: Thu, 12 Jun 2008 09:01:17 -0700 Message-ID: <007d01c8cca5$8c967580$c2b22382@us.oracle.com> References: <87iqwfrzph.fsf@stupidchicken.com><006a01c8cc9f$00cd9ac0$c2b22382@us.oracle.com> <87hcby4q9y.fsf@stupidchicken.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1213287079 25857 80.91.229.12 (12 Jun 2008 16:11:19 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 12 Jun 2008 16:11:19 +0000 (UTC) Cc: emacs-devel@gnu.org, 'Miles Bader' To: "'Chong Yidong'" Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Jun 12 18:12:01 2008 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1K6pOx-0004Ot-Gt for ged-emacs-devel@m.gmane.org; Thu, 12 Jun 2008 18:11:51 +0200 Original-Received: from localhost ([127.0.0.1]:59415 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1K6pO9-0001H7-OF for ged-emacs-devel@m.gmane.org; Thu, 12 Jun 2008 12:11:01 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1K6pGO-0005d9-HB for emacs-devel@gnu.org; Thu, 12 Jun 2008 12:03:00 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1K6pGL-0005Zx-LY for emacs-devel@gnu.org; Thu, 12 Jun 2008 12:02:59 -0400 Original-Received: from [199.232.76.173] (port=47357 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1K6pGK-0005Zc-DD for emacs-devel@gnu.org; Thu, 12 Jun 2008 12:02:57 -0400 Original-Received: from rgminet01.oracle.com ([148.87.113.118]:37504) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1K6pGF-0003fx-7F; Thu, 12 Jun 2008 12:02:51 -0400 Original-Received: from rgmgw2.us.oracle.com (rgmgw2.us.oracle.com [138.1.186.111]) by rgminet01.oracle.com (Switch-3.2.4/Switch-3.1.6) with ESMTP id m5CG2l2E015649; Thu, 12 Jun 2008 10:02:47 -0600 Original-Received: from acsmt351.oracle.com (acsmt351.oracle.com [141.146.40.151]) by rgmgw2.us.oracle.com (Switch-3.2.4/Switch-3.2.4) with ESMTP id m5CFiDJi014231; Thu, 12 Jun 2008 10:02:47 -0600 Original-Received: from inet-141-146-46-1.oracle.com by acsmt350.oracle.com with ESMTP id 3693048371213286475; Thu, 12 Jun 2008 09:01:15 -0700 Original-Received: from dradamslap1 (/130.35.178.194) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Thu, 12 Jun 2008 09:01:15 -0700 X-Mailer: Microsoft Office Outlook 11 In-Reply-To: <87hcby4q9y.fsf@stupidchicken.com> Thread-Index: AcjMox5KQxUhma4ATrCKhk0f43/PzgAAWqTw X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3198 X-Brightmail-Tracker: AAAAAQAAAAI= X-Brightmail-Tracker: AAAAAQAAAAI= X-Whitelist: TRUE X-Whitelist: TRUE X-detected-kernel: by monty-python.gnu.org: Linux 2.4-2.6 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:99014 Archived-At: > > 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. Thanks for the clarification. Sounds good to me. Would we also want to include something in the menu to do the same thing for the frame? Or perhaps for all frames? Or perhaps for all buffers of the same mode? I'm thinking that what users will typically want to do is one of these: 1. Change the font for the current buffer (what you propose). 2. Change the font for the current frame (what we used to have). 3. Change the font for all buffers that have the same mode as the current buffer. We might accommodate all of these use cases with the same menu items, just by including a multiple-choice set of radio buttons at the end of the menu: (.) Current Buffer ( ) Current Frame ( ) Buffers with Current Mode The last of these would affect also future buffers in the current mode, not just existing buffers in that mode. Regardless of whether this idea appeals to people, I am in favor of the change you proposed: current buffer instead of current frame. > Otherwise, it would be a > submenu containing the old mouse-select-font choices. I didn't quite understand that part.