From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Joost Kremers Newsgroups: gmane.emacs.help Subject: Re: Force directory recompile Date: Thu, 18 Mar 2021 20:29:59 +0100 Message-ID: <87blbgw914.fsf@fastmail.fm> References: Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="2811"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: mu4e 1.5.8; emacs 27.1.91 Cc: help-gnu-emacs@gnu.org To: Tim Johnson Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Thu Mar 18 20:35:57 2021 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lMyR2-0000cf-CT for geh-help-gnu-emacs@m.gmane-mx.org; Thu, 18 Mar 2021 20:35:56 +0100 Original-Received: from localhost ([::1]:52966 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lMyR1-0003WZ-E5 for geh-help-gnu-emacs@m.gmane-mx.org; Thu, 18 Mar 2021 15:35:55 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:41996) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lMyPq-0003WS-Pq for help-gnu-emacs@gnu.org; Thu, 18 Mar 2021 15:34:42 -0400 Original-Received: from wout1-smtp.messagingengine.com ([64.147.123.24]:36185) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lMyPm-0003L3-Uj for help-gnu-emacs@gnu.org; Thu, 18 Mar 2021 15:34:42 -0400 Original-Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.west.internal (Postfix) with ESMTP id 4E00111C1; Thu, 18 Mar 2021 15:34:36 -0400 (EDT) Original-Received: from mailfrontend2 ([10.202.2.163]) by compute4.internal (MEProxy); Thu, 18 Mar 2021 15:34:36 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fastmail.fm; h= references:from:to:cc:subject:date:in-reply-to:message-id :mime-version:content-type; s=fm2; bh=pcpC8ugf3vgjcsMdo0GlmfL7NX vGdA6GvUqV4wCQP5U=; b=Bt+V4c8u2Hkeg73PjSq0ZvVzSpj8GQ7AsB8Cr/bpNo DZ7RlGpftgi8XrIsMmYyzWoKE81WaKesvHbvq18F2Sjmde1yrE1gkytpnBwm0NED PWomfGGmvmGNRlOe6hm6V+PINLGXZbBme+pgulTB3ac3tqCNef84CwTekrzmu1RM +GlFOxAWuVlcg88DHWGcogXWMQBYZXXEMvS9RxXXnJTlzqMu/dpjcDRT8DpGchBU x4nE9/4jHS9VT3MvOPhI636jQ2MnBuJA6jYtBt0oYZICPfy17ew7IerXkf+9Fm2v B75VqRuoqd6pu+jSWQC3gMUl1PAiDZd7cTUbDQAiC7ow== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm2; bh=pcpC8u gf3vgjcsMdo0GlmfL7NXvGdA6GvUqV4wCQP5U=; b=IlfamaXkBk3Q0VUC1VP88c zUAsTjgFkxDcJ37B0LciN/8ngaYnhOEdGp5Yt/6JmJ06HUYb78WQU6HmZMyeNY05 sQTsLdkZ9k/Ur8SjRHOqa1e0nDGaNIVxhu9iJq4sqFEwYCtnwMQZrcd489OabTQx NkIc9+ZWAXnC0iVmLzbLAiw6UR8jFnczfYFDe3X2e87dgzDC7y7kGTEG+DUhBnQb iUFDkzVGbbwWwDZLAXvd0r6BnlGChM4rfym4ctTKObFlupinZk8m0tknmprL0fV1 rKj8qCB2ES5EtuHZFrtg6ENOyR3VVu1J5PzGWefmSI9mExwbnsHH2DKjzqLfgSDQ == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduledrudefiedguddvkecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecunecujfgurhepfhgfhffvufffjgfkgggtsehttd ertddtredtnecuhfhrohhmpeflohhoshhtucfmrhgvmhgvrhhsuceojhhoohhsthhkrhgv mhgvrhhssehfrghsthhmrghilhdrfhhmqeenucggtffrrghtthgvrhhnpedviefhteeuve ekudetheduieehvdelgfeijeehvdetfeegleelhefhjeduieejveenucfkphepleehrdel uddrudeljedrheejnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilh hfrhhomhepjhhoohhsthhkrhgvmhgvrhhssehfrghsthhmrghilhdrfhhm X-ME-Proxy: Original-Received: from Swift.fastmail.com (ip5f5bc539.dynamic.kabel-deutschland.de [95.91.197.57]) by mail.messagingengine.com (Postfix) with ESMTPA id 1DAC91080057; Thu, 18 Mar 2021 15:34:35 -0400 (EDT) In-reply-to: Received-SPF: pass client-ip=64.147.123.24; envelope-from=joostkremers@fastmail.fm; helo=wout1-smtp.messagingengine.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H4=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.io gmane.emacs.help:128445 Archived-At: 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