From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: "Drew Adams" Newsgroups: gmane.emacs.devel Subject: (no subject) Date: Sat, 9 Oct 2004 17:10:25 -0700 Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Message-ID: NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1097367076 20039 80.91.229.6 (10 Oct 2004 00:11:16 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 10 Oct 2004 00:11:16 +0000 (UTC) Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Oct 10 02:11:05 2004 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1CGRIm-0006ch-00 for ; Sun, 10 Oct 2004 02:11:05 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CGRPe-0000kt-Cq for ged-emacs-devel@m.gmane.org; Sat, 09 Oct 2004 20:18:10 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1CGRPU-0000jm-KU for emacs-devel@gnu.org; Sat, 09 Oct 2004 20:18:00 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1CGRPU-0000jV-5q for emacs-devel@gnu.org; Sat, 09 Oct 2004 20:18:00 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CGRPU-0000jS-3N for emacs-devel@gnu.org; Sat, 09 Oct 2004 20:18:00 -0400 Original-Received: from [148.87.2.201] (helo=inet-mail1.oracle.com) by monty-python.gnu.org with esmtp (TLSv1:DES-CBC3-SHA:168) (Exim 4.34) id 1CGRIO-0002xJ-Ih for emacs-devel@gnu.org; Sat, 09 Oct 2004 20:10:40 -0400 Original-Received: from rgmgw2.us.oracle.com (rgmgw2.us.oracle.com [138.1.191.11]) by inet-mail1.oracle.com (Switch-3.1.4/Switch-3.1.0) with ESMTP id i9A0D1fg023212 for ; Sat, 9 Oct 2004 17:13:02 -0700 (PDT) Original-Received: from rgmgw2.us.oracle.com (localhost [127.0.0.1]) by rgmgw2.us.oracle.com (Switch-3.1.4/Switch-3.1.0) with ESMTP id i9A0AaGN027802 for ; Sat, 9 Oct 2004 18:10:36 -0600 Original-Received: from dradamslap (dhcp-amer-csvpn-gw2-141-144-80-26.vpn.oracle.com [141.144.80.26]) by rgmgw2.us.oracle.com (Switch-3.1.4/Switch-3.1.0) with SMTP id i9A0AaLB027794 for ; Sat, 9 Oct 2004 18:10:36 -0600 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) Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1441 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: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.devel:28162 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:28162 Commands like `customize-group-other-window', and function `custom-buffer-create-other-window' were apparently designed _not_ to select the custom buffer after displaying it. This can be inconvenient if you use separate frames, instead of windows (pop-up-frames t). For example, suppose I want to do something to or in the custom buffer after it is displayed. To be more specific, suppose I want to resize (fit) the frame to the buffer if the custom buffer is alone in its frame (which it will be, because of pop-up-frames). What are my options? 1. Is there a hook that's run after display of the custom buffer? I don't think so; I find only custom-mode-hook, which is run before the buffer is displayed. Doing the frame fitting at that time is no good. 2. How about using a defadvice-after? Well, that would be logical, except that the custom buffer is not selected. I could select it in the defadvice, but then I would need to copy & use the code that creates the buffer name. Which more or less amounts to option #3. 3. _Redefine_ the functions. So, in order to avoid having people redefine such functions just to do something simple after the buffer is displayed, how about making one of these changes? - Select the custom buffer in the other window/frame. OK by me -- I don't understand why this isn't done now; after all, the custom buffer is mainly for editing. But, I can anticipate others groaning, and I'm sure there must be good reasons (with pop-up-frames nil) for the current behavior. After all, all of these functions go out of their way to unselect the custom buffer. - Select the custom buffer, but only if pop-up-frames is t. OK by me, but it seems like kind of a hack. - Provide an after-display hook for the customize functions; it would be run with the custom buffer selected (before unselecting it as is currently done). Any reason we shouldn't implement one of these (or another)? - Drew