From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: Org breakage after rebuilding from Git Date: Fri, 19 May 2023 13:58:25 +0300 Message-ID: <83o7mgtwoe.fsf@gnu.org> References: <83lehlvfdo.fsf@gnu.org> <87sfbs91iu.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="6784"; mail-complaints-to="usenet@ciao.gmane.io" Cc: raman@google.com, emacs-devel@gnu.org To: Tassilo Horn Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Fri May 19 12:58:54 2023 Return-path: Envelope-to: ged-emacs-devel@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 1pzxoz-0001Zn-Sh for ged-emacs-devel@m.gmane-mx.org; Fri, 19 May 2023 12:58:53 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pzxoL-0002r8-L4; Fri, 19 May 2023 06:58:13 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pzxoK-0002qq-1j for emacs-devel@gnu.org; Fri, 19 May 2023 06:58:12 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pzxoJ-0007HG-Nt; Fri, 19 May 2023 06:58:11 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-version:References:Subject:In-Reply-To:To:From: Date; bh=oj0wcH/GK2lRlaAQfWoIbz5pd7LIs3KkD4jQYyBcwZ0=; b=bQzhtfue+BVvt8iQV4iv VlATBcceFqjZ7gYIWaFZ4h9In0gtFrQuVIpVSXaz9m2KIg4OOq4gJeGeP4XXfZuJMKF4yVCZ1IHEZ JirBeEF7A95UZZt3IbTPGRGbT5RZ4hkM7jQt0JkQYtqdZW+SwN5w9A5qYEtJYhYs8sjP9tpdV/IfY lVCGBPUE1wI85scaRVglN6j7J1fQ8LStknn3iVP9DBpsx65TC6RPTOtoWDnY8X61zQAguXeBf29n0 nmRQiXNPLIbsK5Qg3EapvTHZshwGLl0zK4I4Fv3tvbf01ArasJ3A8sW5D1BhNTPOBlPkE7CV2V8BL ftzfObN4t3ciqg==; Original-Received: from [87.69.77.57] (helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pzxoJ-0002Gf-3k; Fri, 19 May 2023 06:58:11 -0400 In-Reply-To: <87sfbs91iu.fsf@gnu.org> (message from Tassilo Horn on Fri, 19 May 2023 09:20:11 +0200) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:306204 Archived-At: > From: Tassilo Horn > Cc: "T.V Raman" , emacs-devel@gnu.org > Date: Fri, 19 May 2023 09:20:11 +0200 > > Eli Zaretskii writes: > > >> Debugger entered--Lisp error: (error "Org version mismatch. Make > >> sure that correct ‘loa...") (signal error ("Org version mismatch. > >> Make sure that correct ‘loa...")) (error "Org version mismatch. > >> Make sure that correct `loa...") > > > > Remove all the *.elc files in lisp/org, then rebuild Emacs, and the > > problem should go away. > > I've had this issue when building emacs, too, and you informed me that > there's a fix in master for that. And indeed, emacs now builds fine. The fix was only for not breaking the Emacs build. If you then load Org without rebuilding all Org files, you will still get the error, and AFAIU that's by design: the Org developers _want_ you to get that error. > However, my personal update script goes > > 1. cd ~/Repos/el/emacs/ && git pull && make > 2. ~/Repos/el/emacs/src/emacs -batch -l ~/.emacs.d/init.el -f package-upgrade-all > > so now instead of failing in step 1 on org changes, I fail in step 2 > (probably because my init.el somehow loads org) which is not better. Is > the fix really about deferring the error from compile time to runtime? Yes. And not just from any "compile time", but specifically from compile time during the Emacs build. > That would help users who never ever load org, I guess, but even for > sporadic users of small parts of it like me, it's actually worse. The intent was to get Org out of the way of Emacs developers who build Emacs many times a day, but not necessarily start Org. The rest is by design, and if you don't like the results, please take that up with the Org developers, who decided on this design. We in Emacs just import Org's code.