From: "Marc Levoy" <levoy@cs.stanford.edu>
Subject: Revision to second bug report
Date: 9 Sep 2002 02:29:50 -0700 [thread overview]
Message-ID: <15740.27150.521272.628116@electrolux.Stanford.EDU> (raw)
Dear Emacs maintainers,
I would like to revise the second of my two bug reports - the one about having
trouble setting my initial screen height. I am still having this trouble, but
the "meta-bug" I reported, that after-init-hook wasn't being invoked in Linux
Emacs, was wrong; it *is* being invoked. I jumped to the wrong conclusion
because I was invoking Emacs as follows:
% emacs -l myinit.el
This invokes myinit.el and .emacs. The former contains my attempt to increase
screen height, as well as my attempt to (add-hook 'after-init-hook...); the
latter was written out by Emacs after I made some customizations using the
Emacs menus.
As I discovered after some additional experimentation, Emacs first evaluates
.emacs, then invokes after-init-hook, which at this point is not defined,
then evaluates myinit.el, which defines after-init-hook, but too late.
To prevent someone else from making this same mistake, it might help to clarify
in your documentation that after-init-hook is invoked after .emacs, but
*before* any lisp file specified on the invoking command line.
Unfortunately, this didn't solve my entire problem. After discovering my
error, I then added my definition of after-init-hook to .emacs (rather than to
myinit.el):
(add-hook 'after-init-hook 'mem-after-init-hook)
(defun mem-after-init-hook ()
(set-frame-height (selected-frame) 60)
)
Some testing verified that this hook was now being invoked. However, it does
not succeed in resetting the frame/screen height, which, after being reduced by
3 lines when I disable the toolbar, insists on staying at its reduced height.
I can enlarge it with my first keystroke after initialization, but I cannot for
the life of me enlarge it during initialization. What is the problem?
-Marc Levoy
Associate Professor
Computer Science Department
Stanford University
reply other threads:[~2002-09-09 9:29 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=15740.27150.521272.628116@electrolux.Stanford.EDU \
--to=levoy@cs.stanford.edu \
/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.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
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).