From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Eric Abrahamsen Newsgroups: gmane.emacs.devel Subject: Re: [ELPA] Package proposal: gnus-mock Date: Wed, 17 Oct 2018 10:47:29 -0700 Message-ID: <875zy0ea8e.fsf@ericabrahamsen.net> References: <87d0shr60b.fsf@ericabrahamsen.net> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1539798407 16273 195.159.176.226 (17 Oct 2018 17:46:47 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Wed, 17 Oct 2018 17:46:47 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Oct 17 19:46:43 2018 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gCpu6-00047t-Ea for ged-emacs-devel@m.gmane.org; Wed, 17 Oct 2018 19:46:42 +0200 Original-Received: from localhost ([::1]:38429 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gCpwC-0000rH-Ei for ged-emacs-devel@m.gmane.org; Wed, 17 Oct 2018 13:48:52 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:36053) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gCpv4-0000qO-PZ for emacs-devel@gnu.org; Wed, 17 Oct 2018 13:47:43 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gCpv0-0003a9-BZ for emacs-devel@gnu.org; Wed, 17 Oct 2018 13:47:42 -0400 Original-Received: from [195.159.176.226] (port=60741 helo=blaine.gmane.org) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gCpv0-0003Yq-3h for emacs-devel@gnu.org; Wed, 17 Oct 2018 13:47:38 -0400 Original-Received: from list by blaine.gmane.org with local (Exim 4.84_2) (envelope-from ) id 1gCpsq-0002mx-HX for emacs-devel@gnu.org; Wed, 17 Oct 2018 19:45:24 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 41 Original-X-Complaints-To: usenet@blaine.gmane.org Cancel-Lock: sha1:lM3aIFkTjAEtZujoaLw0MMPolMs= X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 195.159.176.226 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:230458 Archived-At: Stefan Monnier writes: >> I've just pushed the branch scratch/gnus-mock to ELPA, containing a >> package I'd like to add there. > > Looks great! Feel free to move it to a non-scratch branch (e.g. using > "Version: 0" if you still don't want to release it as a GNU ELPA package). > >> It's called "Gnus Mock", and provides a dummy test installation for >> Gnus, which you can use for working on Gnus features and testing Gnus >> bugs without endangering your own Gnus setup. I'm hoping this makes it >> easier to do work on Gnus -- it's often hard to hack on without a full >> working installation, and no one wants to risk their own mail on that. > > And here I was, thinking it was mostly designed for use by automated tests. > >> (defconst gnus-mock-data-dir >> (file-name-as-directory (expand-file-name >> "data" >> (file-name-directory load-file-name))) >> "Source directory for Gnus mock data.") >> >> That seems to work fine, but I wanted to check there wasn't a >> better/safer way to do it. > > I think that's about as good as it gets currently. > It's pretty reliable/safe in this use case (it gets more tricky if you > need to find such files during byte-compilation of your file). I went to install this properly (instead of running it from the Elpa repository), and realized that the data directory that's supposed to come with it doesn't get installed. The data directory is visible in the repo: https://git.savannah.gnu.org/cgit/emacs/elpa.git/tree/packages/gnus-mock But apparently doesn't get installed via the package manager. Is it getting filtered out by something else? Thanks, Eric