emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* [Bug] org-version returns empty string when called uninteractively [9.4]
@ 2021-01-26 11:01 Jean-Léon HENRY
  2021-01-27  0:43 ` Nick Dokos
  2021-01-27  1:05 ` Kyle Meyer
  0 siblings, 2 replies; 4+ messages in thread
From: Jean-Léon HENRY @ 2021-01-26 11:01 UTC (permalink / raw)
  To: emacs-orgmode@gnu.org

[-- Attachment #1: Type: text/plain, Size: 1157 bytes --]

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

[-- Attachment #2: Type: text/html, Size: 1822 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2021-02-05  6:27 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
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
2021-01-27  1:05 ` Kyle Meyer
2021-02-05  6:26   ` Kyle Meyer

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).