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: facemenu-unlisted-faces Date: Sun, 6 Aug 2006 01:10:59 -0700 Message-ID: References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1154851951 2739 80.91.229.2 (6 Aug 2006 08:12:31 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 6 Aug 2006 08:12:31 +0000 (UTC) Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Aug 06 10:12:24 2006 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1G9dkD-0008Gg-Ok for ged-emacs-devel@m.gmane.org; Sun, 06 Aug 2006 10:12:22 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1G9dkC-0007UC-V4 for ged-emacs-devel@m.gmane.org; Sun, 06 Aug 2006 04:12:21 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1G9djp-0007Sk-0i for emacs-devel@gnu.org; Sun, 06 Aug 2006 04:11:57 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1G9djo-0007RB-1w for emacs-devel@gnu.org; Sun, 06 Aug 2006 04:11:56 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1G9djn-0007R8-Rj for emacs-devel@gnu.org; Sun, 06 Aug 2006 04:11:55 -0400 Original-Received: from [141.146.126.228] (helo=agminet01.oracle.com) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_3DES_EDE_CBC_SHA:24) (Exim 4.52) id 1G9dnl-0003RT-U7 for emacs-devel@gnu.org; Sun, 06 Aug 2006 04:16:02 -0400 Original-Received: from rcsmt250.oracle.com (rcsmt250.oracle.com [148.87.90.195]) by agminet01.oracle.com (Switch-3.1.7/Switch-3.1.7) with ESMTP id k75IlxAp003538 for ; Sun, 6 Aug 2006 03:11:53 -0500 Original-Received: from dhcp-amer-whq-csvpn-gw3-141-144-80-121.vpn.oracle.com by rcsmt251.oracle.com with ESMTP id 1716165701154851870; Sun, 06 Aug 2006 02:11:10 -0600 Original-To: X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.6604 (9.0.2911.0) Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1807 In-Reply-To: X-Whitelist: TRUE 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:58142 Archived-At: From: Drew Adams Sent: Saturday, July 01, 2006 8:17 PM Subject: RE: facemenu-unlisted-faces We could enable use of `list-faces-display' to apply a chosen face to the region (what Faces > ... does today). Today, the `list-faces-display' list just gives you access to 1) Customizing the face and 2) the *Faces* description of the face. those two could be combined in the same mouse click - they both give you info on the face. In fact, they already are combined, in the sense that *Faces* has a link to Customize the face. So, clicking the face name in `list-faces-display' could simply apply that face to the region (what Faces > ... does today). And clicking the face's alphabet would show the *Faces* description of the face, with a link to Customize it. IOW, my suggestion is to get rid of menu Faces, and let users obtain its functionality for any face, via a more active `list-faces-display'. The best interaction, BTW, is that provided by `M-o o': it lets you choose a face to apply using face-name completion. Like `list-faces-display', no faces are excluded from that list - if a user wants to apply face `mode-list' to text in a buffer, s?he can. If anyone is interested to try it, to see what it would be like, I have an implementation here: http://www.emacswiki.org/cgi-bin/wiki/facemenu%2b.el. To try it, do this first: 1) (require 'facemenu) 2) (require 'help-mode) 3) Eval just the last sexp before the `provide': (when (>= emacs-major-version...) Then, in a buffer with no font-locking: 1) Optionally select a region 2) `M-o o' 3) Click a face sample (alphabet) to apply that face to the region (or to newly entered text, depending on whether the region is active and non-empty). Again, the advantage of this is that you can see what the face looks like before you apply it: just choose the face by *appearance* (WYSIWYG) - you can ignore the face name altogether. If you use a prefix arg, then you are prompted for the face name, instead of being shown the *Faces* display. So, `M-o o' lets you apply a face by name (with completion) or by appearance. Changes wrt what I suggested originally (above): 1. I switched the two links: clicking the face name gives you info on the face (including the link to customize), and clicking the face sample applies the face to the region (or to newly entered chars). 2. I didn't get rid of the Faces menu. You can access the new behavior using either menu item Faces > Other... or `M-o o'.