all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Reporting Lisp errors in dynamic modules
@ 2015-11-27 11:07 Eli Zaretskii
  2015-11-27 11:20 ` Aurélien Aptel
  2015-11-27 16:40 ` Philipp Stephani
  0 siblings, 2 replies; 17+ messages in thread
From: Eli Zaretskii @ 2015-11-27 11:07 UTC (permalink / raw)
  To: emacs-devel; +Cc: aurelien.aptel+emacs, tzz, dancol, p.stephani2

With the latest emacs-25 branch, load modules/mod-test/mod-test.so,
then evaluate '(mod-test-sum "1" 2)'.  The backtrace that pops up is
this:

  Debugger entered--Lisp error: (wrong-type-argument integerp "1")
    #<subr module-call>(#<save-value <pointer 00fdab90> <unused> <unused> <unused>> ("1" 2))
    mod-test-sum("1" 2)
    eval((mod-test-sum "1" 2) nil)
    elisp--eval-last-sexp(nil)
    eval-last-sexp(nil)
    funcall-interactively(eval-last-sexp nil)
    call-interactively(eval-last-sexp nil nil)
    command-execute(eval-last-sexp)

I believe the line with "<subr module-call>" is suboptimal, in that it
looks alien and includes all kinds of unneeded and weirdly formatted
data.  AFAIU, the reason is that we deliberately unintern module-call.
Should we perhaps reconsider that decision, so that the backtrace is
in more familiar form?  What exactly are the dangers of having
module-call exposed as any other primitive?



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

end of thread, other threads:[~2015-12-07 19:13 UTC | newest]

Thread overview: 17+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-11-27 11:07 Reporting Lisp errors in dynamic modules Eli Zaretskii
2015-11-27 11:20 ` Aurélien Aptel
2015-11-27 11:46   ` Eli Zaretskii
2015-11-27 12:49     ` Aurélien Aptel
2015-11-27 12:53       ` David Kastrup
2015-11-27 14:50       ` Eli Zaretskii
2015-11-27 16:40 ` Philipp Stephani
2015-11-27 17:39   ` Eli Zaretskii
2015-11-27 18:01     ` Philipp Stephani
2015-11-27 18:11       ` Eli Zaretskii
2015-11-27 18:40         ` Philipp Stephani
2015-11-28 12:04           ` Eli Zaretskii
2015-12-03  5:00   ` Stefan Monnier
2015-12-03 11:33     ` Aurélien Aptel
2015-12-03 13:42       ` Ted Zlatanov
2015-12-03 15:37       ` Stefan Monnier
2015-12-07 19:13       ` Philipp Stephani

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.