emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Max Nikulin <manikulin@gmail.com>
To: emacs-orgmode@gnu.org
Subject: Re: Why am I being told to use "straight.el"?
Date: Sat, 22 Apr 2023 22:53:36 +0700	[thread overview]
Message-ID: <u20vu2$15jl$1@ciao.gmane.io> (raw)
In-Reply-To: <87354swe10.fsf@yandex.com>

On 22/04/2023 14:51, Colin Baxter wrote:
>>>>>> Max Nikulin writes:
> 
>      > On 21/04/2023 23:17, Colin Baxter wrote:
> 
>      >     emacs -Q -l org-agenda
> 
> Only message and scratch buffers present.

C-h e to check messages, but since errors or warnings buffer does not 
appear it should be OK.

>      >> 1. emacs <RET>
> 
>      > Till `org-reload' C-c C-x ! at the step 10 org is not
>      > involved. Does you init file loads some Org component or some Org
>      > buffer is created at startup? To be sure
> 
>      >     M-: (featurep 'org)
> 
> "No match."

I would expect either nil or t. Did you press M-x that is 
`execute-extended-command' instead of M-: that is `eval-expression'? 
Alternatively you may execute in in the *scratch* buffer

     (featurep 'org)

and C-j or C-x C-e when cursor is immediately after the closing parenthesis.

>      >> 2. M-x vc-dir <RET> 3. Navigate to ~/git/org-mode.  4. + (to
>      >> pull) 5. M-x compile <RET> 6. make clean <RET> 7. make <RET>

> In the case of build org-mode, I first select "make clean" from the
> history of "M-x compile". Then I do "M-x compile" again and select "make"
> from the history. The effect is the same using the terminal, except the
> outputs are now contained in emacs buffers.

Thank you for explanation. For some reason I believed that M-x compile 
invokes make without additional prompt. So

     make clean; make

sounds perfectly reasonable.

>      >> 8. In an eshell buffer navigate to ~/git/emacs/lisp.
>      >> Typo! I meant navigate to ~/git/org-mode/lisp.
>      >> 9. rm *.elc <RET>
> 
>      > Why did you decided to manually delete *.elc files? I have lost at
>      > which step you got the warning. I expect that "make clean" should
>      > remove .elc files.
> 
> If I don't delete the elc files in ~/git/org-mode/lisp after the first
> build then I do get errors.

Do you mean that it happens on each update? No .elc files should survive 
"make clean". I have not tried to reproduce it accordingly to your 
steps, but I have seen something strange related to .el and .elc files 
while experimenting with package.el.

https://orgmode.org/worg/dev/org-build-system.html#orgd21575b
"Compatibility and Convenience" and
https://orgmode.org/worg/org-faq.html#keeping-current-with-Org-mode-development
suggests that

     make uncompiled

may be a shorter path to the same point.

However accordingly to your description I expect that you do not have 
Org loaded yet. If you can not load compiled org now it should cause an 
error after emacs restart as well.

>      > Is org-loaddefs loaded from ~/git/org-mode/lisp? It is a sanity
>      > check for working Org and more interesting when it is broken.
> 
> I think it must be because ~/git/org-mode/ is the first org-mode found
> and not the org-mode within emacs itself. How can I check?

     (car (assoc "/org-loaddefs.el" load-history (lambda (a b) 
(string-match-p b a))))

Evaluate it e.g. in the *scratch* buffer by C-j

I removed parts of your message where I do not have questions concerning 
provided info. Thank you for it.

You enumerated 16 steps, but It is still unclear to me at which one you 
got the warning mentioning straight.el. Sorry for annoyance. Certainly 
you need working Org, but I am interested in a recipe that leads to 
broken state despite it looks like a valid way to update org.




  reply	other threads:[~2023-04-22 15:54 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-04-21  9:42 Why am I being told to use "straight.el"? Colin Baxter
2023-04-21 11:04 ` Max Nikulin
2023-04-21 13:25   ` Colin Baxter
2023-04-21 14:16     ` Max Nikulin
2023-04-21 14:32       ` William Denton
2023-04-21 16:17       ` Colin Baxter
2023-04-21 19:13         ` Colin Baxter
2023-04-22  3:29         ` Max Nikulin
2023-04-22  7:51           ` Colin Baxter
2023-04-22 15:53             ` Max Nikulin [this message]
2023-04-22 19:12               ` Colin Baxter
2023-04-24 10:42                 ` Max Nikulin

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='u20vu2$15jl$1@ciao.gmane.io' \
    --to=manikulin@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).