From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id kJG3AxaqBGABKQAA0tVLHw (envelope-from ) for ; Sun, 17 Jan 2021 21:20:22 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id oDgjOxWqBGDrPAAA1q6Kng (envelope-from ) for ; Sun, 17 Jan 2021 21:20:21 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 664BF9402C8 for ; Sun, 17 Jan 2021 21:20:21 +0000 (UTC) Received: from localhost ([::1]:39052 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1l1FTA-0007zX-2k for larch@yhetil.org; Sun, 17 Jan 2021 16:20:20 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:48916) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l1FSW-0007zJ-I0 for emacs-orgmode@gnu.org; Sun, 17 Jan 2021 16:19:40 -0500 Received: from forward101j.mail.yandex.net ([5.45.198.241]:38225) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l1FST-0001NZ-Fu for emacs-orgmode@gnu.org; Sun, 17 Jan 2021 16:19:40 -0500 Received: from sas1-44e0060c3838.qloud-c.yandex.net (sas1-44e0060c3838.qloud-c.yandex.net [IPv6:2a02:6b8:c08:f21a:0:640:44e0:60c]) by forward101j.mail.yandex.net (Yandex) with ESMTP id 857E11BE1805; Mon, 18 Jan 2021 00:19:34 +0300 (MSK) Received: from sas1-e20a8b944cac.qloud-c.yandex.net (sas1-e20a8b944cac.qloud-c.yandex.net [2a02:6b8:c14:6696:0:640:e20a:8b94]) by sas1-44e0060c3838.qloud-c.yandex.net (mxback/Yandex) with ESMTP id GRZBYS1WWE-JYD80H9w; Mon, 18 Jan 2021 00:19:34 +0300 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.com; s=mail; t=1610918374; bh=bGqpQBc5aAspdd8TN9yBTHglOL2T8N2uH6ies4Iu4uc=; h=In-Reply-To:Subject:To:From:Message-ID:Cc:Cc:Date:References; b=N+iHoGJDwfTE13gUFHr9pb8sp6CtcHNx10VwIIrYaxMQjUkY29C5kgkhaCSS6IYiS Ea1zck7kMSkZ7zg0fc3P5ZeigwdLOD+iIquRZwMK8j7LqR6u+NxbX1P919hiLdxzcD g+SrnZ33AMmn/JGU+jqfxQmw0XiWt1U8KX9ySWc0= Received: by sas1-e20a8b944cac.qloud-c.yandex.net (smtp/Yandex) with ESMTPSA id HZEj3hJIXn-JXImIBY4; Mon, 18 Jan 2021 00:19:33 +0300 (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client certificate not present) From: Colin Baxter To: Tim Cross Subject: Re: org-publish error with java hook References: <875z3v5srj.fsf@yandex.com> <87h7nf8iaw.fsf@gmail.com> <871rej5mnh.fsf@yandex.com> <87eeij8ebd.fsf@gmail.com> X-Face: BHjiJOg/Qmj'BQgsAKL@])L)e62P)C"Y=6T Date: Sun, 17 Jan 2021 21:19:31 +0000 In-Reply-To: <87eeij8ebd.fsf@gmail.com> (Tim Cross's message of "Mon, 18 Jan 2021 07:53:37 +1100") Message-ID: <875z3vmfbw.fsf@yandex.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux) Face: iVBORw0KGgoAAAANSUhEUgAAAGQAAAAeBAMAAAAodabAAAAAB3RJTUUH1wQdAAY04/L8hgAA AAlwSFlzAAAewQAAHsEBw2lUUwAAAARnQU1BAACxjwv8YQUAAAASUExURc7OzpwAAAAAAP////8A AGNj/2aqqTQAAAA8SURBVHjaYzA2NnEBAmdj01D8wNgYpM7F2JiBgYFREAgEGJiU8AMGBpA6QaCG UVtGbRm1ZdSWUVsGjS0Aq20lJnMawnkAAAAASUVORK5CYII= MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=5.45.198.241; envelope-from=m43cap@yandex.com; helo=forward101j.mail.yandex.net 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, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: , emacs-orgmode@gnu.org Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Migadu-Flow: FLOW_IN X-Migadu-Spam-Score: -1.26 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=yandex.com header.s=mail header.b=N+iHoGJD; dmarc=fail reason="SPF not aligned (relaxed)" header.from=yandex.com (policy=none); spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Migadu-Queue-Id: 664BF9402C8 X-Spam-Score: -1.26 X-Migadu-Scanner: scn1.migadu.com X-TUID: D7Xgjzbaqqb/ >>>>> Tim Cross writes: > Colin Baxter writes: >> Hi Tim, >> >> Thanks for you quick reply. >>>>>>> Tim Cross writes: >> >> > Colin Baxter writes: >> >> >> Hello, >> >> >> >> In the last few days org-publish no loner works for me, giving >> a >> lisp error: (void-function conkeror-minor-mode). The source >> of >> the problem is the line '(add-hook 'js-mode-hook >> >> 'conkeror-minor-mode)' in my init file. If I comment out the >> >> line, the error disappears. >> >> >> >> I've tried reverting a couple of recent commits in org-mode, >> but >> to no avail. I'd appreciate pointers as to the issue. >> >> >> >> I'm using emacs-27.1 with Org mode version 9.4.4 >> >> (release_9.4.4-186-g7fa817). >> >> >> >> > I suspect that is something related to your local configuration >> - > specifically in your Javascript setup hook. I don't think it >> has > anything to do with org. When org publish does its thing, >> it must > be loading js mode and that is triggering the error. >> >> > Emacs has deprecated conkeror support in the browse-url library >> > ecently (Emacs 28 I think), which has probably resulted in some >> > other packages removing conkeror support. My guess would be >> that > you have been using a package which adds conkeror support >> when > editing Javascript code (you could test this by opening a >> JS file > outside of org mode and see if you get the same error). >> >> I don't get this error editing a js outside of org-mode, >> unfortunately. In fact, conkeror-minor-mode-el still works. Ok, >> all it does is to send a js script to be evaluate by conkeror, >> but it still does exactly that. >> >> I intend to check - when I get time - if the CDATA @license-end >> stuff that org publish inserts is not responsible. >> > My guess would be that something has changed in your > configuration. Possibly something was previously doing a require > for conkeror-minor-mode.el before org is loaded which is no longer > there. You could try adding a (require 'conkeror-minor-mode) in > your customisation before org is loaded (or before org-publish is > loaded). I have now discovered the problem. You are correct. I had changed recently my init file, with the effect that conkeror-minor-mode was no longer loaded when I ran org publish, even though the hook was still present. I had changed things thinking it was a "simplification". I had forgotten "if it works don't touch it". Thanks for your help - sorry about the non-issue. Best wishes, Colin. -- Colin Baxter URL: http://www.Colin-Baxter.com