[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: "You should byte-compile Gnus" ?
From: |
William Xu |
Subject: |
Re: "You should byte-compile Gnus" ? |
Date: |
Mon, 25 Feb 2008 21:31:54 +0900 |
User-agent: |
Gnus/5.11 (Gnus v5.11) Emacs/22.1.91 (darwin) |
Katsumi Yamaoka <yamaoka@jpl.org> writes:
> The default value of `ad-default-compilation-action' is `maybe'
> which means not to compile advised functions if bytecomp.elc is
> not loaded. Though that advice to gnus seems needless now ;-),
> there are several ways to force the byte-compilation:
>
> 1. Load bytecomp, i.e. (require 'bytecomp), before performing advice.
> 2. Add the `compile' flag to the arglist of defadvice. E.g.;
> (defadvice FUNCTION (CLASS NAME ... compile) ...)
> 3. Set `ad-default-compilation-action' to `always'.
Thanks for explaining!
As for switching to gnus, I replaced the defadvice with a lambda
function:
,----
| (global-set-key (kbd "<f6>") (lambda ()
| (interactive)
| (let ((buf (get-buffer "*Group*")))
| (if buf
| (switch-to-buffer buf)
| (call-interactively 'gnus)
| (gnus-demon-init)))))
`----
I dislike frames. Never use any. :P
--
William
http://williamxu.net9.org
- Re: "You should byte-compile Gnus" ?, (continued)
- Re: "You should byte-compile Gnus" ?, Bastien, 2008/02/25
- Re: "You should byte-compile Gnus" ?, William Xu, 2008/02/25
- Re: "You should byte-compile Gnus" ?, Bastien, 2008/02/25
- Re: "You should byte-compile Gnus" ?, William Xu, 2008/02/25
- Re: "You should byte-compile Gnus" ?, Charles philip Chan, 2008/02/25
- Re: "You should byte-compile Gnus" ?, William Xu, 2008/02/25
- Re: "You should byte-compile Gnus" ?, Bastien, 2008/02/25
- Re: "You should byte-compile Gnus" ?, William Xu, 2008/02/25
- Message not available
- Re: "You should byte-compile Gnus" ?, Katsumi Yamaoka, 2008/02/25
- Re: "You should byte-compile Gnus" ?, Katsumi Yamaoka, 2008/02/25
- Re: "You should byte-compile Gnus" ?,
William Xu <=