all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Joost Kremers <joostkremers@fastmail.fm>
To: Tim Johnson <tim@akwebsoft.com>
Cc: help-gnu-emacs@gnu.org
Subject: Re: Force directory recompile
Date: Thu, 18 Mar 2021 20:29:59 +0100	[thread overview]
Message-ID: <87blbgw914.fsf@fastmail.fm> (raw)
In-Reply-To: <fe3e39d4-4d67-0dbc-df60-4c471130102d@akwebsoft.com>


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`.

-- 
Joost Kremers
Life has its moments



  reply	other threads:[~2021-03-18 19:29 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 [this message]
2021-03-18 20:42   ` Tim Johnson
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=87blbgw914.fsf@fastmail.fm \
    --to=joostkremers@fastmail.fm \
    --cc=help-gnu-emacs@gnu.org \
    --cc=tim@akwebsoft.com \
    /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.