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: command to customize the thing at point? Date: Wed, 22 Feb 2006 07:23:23 -0800 Message-ID: References: <7dbe73ed0602220211s72411e09v609793ab5e5adfff@mail.gmail.com> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1140716013 12153 80.91.229.2 (23 Feb 2006 17:33:33 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 23 Feb 2006 17:33:33 +0000 (UTC) Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Feb 23 18:33:31 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 1FCKKw-0003iA-4z for ged-emacs-devel@m.gmane.org; Thu, 23 Feb 2006 18:33:10 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FCKCd-0004ia-FG for ged-emacs-devel@m.gmane.org; Thu, 23 Feb 2006 12:24:31 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1FC1Jd-000712-AG for emacs-devel@gnu.org; Wed, 22 Feb 2006 16:14:29 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1FBzWR-00034X-Um for emacs-devel@gnu.org; Wed, 22 Feb 2006 14:20:07 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FBzDN-0002Hz-0X for emacs-devel@gnu.org; Wed, 22 Feb 2006 13:59:53 -0500 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 1FBvwd-000084-Cn for emacs-devel@gnu.org; Wed, 22 Feb 2006 10:30:23 -0500 Original-Received: from rgmsgw300.us.oracle.com (rgmsgw300.us.oracle.com [138.1.186.49]) by agminet01.oracle.com (Switch-3.1.7/Switch-3.1.7) with ESMTP id k1MFNbv7013537 for ; Wed, 22 Feb 2006 09:23:38 -0600 Original-Received: from rgmsgw300.us.oracle.com (localhost [127.0.0.1]) by rgmsgw300.us.oracle.com (Switch-3.1.7/Switch-3.1.7) with ESMTP id k1MFNbja009137 for ; Wed, 22 Feb 2006 08:23:37 -0700 Original-Received: from dradamslap (dhcp-amer-csvpn-gw1-141-144-64-206.vpn.oracle.com [141.144.64.206]) by rgmsgw300.us.oracle.com (Switch-3.1.7/Switch-3.1.7) with SMTP id k1MFNaxF009126 (version=TLSv1/SSLv3 cipher=RC4-MD5 bits=128 verify=NO) for ; Wed, 22 Feb 2006 08:23:37 -0700 Original-To: "Emacs-Devel" X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.6604 (9.0.2911.0) X-MIMEOLE: Produced By Microsoft MimeOLE V6.00.2800.1506 In-Reply-To: <7dbe73ed0602220211s72411e09v609793ab5e5adfff@mail.gmail.com> Importance: Normal X-Brightmail-Tracker: AAAAAQAAAAI= 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:50889 Archived-At: > How about having a single command that would call customize-face, > customize-option, or customize-group, as appropriate, on the > name at point or under the mouse pointer? In what contexts/places would it be useful? Any context in which, today, you might use `customize-face', `customize-option', or `customize-group'. These are essentially just different manifestations of the same `customize' method applied to different kinds of "objects". The point is that you're already pointing at the name of the thing in question (via point or mouse pointer), and that "object" should "know" what the "method" `customize' means to it (to descend to oopspeak). (No, I'm not advocating any oopness for Emacs here; I just thought that phrasing it ooply might make the point clearer to those born post Oop (other than Alley, that is).) In only relatively few cases is the object in question ambiguous; in those cases, the command would ask you which is the intended target. It could either ask you explicitly (y/n) or just let you cycle through the possible values ("foo (function)", "foo (option)", "foo (face)"). The same idea might be used for `describe-variable', `describe-function', etc. when it picks up the default value - much of the time the name is unambiguous. This could mean fewer keys to learn for gnubees.