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

* Re: [Bug] org-version returns empty string when called uninteractively [9.4]
  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
  1 sibling, 0 replies; 4+ messages in thread
From: Nick Dokos @ 2021-01-27  0:43 UTC (permalink / raw)
  To: emacs-orgmode

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



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

* Re: [Bug] org-version returns empty string when called uninteractively [9.4]
  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
  1 sibling, 1 reply; 4+ messages in thread
From: Kyle Meyer @ 2021-01-27  1:05 UTC (permalink / raw)
  To: Jean-Léon HENRY; +Cc: emacs-orgmode@gnu.org

Jean-Léon HENRY writes:

> Hi,
>
> I just upgraded org to 9.4.4 and org-version is returning an empty string when called unineractively. More precisely
>[...]
> 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 the report.  I think this is the same issue as
<https://orgmode.org/list/87y2hi9qev.fsf@gmx.com>.  Org needs to be
adjusted for the new ELPA setup.


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

* Re: [Bug] org-version returns empty string when called uninteractively [9.4]
  2021-01-27  1:05 ` Kyle Meyer
@ 2021-02-05  6:26   ` Kyle Meyer
  0 siblings, 0 replies; 4+ messages in thread
From: Kyle Meyer @ 2021-02-05  6:26 UTC (permalink / raw)
  To: Jean-Léon HENRY; +Cc: emacs-orgmode@gnu.org

Kyle Meyer writes:

> Thanks for the report.  I think this is the same issue as
> <https://orgmode.org/list/87y2hi9qev.fsf@gmx.com>.  Org needs to be
> adjusted for the new ELPA setup.

Hopefully fixed by 61336f80d.


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