all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Philipp Stephani <p.stephani2@gmail.com>
To: Sanel Zukan <sanelz@gmail.com>
Cc: 47318@debbugs.gnu.org
Subject: bug#47318: 26.3; Modules on Emacs 26.3 broken?
Date: Sun, 28 Mar 2021 18:36:32 +0200	[thread overview]
Message-ID: <CAArVCkS1dC3qzc1bF52UyH-42e=7aHhOsjy1YWPrMPJgszjNEw@mail.gmail.com> (raw)
In-Reply-To: <87czvk5vpo.fsf@example.com>

Am Sa., 27. März 2021 um 18:53 Uhr schrieb Sanel Zukan <sanelz@gmail.com>:
>
>
> Philipp <p.stephani2@gmail.com> writes:
> > Could you please explain precisely what you're trying to do, starting from 'emacs -Q'?  Thanks.
>
> Sure! I'm going to use that mymod example.
>
>  1. Start emacs 26.3 with:
>     "~/programs/emacs/emacs-26.3/src/emacs -Q"
>
>  2. Run in *scratch* (or minibuffer):
>     (load "/home/sanel/programs/emacs/module-test/mymod.so")
>
>  Loading without ".so" extesions also works.
>
>  3. This will return 't'.
>
>  4. After mymod.so is loaded, 'mymod-test' function should be defined.
>
>  5. In *scratch* or minibuffer, running: (fboundp 'mymod-test) => nil.
>
> Also, evaliuating '(mymod-test)' will throw this error:
>
>   Debugger entered--Lisp error: (void-function mymod-test)
>     (mymod-test)
>     eval((mymod-test) nil)
>     elisp--eval-last-sexp(t)
>     eval-last-sexp(t)
>     eval-print-last-sexp(nil)
>     funcall-interactively(eval-print-last-sexp nil)
>     call-interactively(eval-print-last-sexp nil nil)
>     command-execute(eval-print-last-sexp)
>

I can't reproduce that, sorry. Both the fboundp check and calling the
function work as expected for me. I've compiled the module as
described in http://diobla.info/blog-archive/modules-tut.html.

>
> Replicating the same steps in emacs 27.2, in the step 4. it will
> return 't' and when '(mymod-test)' is called, it will return 42.
>
> Best regards,
> Sanel
>
> >>
> >> Any idea what could go wrong?
> >>
> >> Best regards,
> >> Sanel
> >>
> >> Philipp Stephani <p.stephani2@gmail.com> writes:
> >>> Am Mo., 22. März 2021 um 14:14 Uhr schrieb Sanel Zukan <sanelz@gmail.com>:
> >>>>
> >>>> Hi guys,
> >>>>
> >>>> I'm getting this [1] error from freshly compiled Emacs 26.3 and
> >>>> vterm-module.
> >>>>
> >>>> Also, emacs-eject [2] and very simple module [3] fails on 26.3 with the
> >>>> similar error. However, they are working fine on 27.1.
> >>>>
> >>>> Any idea what could go wrong? I also tried to run bare Emacs with
> >>>> 'emacs -Q'. In the all cases, Emacs is compiled with modules support.
> >>>>
> >>>> [1] https://github.com/akermu/emacs-libvterm/issues/181
> >>>> [2] https://github.com/syohex/emacs-eject
> >>>> [3] http://diobla.info/blog-archive/modules-tut.html
> >>>>
> >>>
> >>> https://debbugs.gnu.org/cgi/bugreport.cgi?bug=30164 is probably at
> >>> least part of the answer.
> >>> However, loading modules in general should still work, even in Emacs
> >>> 26. Do you also get errors when loading the module file directly with
> >>> `load' instead of `require'?





  reply	other threads:[~2021-03-28 16:36 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-03-22 13:13 bug#47318: 26.3; Modules on Emacs 26.3 broken? Sanel Zukan
2021-03-22 13:39 ` Philipp Stephani
2021-03-23 21:41   ` Sanel Zukan
2021-03-27 15:39     ` Philipp
2021-03-27 17:53       ` Sanel Zukan
2021-03-28 16:36         ` Philipp Stephani [this message]
2021-03-29  9:16           ` Sanel Zukan
2022-06-26 18:25 ` Lars Ingebrigtsen

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

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

  git send-email \
    --in-reply-to='CAArVCkS1dC3qzc1bF52UyH-42e=7aHhOsjy1YWPrMPJgszjNEw@mail.gmail.com' \
    --to=p.stephani2@gmail.com \
    --cc=47318@debbugs.gnu.org \
    --cc=sanelz@gmail.com \
    /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 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.