unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Stefan Monnier <monnier@IRO.UMontreal.CA>
To: Vitalie Spinu <spinuvit@gmail.com>
Cc: emacs-devel@gnu.org
Subject: Re: [elpa] master b6ac53b: * packages/math-symbol-lists/msl-build.el: Add copyright and license
Date: Tue, 07 May 2019 11:13:34 -0400	[thread overview]
Message-ID: <jwvzhnye20p.fsf-monnier+emacs@gnu.org> (raw)
In-Reply-To: <87ef5aicdh.fsf@gmail.com> (Vitalie Spinu's message of "Tue, 07 May 2019 16:10:34 +0200")

> Thanks! That file contains just dirty manual hacks to parse the symbol
> lists from various sources.  It's not intended to be loaded or used by
> other libraries.

That's what I figured, yes.
But since it's in `load-path` Emacs might still load it unexpectedly.

This said, I found that placing such "random code" within a dummy
(defun ...) wrapper solves this problem in a trivial way without any
significant downside (I actually found it to be helpful because the
defun's name helps me describe what this is about and often enough
I later discover that I actually did want a defun for that anyway ;-)

> I think the packager might get confused and think of it as a multi-file
> package.

Indeed, it will.

> What would be the recommended way to put it off the load path?
> Just store in a sub-dir?

You could do that, or you could keep it out of the tarball via
`.elpaignore`, but based on what you just said, maybe you just want to
add:

    ;; Package-Type: simple

to the header of math-symbol-lists.el?


        Stefan



      reply	other threads:[~2019-05-07 15:13 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <20190507123145.27618.34624@vcs0.savannah.gnu.org>
     [not found] ` <20190507123146.5DF3B20407@vcs0.savannah.gnu.org>
2019-05-07 14:10   ` [elpa] master b6ac53b: * packages/math-symbol-lists/msl-build.el: Add copyright and license Vitalie Spinu
2019-05-07 15:13     ` Stefan Monnier [this message]

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.gnu.org/software/emacs/

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

  git send-email \
    --in-reply-to=jwvzhnye20p.fsf-monnier+emacs@gnu.org \
    --to=monnier@iro.umontreal.ca \
    --cc=emacs-devel@gnu.org \
    --cc=spinuvit@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 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).