From: Stefan Monnier <monnier@iro.umontreal.ca>
Subject: Re: how can I tell emacs to treat a text file as html?
Date: Fri, 15 Apr 2005 11:48:25 -0400 [thread overview]
Message-ID: <878y3k11xf.fsf-monnier+gnu.emacs.help@gnu.org> (raw)
In-Reply-To: mailman.1644.1113577291.2895.help-gnu-emacs@gnu.org
> As the person who brought forth this mildly contentious and somewhat
> silly notion of "byte compiling .emacs", let me just mention that I
> (also) always byte compile packages that I write, and that I think
> _that_ does have a beneficial effect. The compiler will catch things
> like undefined variables & other such bugs that the interpreter
> doesn't catch. 'Pon fixing these, the code is improved.
That's a good point. I think it would be worthwhile to extract an "elisp
check" functionality that does the same/similar checks as byte-compiling but
without actually generating any .elc file. This could be triggered
automatically when saving the .emacs file. We could use it to give guidance
to the user about what kind of code in her .emacs is
obsolete/poor/misguided/...
> The fact that you _shouldn't_ do this in .emacs (now accepted by me, and
> I'm planning on entering a .emacs rehab) sorta/kinda rests on the
> principle that there shouldn't be much code in the .emacs anyway (see
> another recent thread).
It's not so much a question of quantity as a question of how many times it's
executed. Most packages contain functions which are later on executed
potentially repeatedly. Most .emacs files contain mostly one-time commands,
and the few functions defined there are executed fairly rarely (things like
major mode hooks). Speeding up such code is not going to give much benefit,
if any.
Stefan
next prev parent reply other threads:[~2005-04-15 15:48 UTC|newest]
Thread overview: 28+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <mailman.931.1113065284.2895.help-gnu-emacs@gnu.org>
2005-04-09 17:27 ` how can I tell emacs to treat a text file as html? Albert Reiner
2005-04-09 17:43 ` Angelina Carlton
2005-04-09 18:11 ` Pascal Bourguignon
2005-04-09 18:46 ` Angelina Carlton
2005-04-09 18:34 ` Stefan Monnier
2005-04-09 19:39 ` Angelina Carlton
2005-04-09 22:30 ` Angelina Carlton
[not found] ` <mailman.951.1113084713.2895.help-gnu-emacs@gnu.org>
2005-04-10 1:15 ` Pascal Bourguignon
2005-04-10 5:16 ` Joe Corneli
[not found] ` <mailman.961.1113108735.2895.help-gnu-emacs@gnu.org>
2005-04-11 11:40 ` byte-compiling .emacs (was: how can I tell emacs to treat a text file as html?) Reiner Steib
2005-04-11 13:10 ` Joe Corneli
2005-04-11 13:56 ` Peter Dyballa
[not found] ` <mailman.1067.1113227351.2895.help-gnu-emacs@gnu.org>
2005-04-11 17:19 ` byte-compiling .emacs David Kastrup
2005-04-11 19:41 ` Peter Dyballa
[not found] ` <mailman.1061.1113223276.2895.help-gnu-emacs@gnu.org>
2005-04-11 13:40 ` byte-compiling .emacs (was: how can I tell emacs to treat a text file as html?) Phillip Lord
2005-04-11 14:33 ` byte-compiling .emacs Jay Belanger
2005-04-12 0:58 ` Barry Margolin
2005-04-14 12:48 ` Stefan Monnier
2005-04-14 17:43 ` Jay Belanger
2005-04-12 1:31 ` Quokka
2005-04-14 12:45 ` how can I tell emacs to treat a text file as html? Stefan Monnier
2005-04-15 7:47 ` Steinar Børmer
2005-04-15 8:22 ` Thien-Thi Nguyen
2005-04-15 13:36 ` Stefan Monnier
2005-04-15 14:44 ` Joe Corneli
[not found] ` <mailman.1644.1113577291.2895.help-gnu-emacs@gnu.org>
2005-04-15 15:48 ` Stefan Monnier [this message]
2005-04-15 18:00 ` kgold
2005-04-09 17:03 Angelina Carlton
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=878y3k11xf.fsf-monnier+gnu.emacs.help@gnu.org \
--to=monnier@iro.umontreal.ca \
/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).