unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* External programs and resources
@ 2004-09-01 22:21 Lennart Borgman
  2004-09-02 18:10 ` Stefan Monnier
  0 siblings, 1 reply; 6+ messages in thread
From: Lennart Borgman @ 2004-09-01 22:21 UTC (permalink / raw)


I have not been able to find a common entrypoint for external resources from
Emacs. I would for example appreciate if there was only one place where the
path to a program like Ghostview was entered.

I would suggest that customization of things like this should be in one or
several lisp modules that could be used by other modules.

My apologies if this has already been done or discussed before.

- Lennart

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

* Re: External programs and resources
  2004-09-01 22:21 External programs and resources Lennart Borgman
@ 2004-09-02 18:10 ` Stefan Monnier
  2004-09-02 23:27   ` Lennart Borgman
  0 siblings, 1 reply; 6+ messages in thread
From: Stefan Monnier @ 2004-09-02 18:10 UTC (permalink / raw)
  Cc: Emacs Devel

> I have not been able to find a common entrypoint for external resources from
> Emacs. I would for example appreciate if there was only one place where the
> path to a program like Ghostview was entered.

> I would suggest that customization of things like this should be in one or
> several lisp modules that could be used by other modules.

> My apologies if this has already been done or discussed before.

It might be a good idea, but since packages are developed separately by
manny people who don't know each other, it's not always so easy (especially
because you also still want to be able to specify different values
sometimes, because you might sometimes want to use one version of `gv' for
one package and another for some other package).

In the short term, the best we can do is find those redundant customizations
and unify them.  Which ones were you thinking of?


        Stefan

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

* Re: External programs and resources
  2004-09-02 18:10 ` Stefan Monnier
@ 2004-09-02 23:27   ` Lennart Borgman
  2004-09-04  3:29     ` Richard Stallman
  2004-09-04 12:08     ` Alex Schroeder
  0 siblings, 2 replies; 6+ messages in thread
From: Lennart Borgman @ 2004-09-02 23:27 UTC (permalink / raw)
  Cc: Emacs Devel

----- Original Message ----- 
From: "Stefan Monnier" <monnier@iro.umontreal.ca>


> > I have not been able to find a common entrypoint for external resources
from
> > Emacs. I would for example appreciate if there was only one place where
the
> > path to a program like Ghostview was entered.
>
> > I would suggest that customization of things like this should be in one
or
> > several lisp modules that could be used by other modules.
>
> It might be a good idea, but since packages are developed separately by
> manny people who don't know each other, it's not always so easy
(especially
> because you also still want to be able to specify different values
> sometimes, because you might sometimes want to use one version of `gv' for
> one package and another for some other package).

Maybe this can be resolved rather easily, at least in principle. The
organisation could perhaps be like this:

- A common elisp module (ext-prog.el?) where for each external program used
by emacs there is a "defcustom" variable for its path. If not set this could
be initialized by executable-find perhaps.

- If a lisp module is using an external program listed in "ext-prog.el" it
can use the corresponding variable.

- If this module however want to give the possibility to use another version
of the program than the one pointed to by the "ext-prog.el" variable it can
define a function that uses a NON-"defcustom" variable defined in this
package
if it is set, otherwise the "ext-prog.el" variable. (I think it would be
confusing to have the second, module-specific variable defcustom too.)

- A customization group, maybe named "external-programs"?

> In the short term, the best we can do is find those redundant
customizations
> and unify them.  Which ones were you thinking of?

At the moment I was only thinking of Ghostview and it relatives.

- Lennart

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

* Re: External programs and resources
  2004-09-02 23:27   ` Lennart Borgman
@ 2004-09-04  3:29     ` Richard Stallman
  2004-09-05 22:16       ` Lennart Borgman
  2004-09-04 12:08     ` Alex Schroeder
  1 sibling, 1 reply; 6+ messages in thread
From: Richard Stallman @ 2004-09-04  3:29 UTC (permalink / raw)
  Cc: monnier, emacs-devel

I don't think we should make rearrangements such as this now.
We are trying to move towards making a release.

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

* Re: External programs and resources
  2004-09-02 23:27   ` Lennart Borgman
  2004-09-04  3:29     ` Richard Stallman
@ 2004-09-04 12:08     ` Alex Schroeder
  1 sibling, 0 replies; 6+ messages in thread
From: Alex Schroeder @ 2004-09-04 12:08 UTC (permalink / raw)
  Cc: Stefan Monnier, Emacs Devel

"Lennart Borgman" <lennart.borgman.073@student.lu.se> writes:

> - A customization group, maybe named "external-programs"?

Normally developers define a group, and when defining variables, they
assign the group with it.

Custom allows you to do the inverse, too:  Define a group together
with all the variables belonging to it -- the members.  Therefore
somebody could get started working on something like that, and post
his defgroup statement here for others to consider.  Once we are
happy, such a file would be easy to add to Emacs -- no other files are
touched!  And it wouldn't run against the feature freeze.  :)

There is a page on the Emacs Wiki, for example, where people tried to
collect the variables newbies are most likely to customize so that we
can just offer them in a "Most Useful" group or something like that.
Unfortunately, it seems that people lost interest (including me,
ahem).

Alex.
-- 
.O.  http://www.emacswiki.org/alex/
..O  Schroeder's fifth law:
OOO  Never accept more work than you can handle in one night of hacking.

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

* Re: External programs and resources
  2004-09-04  3:29     ` Richard Stallman
@ 2004-09-05 22:16       ` Lennart Borgman
  0 siblings, 0 replies; 6+ messages in thread
From: Lennart Borgman @ 2004-09-05 22:16 UTC (permalink / raw)
  Cc: monnier, emacs-devel

Good point, I will keep it off the list until later.

----- Original Message ----- 
From: "Richard Stallman" <rms@gnu.org>


> I don't think we should make rearrangements such as this now.
> We are trying to move towards making a release.

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

end of thread, other threads:[~2004-09-05 22:16 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-09-01 22:21 External programs and resources Lennart Borgman
2004-09-02 18:10 ` Stefan Monnier
2004-09-02 23:27   ` Lennart Borgman
2004-09-04  3:29     ` Richard Stallman
2004-09-05 22:16       ` Lennart Borgman
2004-09-04 12:08     ` Alex Schroeder

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.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).