From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id mBqgArmmBGBCDwAA0tVLHw (envelope-from ) for ; Sun, 17 Jan 2021 21:06:01 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id ABMDOrimBGAyRgAAB5/wlQ (envelope-from ) for ; Sun, 17 Jan 2021 21:06:00 +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 6FC9E940418 for ; Sun, 17 Jan 2021 21:06:00 +0000 (UTC) Received: from localhost ([::1]:35432 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1l1FFG-0005Le-4R for larch@yhetil.org; Sun, 17 Jan 2021 16:05:58 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:46528) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l1FEe-0005LW-Kf for emacs-orgmode@gnu.org; Sun, 17 Jan 2021 16:05:20 -0500 Received: from mail-pl1-x62a.google.com ([2607:f8b0:4864:20::62a]:37722) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1l1FEa-0004h2-Ax for emacs-orgmode@gnu.org; Sun, 17 Jan 2021 16:05:20 -0500 Received: by mail-pl1-x62a.google.com with SMTP id be12so7525228plb.4 for ; Sun, 17 Jan 2021 13:05:15 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=references:user-agent:from:to:cc:subject:date:in-reply-to :message-id:mime-version; bh=QSntjXdciQ6gTJCzdAaWOy97TBDcgMmnOX0pci0koMI=; b=hxPia5L3ClrUuddcfVGxp/OLWqqPbDjBburrqTGj3RMQEker92GahG4XshDZ+jgh/B yJj8oZYoc1qd4MNA9s8MGuDvsIDwcFq+YLrG+LnOzwYtd40k1OFZcw6B+xOJdFG+OeQw EjEqI7T0RXUtyJWbCKu6g/2hlv3TnewlL1+rkmO/5Y63yZDznHZF5NNEagCEwOHTYpKS iA43SlZB+FZhXxv0ZfzfpMxispanxFpoMPbBjFjw9K+go4xOqIkT+WiODd/CyXCoKHjD r8tNKw5INDF+GqUxgqBtOj+YWTKVC3JCRlkMPuVB0HSuuEvV/MnEtxhJXjUDwNX04P4Y iGmg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:references:user-agent:from:to:cc:subject:date :in-reply-to:message-id:mime-version; bh=QSntjXdciQ6gTJCzdAaWOy97TBDcgMmnOX0pci0koMI=; b=QPOZ0Kg4JXUwsSOinDHqCVHfELvmLBTfQgkbFXkHFanPmFriS+WIqXrkW+u74pHhBH DeZjHkDfXE5lPMbi64VU4rki27JrpoPREJSMA+W7MO9lFJHZb8SUV2bmHCkbqqLV5I1b 8X2SzioPecF0fTwDBerhk1avOJeNU45LZT16wbJ4LEGuQAB6KCYYtafU7GW/YAgcXzu8 4iRUb0sjmqoDfk3txq8aAYxBfP1lDFervtp5SFykia6BWknLQrWawceBB5wYPj5NEb6y +WS/5eQiR7mSvx2bAHLqD5RkDWpPU6EFTkAxMHBdxHb28WBwAQfl3eENDe1UOFhdf6LR I6LQ== X-Gm-Message-State: AOAM530Ws2xoPctCGXjA6qPI63X11UdLZtYKGFbhununswpmcVgZdNqg 5IhuSMUW7WC0kb0mcxML99o48AzBD+CmDg== X-Google-Smtp-Source: ABdhPJwB0IP4Mse4RetbVU3yYVnaEPgC7wYcppB3SP/z35beD2BLe4TYxrpHxlncYlqIH9KeJuJwfQ== X-Received: by 2002:a17:902:eec4:b029:de:aa86:5269 with SMTP id h4-20020a170902eec4b02900deaa865269mr2624587plb.66.1610917514743; Sun, 17 Jan 2021 13:05:14 -0800 (PST) Received: from tim-desktop (106-69-97-42.dyn.iinet.net.au. [106.69.97.42]) by smtp.gmail.com with ESMTPSA id c17sm1994284pfi.88.2021.01.17.13.05.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 17 Jan 2021 13:05:14 -0800 (PST) References: <875z3v5srj.fsf@yandex.com> <87h7nf8iaw.fsf@gmail.com> <871rej5mnh.fsf@yandex.com> User-agent: mu4e 1.5.7; emacs 28.0.50 From: Tim Cross To: Colin Baxter Subject: Re: org-publish error with java hook Date: Mon, 18 Jan 2021 07:53:37 +1100 In-reply-to: <871rej5mnh.fsf@yandex.com> Message-ID: <87eeij8ebd.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=2607:f8b0:4864:20::62a; envelope-from=theophilusx@gmail.com; helo=mail-pl1-x62a.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 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_NONE=-0.0001, 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: -3.06 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20161025 header.b=hxPia5L3; dmarc=pass (policy=none) header.from=gmail.com; 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: 6FC9E940418 X-Spam-Score: -3.06 X-Migadu-Scanner: scn1.migadu.com X-TUID: tRauGO0ZIyfn 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). You could also try loading a JS file by hand and then load an org file and try to run org-publish. I suspect it will work, which would confirm the issue is that nothing has loaded conkeror-minor-mode at the time you try to do org-publish. -- Tim Cross