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: Question about defcustom and :set-after Date: Mon, 30 Apr 2018 18:33:00 -0700 Message-ID: <87muxk17oz.fsf@ericabrahamsen.net> References: <87vac8z1lv.fsf@ericabrahamsen.net> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1525138463 21049 195.159.176.226 (1 May 2018 01:34:23 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Tue, 1 May 2018 01:34:23 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) Cc: emacs-devel@gnu.org To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue May 01 03:34:19 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 1fDKBO-0005NL-PF for ged-emacs-devel@m.gmane.org; Tue, 01 May 2018 03:34:18 +0200 Original-Received: from localhost ([::1]:34442 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fDKDT-0005z8-PT for ged-emacs-devel@m.gmane.org; Mon, 30 Apr 2018 21:36:27 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:58794) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fDKCt-0005z2-0t for emacs-devel@gnu.org; Mon, 30 Apr 2018 21:35:51 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fDKCp-0006QP-Rj for emacs-devel@gnu.org; Mon, 30 Apr 2018 21:35:51 -0400 Original-Received: from mail.ericabrahamsen.net ([50.56.99.223]:55906) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1fDKCp-0006PC-Mk for emacs-devel@gnu.org; Mon, 30 Apr 2018 21:35:47 -0400 Original-Received: from localhost (174-21-181-71.tukw.qwest.net [174.21.181.71]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) (Authenticated sender: eric@ericabrahamsen.net) by mail.ericabrahamsen.net (Postfix) with ESMTPSA id 0338DC04F5; Tue, 1 May 2018 01:35:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mail.ericabrahamsen.net; s=mail; t=1525138541; bh=IGsw5tZTcHKiN7stqBG5dIIgFEo7KtH4XWjxEeWpPVg=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From; b=Iuwyi/4e2Z6i5QdR3bKjJDzcwD0s45azJVOS+Q1g0FTQAaYwmrEMdqS78+rJsGf8X pWo44mMV+qB9cQwPAiBj3J+3qqR/rikwwcwMlgrbN5BIu3itGP6DIJoqHN1KlDenaN IHg4el0WHjp57M/6MTIc0P4/To4qALnTGd+WmHMM= In-Reply-To: (Stefan Monnier's message of "Mon, 30 Apr 2018 20:37:07 -0400") X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 50.56.99.223 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:225005 Archived-At: Stefan Monnier writes: >> So I started writing support for a Gnus mock environment: you call >> `gnus-mock' and it starts up a Gnus session completely independent of >> your own Gnus customizations, that has some dummy data in it that gets >> flushed and restored each time you restart the mock session. > > Sounds really useful. > >> That involves saving all relevant customizations (and some defvars) and >> putting them aside, then setting all customization options (and some >> defvars) back to their default values, and starting Gnus. > > Are you intending this mock environment to be used from a running Emacs > session or from "emacs -Q"? Being entirely too lazy, I intended it to be run from a running Emacs session. I was imagining it as sort of a "gnus -Q", as in "please submit a repro starting with `gnus-mock'". But realistically that's a dumb idea, and it should be made to be used from "emacs -Q". That would completely obviate the need for all this custom-variable tomfoolery. Maybe that stuff could be quietly added but not encouraged. The question remains, though: I think several of Gnus' defcustom's might need :set-after clauses. Eric