emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Nick Dokos <ndokos@gmail.com>
To: emacs-orgmode@gnu.org
Subject: Re: [Bug] org-version returns empty string when called uninteractively [9.4]
Date: Tue, 26 Jan 2021 19:43:23 -0500	[thread overview]
Message-ID: <87ft2nyztg.fsf@alphaville.usersys.redhat.com> (raw)
In-Reply-To: lDDl5zhRHZUG_qHrsAO8lNBO8mDF2lbYCpbDpZymTATfsIT633DamkykwDvj5HD2fqp6Pmih7RVN8TgOUiSEiI9KSeuK7lqPSAnCKUhV67E=@protonmail.com

Jean-Léon HENRY <rabidax@protonmail.com> writes:

> Hi,
>
> I just upgraded org to 9.4.4 and org-version is returning an empty string when called
> unineractively. More precisely
>
> I started emacs with : emacs -Q -l minimal-org.el
> Contents of minimal-org.el :
>
> ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
> ;;; Minimal setup to load latest `org-mode'.
>
> ;; Activate debugging.
> (setq debug-on-error t
>       debug-on-signal nil
>       debug-on-quit nil)
>
> ;; Add latest Org mode to load path.
> (add-to-list 'load-path (expand-file-name "/home/me/.emacs.d/elpa/org-9.4.4/"))
> ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
>
> Then did :
> M-x org-version
>
> Result :
> "Org mode version  ( @ /home/me/.emacs.d/elpa/org-9.4.4/)"
>
> But when evaluated non-interactively :
> (org-version)
>
> Results :
> ""
>
> In my regular set-up, this breaks version checks used in other packages : (version<
> (org-version) "9.0") for example is called. This gives you the following backtrace :
> Debugger entered--Lisp error: (error "Invalid version syntax: ‘’ (must start with a number)
> ")
>   signal(error ("Invalid version syntax: ‘’ (must start with a number)"))
>   error("Invalid version syntax: `%s' (must start with a number)" "")
>   version-to-list("")
>   version<("" "9.0")
> [...]
>
> Thanks for your help
>

It does not do that for me:

   (org-version)
   "9.4.4"

-- 
Nick

"There are only two hard problems in computer science: cache
invalidation, naming things, and off-by-one errors." -Martin Fowler



  reply	other threads:[~2021-01-27  0:44 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-01-26 11:01 [Bug] org-version returns empty string when called uninteractively [9.4] Jean-Léon HENRY
2021-01-27  0:43 ` Nick Dokos [this message]
2021-01-27  1:05 ` Kyle Meyer
2021-02-05  6:26   ` Kyle Meyer

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87ft2nyztg.fsf@alphaville.usersys.redhat.com \
    --to=ndokos@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).