From: Tim Johnson <tim@akwebsoft.com>
To: help-gnu-emacs@gnu.org
Subject: Re: Force directory recompile
Date: Thu, 18 Mar 2021 12:42:22 -0800 [thread overview]
Message-ID: <98d3afdb-0c81-e943-dc54-d083f2a34b7c@akwebsoft.com> (raw)
In-Reply-To: <87blbgw914.fsf@fastmail.fm>
On 3/18/21 11:29 AM, Joost Kremers wrote:
> On Thu, Mar 18 2021, Tim Johnson wrote:
>> Using GNU Emacs 27.1 on ubuntu 20.04
>> with the following code:
>>
>> emacs --batch --eval '(byte-recompile-directory "~/.emacs.d")'
>>
>> fails to recompile anything.
>>
> As mentioned in the documentation for `byte-recompile-directory`, it only
> recompiles `.el` files if a) there is a corresponding `.elc` file and b) that
> `.elc` file is older than the `.el` file. I assume either or both conditions
> aren't met. If the second condition is met, simply using `touch` on the source
> files should do the trick.
>
>> Since I am moving to a new machine with a different emacs version
>> I anticipate that it is important to recompile all packages I.E. *.el files.
> If you use `package.el`, you should be able to reinstall all your packages using
> `package-install-selected-packages`.
>
Thanks Joost, when I OP'd I was having a problem with documentation. Now
that
I can read docs the code I was looking for is
emacs --batch --eval '(byte-recompile-directory "~/.emacs.d" 0 t)'
which applies the force option.
cheers
--
Tim (always-a-noob t)
tj49.com
next prev parent reply other threads:[~2021-03-18 20:42 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-03-18 18:20 Force directory recompile Tim Johnson
2021-03-18 19:29 ` Joost Kremers
2021-03-18 20:42 ` Tim Johnson [this message]
2021-03-18 20:36 ` [External] : " Drew Adams
2021-03-18 20:46 ` Tim Johnson
2021-03-18 20:53 ` Drew Adams
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=98d3afdb-0c81-e943-dc54-d083f2a34b7c@akwebsoft.com \
--to=tim@akwebsoft.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.