all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* [BUG] warning message for straight-use-package [9.6 (9.6-gb2adb6 @ /Users/stephen/.emacs.d/straight/build/org/)]
@ 2022-12-30 16:39 Stephen Eglen
  2022-12-31  4:54 ` Richard Kim
  2022-12-31 13:14 ` Ihor Radchenko
  0 siblings, 2 replies; 3+ messages in thread
From: Stephen Eglen @ 2022-12-30 16:39 UTC (permalink / raw)
  To: emacs-orgmode

Hi,

I use straight.el for package management, and a recent package (I think
it was todoist.el) pulled in org-mode.  This then caused the warning
about mismatch between the org-mode in Emacs and the one from the repo.

I read the *Warning* and in particular this bit:

----------------------------------------------------------------------
3. New Org version is loaded using straight.el package manager and
   other package depending on Org is loaded before straight triggers
   loading of the newer Org version.

   It is recommended to put
    (straight-use-package ’org)
   early in the config.  Ideally, right after the straight.el
----------------------------------------------------------------------

so I copied the elisp straight into .emacs.  This then
generated an error, because the symbol 'org had been copied across as
’org.  

Checking the source, I see line 77 of org-macs.el has

     (straight-use-package 'org)

so I'm not sure what the fix is, but does anyone have any ideas on
providing a warning that uses the correct quote character?

Thanks, Stephen





Emacs  : GNU Emacs 29.0.50 (build 1, aarch64-apple-darwin21.6.0, NS appkit-2113.60 Version 12.5 (Build 21G72))
 of 2022-08-08
Package: Org mode version 9.6 (9.6-gb2adb6 @ /Users/stephen/.emacs.d/straight/build/org/)


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

* Re: [BUG] warning message for straight-use-package [9.6 (9.6-gb2adb6 @ /Users/stephen/.emacs.d/straight/build/org/)]
  2022-12-30 16:39 [BUG] warning message for straight-use-package [9.6 (9.6-gb2adb6 @ /Users/stephen/.emacs.d/straight/build/org/)] Stephen Eglen
@ 2022-12-31  4:54 ` Richard Kim
  2022-12-31 13:14 ` Ihor Radchenko
  1 sibling, 0 replies; 3+ messages in thread
From: Richard Kim @ 2022-12-31  4:54 UTC (permalink / raw)
  To: emacs-orgmode

Stephen Eglen <sje30@cam.ac.uk> writes:

> Checking the source, I see line 77 of org-macs.el has
>
>      (straight-use-package 'org)
>
> so I'm not sure what the fix is, but does anyone have any ideas on
> providing a warning that uses the correct quote character?

The correct character is the usual 7-bit single quote, i.e., the line
you have here correct.

My straight.el setup is done in early-init.el rather than in .emacs. I
also have (straight-use-package 'org) in early-init.el to make sure that
org version I want (which is the one installed by straight.el) is used.
I've had this setup for years, and I have never run into another org
mode getting installed by package.el to cause problems.



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

* Re: [BUG] warning message for straight-use-package [9.6 (9.6-gb2adb6 @ /Users/stephen/.emacs.d/straight/build/org/)]
  2022-12-30 16:39 [BUG] warning message for straight-use-package [9.6 (9.6-gb2adb6 @ /Users/stephen/.emacs.d/straight/build/org/)] Stephen Eglen
  2022-12-31  4:54 ` Richard Kim
@ 2022-12-31 13:14 ` Ihor Radchenko
  1 sibling, 0 replies; 3+ messages in thread
From: Ihor Radchenko @ 2022-12-31 13:14 UTC (permalink / raw)
  To: Stephen Eglen; +Cc: emacs-orgmode

Stephen Eglen <sje30@cam.ac.uk> writes:

> I use straight.el for package management, and a recent package (I think
> it was todoist.el) pulled in org-mode.  This then caused the warning
> about mismatch between the org-mode in Emacs and the one from the repo.
>
> I read the *Warning* and in particular this bit:
>
> ----------------------------------------------------------------------
> 3. New Org version is loaded using straight.el package manager and
>    other package depending on Org is loaded before straight triggers
>    loading of the newer Org version.
>
>    It is recommended to put
>     (straight-use-package ’org)
>    early in the config.  Ideally, right after the straight.el
> ----------------------------------------------------------------------
>
> so I copied the elisp straight into .emacs.  This then
> generated an error, because the symbol 'org had been copied across as
> ’org.  

Thanks for reporting!
Fixed on bugfix.
https://git.savannah.gnu.org/cgit/emacs/org-mode.git/commit/?id=62dc49509

-- 
Ihor Radchenko // yantar92,
Org mode contributor,
Learn more about Org mode at <https://orgmode.org/>.
Support Org development at <https://liberapay.com/org-mode>,
or support my work at <https://liberapay.com/yantar92>


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

end of thread, other threads:[~2022-12-31 13:14 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-12-30 16:39 [BUG] warning message for straight-use-package [9.6 (9.6-gb2adb6 @ /Users/stephen/.emacs.d/straight/build/org/)] Stephen Eglen
2022-12-31  4:54 ` Richard Kim
2022-12-31 13:14 ` Ihor Radchenko

Code repositories for project(s) associated with this external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.