unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: "Drew Adams" <drew.adams@oracle.com>
To: "Alex Deva" <alxx@indigenious.ro>
Cc: Help-gnu-emacs@gnu.org
Subject: RE: fit-frame every time i open a file
Date: Tue, 16 Oct 2007 07:18:03 -0700	[thread overview]
Message-ID: <DNEMKBNJBGPAOPIJOOICCEKFEAAA.drew.adams@oracle.com> (raw)
In-Reply-To: <CCBBCED4-CB1E-4599-A99E-52077149D893@indigenious.ro>

> 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.

  reply	other threads:[~2007-10-16 14:18 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-10-15 13:07 fit-frame every time i open a file alxx
2007-10-15 15:45 ` Drew Adams
2007-10-15 16:13   ` alxx
2007-10-15 17:02     ` Drew Adams
2007-10-15 17:44     ` Peter Dyballa
2007-10-15 18:15       ` Drew Adams
2007-10-15 18:23         ` Alex Deva
2007-10-15 18:41           ` Drew Adams
2007-10-15 20:12             ` Alex Deva
2007-10-15 20:54               ` Drew Adams
2007-10-16  7:15                 ` Alex Deva
2007-10-16 14:18                   ` Drew Adams [this message]
2007-10-16  8:44               ` Peter Dyballa
     [not found]             ` <mailman.2101.1192479183.18990.help-gnu-emacs@gnu.org>
2007-10-21  7:57               ` David Reitter

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=DNEMKBNJBGPAOPIJOOICCEKFEAAA.drew.adams@oracle.com \
    --to=drew.adams@oracle.com \
    --cc=Help-gnu-emacs@gnu.org \
    --cc=alxx@indigenious.ro \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).