From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Drew Adams" Newsgroups: gmane.emacs.help Subject: RE: fit-frame every time i open a file Date: Tue, 16 Oct 2007 07:18:03 -0700 Message-ID: References: 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 1192544353 22682 80.91.229.12 (16 Oct 2007 14:19:13 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 16 Oct 2007 14:19:13 +0000 (UTC) Cc: Help-gnu-emacs@gnu.org To: "Alex Deva" Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Oct 16 16:19:12 2007 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1IhnGJ-00025F-3G for geh-help-gnu-emacs@m.gmane.org; Tue, 16 Oct 2007 16:19:11 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IhnGB-0000US-VV for geh-help-gnu-emacs@m.gmane.org; Tue, 16 Oct 2007 10:19:03 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1IhnFo-0000Qx-Ss for help-gnu-emacs@gnu.org; Tue, 16 Oct 2007 10:18:40 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1IhnFn-0000Nx-6q for Help-gnu-emacs@gnu.org; Tue, 16 Oct 2007 10:18:39 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IhnFm-0000NV-Q5 for Help-gnu-emacs@gnu.org; Tue, 16 Oct 2007 10:18:38 -0400 Original-Received: from agminet01.oracle.com ([141.146.126.228]) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1IhnFl-0005RS-KO for Help-gnu-emacs@gnu.org; Tue, 16 Oct 2007 10:18:38 -0400 Original-Received: from rgmgw2.us.oracle.com (rgmgw2.us.oracle.com [138.1.186.111]) by agminet01.oracle.com (Switch-3.2.4/Switch-3.1.7) with ESMTP id l9GEIYbX005213; Tue, 16 Oct 2007 09:18:34 -0500 Original-Received: from acsmt350.oracle.com (acsmt350.oracle.com [141.146.40.150]) by rgmgw2.us.oracle.com (Switch-3.2.4/Switch-3.2.4) with ESMTP id l9GDTDNL019439; Tue, 16 Oct 2007 08:18:32 -0600 Original-Received: from 141.144.88.238 by acsmt350.oracle.com with ESMTP id 3296457941192544282; Tue, 16 Oct 2007 07:18:02 -0700 X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.6604 (9.0.2911.0) In-Reply-To: Importance: Normal 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: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:48490 Archived-At: > This is what I get in the *Help* buffer: > > set-mode-style-after-make-frame is a Lisp function in `aquamacs- > styles.el'. (set-mode-style-after-make-frame frame) > Not documented. > > So obviously Aquamacs-specific code. You can click `mouse-2' on `aquamacs-styles.el' to go to its definition. Sometimes there are comments in the code that will help you understand what it does. And sometimes the code itself is understandable, even for someone new to Lisp. (And it's one way to learn a little Lisp, in passing...) > > If `after-make-frame-functions' has value (fit-frame), then `fit- > > frame' should be called. You can do this to see if it is called: > > M-x debug-on-entry RET fit-frame RET > > I activated up the debugger, then opened a new file and the debugger > didn't start, probably meaning that `fit-frame' never got called. That's what I suspected. > I double-checked and `after-make-frame-functions' indeed had the value > (fit-frame). I suppose this means that the problem is Aquamacs > ignoring this call...? I don't know, sorry. At least the problem is apparently not with `fit-frame'. I think you'll need to contact an Aquamacs expert. > Is there any way I can debug the hook itself, and maybe see why it > doesn't call `fit-frame'? Try debugging `make-frame'. There might be other code to debug instead or in addition, but I don't have the time now to search for it. If you `grep' the Lisp source files you might find code that runs the hook, and then you can debug that. You can also define a command that calls `find-file' (or whatever), and then debug that. Sooner or later, you will get to the hook. Good luck. Try also what Peter suggested: contacting an Aquamacs mailing list.