all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: dhruva <dhruvakm@gmail.com>
To: Leo <sdl.web@gmail.com>, "Richard Stallman" <rms@gnu.org>
Cc: emacs-devel@gnu.org
Subject: Re: A plea for dynamically loadable extension modules
Date: Sun, 19 Aug 2007 08:52:29 +0530	[thread overview]
Message-ID: <e3f230850708182022l45d3b24p4627523ddaeddc1@mail.gmail.com> (raw)
In-Reply-To: <m2k5rs1f6n.fsf@cam.ac.uk>

Hi,

On 8/19/07, Leo <sdl.web@gmail.com> wrote:
> But is it OK to include this patch¹ in Emacs? It allows C DEFUN
> functions to be placed in external libraries and dynamically loaded when
> they were needed.

I personally feel it would be an extremely nice feature to have the
above functionality in Emacs. If the concern is to make sure such
libraries are released under GPL, I propose the following method:

1. All dynamic libraries loaded dynamically (through explicit call to
LoadLibrary/dlopen) must expose a function 'IsGPLed'
2. In main Emacs, we load it and look for that function
(GetProcAdderess/dlsym) and execute if found. It could return a
'bool'.
3. The absence of the function or a false return can prevent loading
that extension library
4. We could cover the meaning and legal bindings of having 'IsGPLed'
somewhere in the license and it is the responsibility of the
library/owner to make sure it is completely covered under GPL if the
function is implemented to return 'true' and Emacs does not take any
responsibility beyond checking for the function and it's return value
and no more.

Would this be a feasible approach?

-dky

-- 
Dhruva Krishnamurthy
Contents reflect my personal views only!

  reply	other threads:[~2007-08-19  3:22 UTC|newest]

Thread overview: 25+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-07-30 12:16 A plea for dynamically loadable extension modules Mario Lang
2003-07-30 12:42 ` Nic
2003-07-30 13:13   ` Kenichi Handa
2003-08-01  2:20     ` Richard Stallman
2003-07-30 13:43   ` Mario Lang
2003-07-30 14:24     ` Jason Rumney
2003-07-30 14:40       ` Mario Lang
2003-07-30 15:25   ` Paul Jarc
2003-08-01  2:20     ` Richard Stallman
2003-08-01 15:44       ` Paul Jarc
2003-08-04  0:08         ` Richard Stallman
2003-07-30 19:02   ` Kevin Rodgers
2007-08-17 21:30   ` Leo
2007-08-19  0:45     ` Richard Stallman
2007-08-19  1:33       ` Leo
2007-08-19  3:22         ` dhruva [this message]
2007-08-19  7:59           ` Stephen J. Turnbull
2007-08-19 12:51           ` Thien-Thi Nguyen
2007-08-19 13:06           ` David Hansen
2007-08-19 22:30             ` Richard Stallman
2007-08-19 22:31         ` Richard Stallman
2003-07-31  4:10 ` Stephen J. Turnbull
2003-07-31  7:56   ` David Kastrup
2003-07-31  9:59     ` Stephen J. Turnbull
2003-07-31 18:57       ` Alex Schroeder

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=e3f230850708182022l45d3b24p4627523ddaeddc1@mail.gmail.com \
    --to=dhruvakm@gmail.com \
    --cc=emacs-devel@gnu.org \
    --cc=rms@gnu.org \
    --cc=sdl.web@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.