From: weber <hugows@gmail.com>
To: help-gnu-emacs@gnu.org
Subject: Re: Bug when compiling elc code?
Date: Wed, 08 Aug 2007 16:09:51 -0000 [thread overview]
Message-ID: <1186589391.008405.221900@w3g2000hsg.googlegroups.com> (raw)
In-Reply-To: <mailman.4534.1186585008.32220.help-gnu-emacs@gnu.org>
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain; charset="us-ascii", Size: 1212 bytes --]
On 8 ago, 11:59, Sven Joachim <svenj...@gmx.de> wrote:
> bojohan+n...@dd.chalmers.se (Johan Bockgård) writes:
> > Sven Joachim <svenj...@gmx.de> writes:
>
> >> (let ((old-mode (default-file-modes)))
> >> (set-default-file-modes (file-modes buffer-file-name))
> >> (byte-compile-file buffer-file-name)
> >> (set-default-file-modes old-mode)))
>
> > You should use `unwind-protect' here.
>
> Right, thanks. Is the following okay?
>
> (add-hook 'emacs-lisp-mode-hook
> '(lambda ()
> (make-local-hook 'after-save-hook)
> (add-hook 'after-save-hook
> '(lambda ()
> (let ((old-mode (default-file-modes)))
> (unwind-protect
> (progn
> (set-default-file-modes (file-modes buffer-file-name))
> (byte-compile-file buffer-file-name))
> (set-default-file-modes old-mode))))
> nil t)))
Btw, is keeping a password inside a .elc file and deleting the
original .el a semi-safe way to hide your personal info ?
next prev parent reply other threads:[~2007-08-08 16:09 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-08-08 10:29 Bug when compiling elc code? Hadron
2007-08-08 11:37 ` Johan Bockgård
2007-08-08 12:17 ` Sven Joachim
[not found] ` <d3abt22nwk.fsf@googlemail.com>
2007-08-08 16:45 ` Sven Joachim
[not found] ` <mailman.4536.1186591345.32220.help-gnu-emacs@gnu.org>
2007-08-08 17:21 ` Hadron
[not found] ` <mailman.4528.1186577289.32220.help-gnu-emacs@gnu.org>
2007-08-08 13:18 ` Johan Bockgård
2007-08-08 14:59 ` Sven Joachim
[not found] ` <mailman.4534.1186585008.32220.help-gnu-emacs@gnu.org>
2007-08-08 16:09 ` weber [this message]
2007-08-08 16:57 ` Sven Joachim
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1186589391.008405.221900@w3g2000hsg.googlegroups.com \
--to=hugows@gmail.com \
--cc=help-gnu-emacs@gnu.org \
/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 external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.