From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Tim Johnson Newsgroups: gmane.emacs.help Subject: Re: Force directory recompile Date: Thu, 18 Mar 2021 12:42:22 -0800 Message-ID: <98d3afdb-0c81-e943-dc54-d083f2a34b7c@akwebsoft.com> References: <87blbgw914.fsf@fastmail.fm> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="25876"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.7.1 To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Thu Mar 18 21:43:12 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 1lMzU5-0006XF-6l for geh-help-gnu-emacs@m.gmane-mx.org; Thu, 18 Mar 2021 21:43:09 +0100 Original-Received: from localhost ([::1]:45366 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lMzU4-0002OM-7p for geh-help-gnu-emacs@m.gmane-mx.org; Thu, 18 Mar 2021 16:43:08 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:55874) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lMzTS-0002O5-Tk for help-gnu-emacs@gnu.org; Thu, 18 Mar 2021 16:42:32 -0400 Original-Received: from gateway32.websitewelcome.com ([192.185.145.170]:24380) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lMzTN-0000fJ-SQ for help-gnu-emacs@gnu.org; Thu, 18 Mar 2021 16:42:27 -0400 Original-Received: from cm10.websitewelcome.com (cm10.websitewelcome.com [100.42.49.4]) by gateway32.websitewelcome.com (Postfix) with ESMTP id BACCF32CAB for ; Thu, 18 Mar 2021 15:42:24 -0500 (CDT) Original-Received: from host2075.hostmonster.com ([67.20.113.97]) by cmsmtp with SMTP id MzTMlEVWIL7DmMzTMloHeI; Thu, 18 Mar 2021 15:42:24 -0500 X-Authority-Reason: nr=8 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=tj49.com; s=default; h=Content-Transfer-Encoding:Content-Type:In-Reply-To:MIME-Version :Date:Message-ID:From:References:To:Subject:Sender:Reply-To:Cc:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=CE+XVheJpqipFFjKGr7WMU2aUiltOdtWvOSqOqXEN2M=; b=NErSRqsazZfxgVsO1aa3sJArps QauYOOY0O0CvuuFeECI3yMlVYSIyPKYxO3l9hFHzim60VEww++YfJuJqoPUa4HpLDb1NoiQtRymZP FDzgLrT7dXEL6xzuuCyvkNAtq; Original-Received: from tjohnson.mtaonline.net ([64.4.232.191]:58492 helo=[192.168.1.2]) by host2075.hostmonster.com with esmtpsa (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.93) (envelope-from ) id 1lMzTM-002Tin-0y for help-gnu-emacs@gnu.org; Thu, 18 Mar 2021 14:42:24 -0600 In-Reply-To: <87blbgw914.fsf@fastmail.fm> Content-Language: en-US X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - host2075.hostmonster.com X-AntiAbuse: Original Domain - gnu.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - akwebsoft.com X-BWhitelist: no X-Source-IP: 64.4.232.191 X-Source-L: No X-Exim-ID: 1lMzTM-002Tin-0y X-Source-Sender: tjohnson.mtaonline.net ([192.168.1.2]) [64.4.232.191]:58492 X-Source-Auth: tim@tj49.com X-Email-Count: 1 X-Source-Cap: bW9sZG92YXM7bW9sZG92YXM7aG9zdDIwNzUuaG9zdG1vbnN0ZXIuY29t X-Local-Domain: yes Received-SPF: neutral client-ip=192.185.145.170; envelope-from=tim@akwebsoft.com; helo=gateway32.websitewelcome.com X-Spam_score_int: 2 X-Spam_score: 0.2 X-Spam_bar: / X-Spam_report: (0.2 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, NICE_REPLY_A=-0.001, RCVD_IN_BL_SPAMCOP_NET=1.347, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_PASS=-0.001, SPF_NEUTRAL=0.779 autolearn=no 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:128449 Archived-At: 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