From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id CIVGJ5I1sGBNQQEAgWs5BA (envelope-from ) for ; Fri, 28 May 2021 02:13:06 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id QHkZI5I1sGD1NQAA1q6Kng (envelope-from ) for ; Fri, 28 May 2021 00:13:06 +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 A18CC176C0 for ; Fri, 28 May 2021 02:13:05 +0200 (CEST) Received: from localhost ([::1]:53448 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lmQ7a-0002vH-Cu for larch@yhetil.org; Thu, 27 May 2021 20:13:02 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:48298) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lmQ6R-0002v4-C4 for emacs-orgmode@gnu.org; Thu, 27 May 2021 20:11:51 -0400 Received: from mail-pj1-x1034.google.com ([2607:f8b0:4864:20::1034]:46675) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lmQ6O-0001tn-K1 for emacs-orgmode@gnu.org; Thu, 27 May 2021 20:11:51 -0400 Received: by mail-pj1-x1034.google.com with SMTP id pi6-20020a17090b1e46b029015cec51d7cdso1484688pjb.5 for ; Thu, 27 May 2021 17:11:44 -0700 (PDT) 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=gHhytUFfwFD9kH8oHAsyQSwRcnSppjuow/sQgs+PCAY=; b=fmJyj/aa1W7c8J0e38scpMkRUd8CpRCu3O9yTScNpu7bAyaNJyWbHhyD5rQRg1Rumc I1/DjyFeI3auk1uxH+978KIJqSrsrfRwiiXMQjELRtKEQh6KnKXyG0v9efM981oHCGeh fGXYAMjBAxtD7daBrZWeRev3gfRMHgAod/f/cdrknzYmYHmFSXFLc7uYFMdT3jAMa+hh KfReUZ65NqrgivoyyoYO8xZ6XRZxP1vfhZXOPJKMeg1CXsh4MSy8gKZaf6YeuTqxNBef QeDg9jvOGT4fLA6AWIyMQxwiWPiUJd6NX6C7tJ7I0h77odxdMSrhUa5CBI2fI0+Dsjzi Ayhw== 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=gHhytUFfwFD9kH8oHAsyQSwRcnSppjuow/sQgs+PCAY=; b=qLK/uxUcwVEn2pJuZ+CUFQV2pC9IIjNaf7gSkomPS+Ls1N8ywAJOFzIZSkr226Ma95 XFPHggBGB5rHoeWsepG68fBmUUOQ139fA37w+/ECD2hu2MFn6UFSr2qwiJDtGP0/GQ5N PYfgDMg+1Ml2Rkcq2p8ldkYGHKOqe2iAEM1SIJFlxwyOv4K75bzQeagBOPXw+pXeob9T bHd6A+DVn2VcfCaz0TcJemUGZYBtSKC4XXTdmxjWTqWQK+G1fuymZSxalHnA6gkIhAyY mzYB6Jq4d7eYF83cxpI6W9rSnVKFTL/1w0S0TJFBDAS0AqBTfyk2mb1o7nDdTcTPmoNO 5anQ== X-Gm-Message-State: AOAM530zJj6proQuHPHrxplkekgMmrIXB0cNgvAozMHfb3GE5V/qXJm/ iyoVSrhsCEI5wKsCaWIxk+bmHGUJ84Q= X-Google-Smtp-Source: ABdhPJzpcW7ww2Sre+JTLhFLtKBPoGbd2i0TAQMMh+44lDShedkXwOSK1hoOpzbArgquapDNIA52ng== X-Received: by 2002:a17:90a:7a89:: with SMTP id q9mr1265775pjf.0.1622160703603; Thu, 27 May 2021 17:11:43 -0700 (PDT) Received: from tim-desktop (106-69-76-74.dyn.iinet.net.au. [106.69.76.74]) by smtp.gmail.com with ESMTPSA id w197sm2778338pfc.5.2021.05.27.17.11.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 27 May 2021 17:11:43 -0700 (PDT) References: User-agent: mu4e 1.5.13; emacs 27.2.50 From: Tim Cross To: Richard Stanton Subject: Re: [BUG] New error: (void-function org-url-p) when exporting to LaTeX [9.4.6 (9.4.6-gc5573b @ /Users/stanton/.emacs.d/straight/build/org/)] Date: Fri, 28 May 2021 10:00:45 +1000 In-reply-to: Message-ID: <87lf7zn2dg.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=2607:f8b0:4864:20::1034; envelope-from=theophilusx@gmail.com; helo=mail-pj1-x1034.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: orgmode Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1622160786; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=gHhytUFfwFD9kH8oHAsyQSwRcnSppjuow/sQgs+PCAY=; b=hQiOpSQTThB5v+Tp+tKWz93r6vGWDCIOJYSWH7rj9XaMrsoU9yvJnvak+kQQZT1DzjSqTc Tbvv5f2s533Q+ilyhkgvh1wx61ozL1R/8XdW24AEOWBymsmPLMiuvgaDKsTblQBi7Dm+55 z2z4tKBb9KUEtrjoD7VX7NUgBX5+kMY52EVhb17dNKd8qXVUFwqq83tiLmMNyU+7gshYSN 33LQr2NFlm2DP2SWIDNPXO9Vxlale0ybkPFcbBzgjIf5rpRI+QG1oH2oa5rosEkhd0c9Nn ijX77z/VAXG8ffLawmBXXKegbQLTBo3x1Y48DHrDfBzedhDLcs41sULBIiU9PQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1622160786; a=rsa-sha256; cv=none; b=JA30p2fDQhxCn2ZYZJUmEWN/ZceMA65l0JFANkRdiXjfQEeO43WShWQ3e4/oapRZm6rpSo 09wQHzy6nsnC9S08nr/OrpCnyzEy+PyTMylZIDskboDEBLbcVKXcWIfjLiQ9AdRqsT+ukK ia2l7lRLeXZ0Q1el98KktY+qrlYsufCTbuBNfpYsWIHGqcl/UY3DLG+Zw0zWHwB+0aWJm/ kZIwZ19FqDQ+5tqVHmXrW/SiUcOvYKo6R9vwe7ZGVY/TmW8qA7hcLNnosBCvq+H6UuO6CJ EXlULcf5siakgUCK7u0p7G9A0cXscAo80qBFhNNcZfBP10MsCglU/9EYlTscgA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20161025 header.b="fmJyj/aa"; 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-Spam-Score: -3.13 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20161025 header.b="fmJyj/aa"; 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: A18CC176C0 X-Spam-Score: -3.13 X-Migadu-Scanner: scn0.migadu.com X-TUID: xXG0d6A9zlS/ Unfortunately, I don't know anything about straight.el. However, I note that the very first line of your grep is a line from the org-compat.el for version 9.5, so you are still getting mixed versions. My guess is that straight.el is installing from the master branch of the org repo rather than the maint branch. You then also install the contrib package from non-gnu ELPA, which has a dependency on org (the ELPA or orgmode.org version, which is 9.4). My advice would be to not use straight.el and just use the org package from ELPA (which will be in sync with the contrib package from nongnu ELPA) or use striaght.el for both org and contrib or ensure straight.el is using the maint branch and not the master branch. Richard Stanton writes: > Thanks, Tim. > > I deleted all org-related files and started again, with the same result. > > Oddly, I do find reference to org-url-p in my basic org setup: > > Richards-Mac-Pro:~/.emacs.d/straight/repos/org/lisp stanton$ grep -i org-url-p *.el > org-compat.el:(define-obsolete-function-alias 'org-file-url-p 'org-url-p "9.5") > org-lint.el: (and (not (org-url-p file)) > org-macs.el:(defun org-url-p (s) > org.el: (uri-is-url (org-url-p uri)) > org.el: (let* ((is-url (org-url-p file)) > org.el: (when (org-url-p file) > Richards-Mac-Pro:~/.emacs.d/straight/repos/org/lisp stanton$ > > I currently load org using straight.el as follows: > > (setq package-archives > '(("melpa" . "http://melpa.org/packages/") > ("gnu" . "http://elpa.gnu.org/packages/") > ("nongnu" . "http://elpa.gnu.org/nongnu/"))) > ;;; ("org" . "http://orgmode.org/elpa/"))) > > (use-package org-contrib > :after org > :config > (require 'ox-extra) > (ox-extras-activate '(ignore-headlines)) > ) > > (use-package org > :after (jupyter) > :straight t > :mode (("\\.org$" . org-mode)) > ; :ensure org-plus-contrib > :config > (org-babel-do-load-languages > 'org-babel-load-languages > '((jupyter . t))) > :bind > ("C-c l" . org-store-link) > ("C-c a" . org-agenda) > :init > (add-hook 'org-mode-hook (lambda () (setq-local company-minimum-prefix-length 0))) > > Best, > > Richard > > From: Tim Cross > To: emacs-orgmode@gnu.org > Subject: Re: [BUG] New error: (void-function org-url-p) when exporting > to LaTeX [9.4.6 (9.4.6-gc5573b @ > /Users/stanton/.emacs.d/straight/build/org/)] > Message-ID: <87tumomy05.fsf@gmail.com> > Content-Type: text/plain > > OK, think I've worked out what the problem is. > > The function org-url-p is defined in org 9.5, but not org 9.4. Your > running org 9.4.6, which does not have that function. The fact something > in your install is trying to call org-url-p would indicate you have a > mixed or messed up installation of org (i.e. your setup is loading code > from 2 different versions). > > It is very important when upgrading or installing org that no org > functionality is yet loaded to avoid this type of issue. Your best bet > is to remove all org related packages and then try installing org again. > If your using package.el to install org, make sure the call to install > it is early in your init file (before any functionality is loaded which > depends on org). I also find the use-pacakge macro very useful in this > regard as you can also setup things so that no org functionality is > loaded until you try to use something which depends on org. This means > you can typically start Emacs and immediately install/upgrade org > without any issues. Where people tend to come undone is when they have > been running Emacs for a while, have been using org and then to a > package update and the system tries to install a new version of org > (usually only an issue with new major versions rather than patch fix > version updates). > > Richard Stanton writes: > > Remember to cover the basics, that is, what you expected to happen and > what in fact did happen. You don't know how to make a good report? See > > https://orgmode.org/manual/Feedback.html#Feedback > > Your bug report will be posted to the Org mailing list. > ------------------------------------------------------------------------ > > Everything worked fine until yesterday, but today when I try to export an org file that contains the line > > #+SETUPFILE: https://fniessen.github.io/org-html-themes/org/theme-readtheorg.setup > > I get the following error: > > Debugger entered--Lisp error: (void-function org-url-p) > org-url-p("https://fniessen.github.io/org-html-themes/org/the...") > org--collect-keywords-1(("SETUPFILE" "FILETAGS" "TAGS" "ARCHIVE" "CATEGORY" "COLUMNS" "CONSTANTS" "LINK" "OPTIONS" "PRIORITIES" > "PROPERTY" "SEQ_TODO" "STARTUP" "TODO" "TYP_TODO") ("ARCHIVE" "CATEGORY" "COLUMNS" "PRIORITIES") nil nil nil) > org-collect-keywords(("FILETAGS" "TAGS" "ARCHIVE" "CATEGORY" "COLUMNS" "CONSTANTS" "LINK" "OPTIONS" "PRIORITIES" "PROPERTY" > "SEQ_TODO" > "STARTUP" "TODO" "TYP_TODO") ("ARCHIVE" "CATEGORY" "COLUMNS" "PRIORITIES")) > org-set-regexps-and-options() > org-mode() > org-export--prepare-file-contents("/Users/stanton/.org/setup" nil 0 1 1 # > "/Users/stanton/teaching/MFE230I/mfe230i.org") > org-export-expand-include-keyword() > org-export-as(latex nil nil nil (:output-file "mfe230i.tex")) > org-export-to-file(latex "mfe230i.tex" nil nil nil nil nil #f(compiled-function (file) #)) > org-latex-export-to-pdf(nil nil nil nil) > org-export-dispatch(nil) > funcall-interactively(org-export-dispatch nil) > call-interactively(org-export-dispatch nil nil) > command-execute(org-export-dispatch) > > Thanks for any suggestions. > > Emacs : GNU Emacs 27.2 (build 1, x86_64-apple-darwin20.3.0, Carbon Version 164 AppKit 2022.3) > of 2021-04-06 > Package: Org mode version 9.4.6 (9.4.6-gc5573b @ /Users/stanton/.emacs.d/straight/build/org/) > > -- > Tim Cross -- Tim Cross