From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: =?UTF-8?Q?Cl=c3=a9ment_Pit-Claudel?= Newsgroups: gmane.emacs.devel Subject: Re: Updating defcustoms of a loaded library Date: Fri, 21 Jul 2017 19:51:13 +0200 Message-ID: <75eee202-99ad-29f1-bdc0-34ca7a85336e@gmail.com> References: <87shhpsnvd.fsf@rosalinde> <2afff865-ff68-f607-f66c-a08f6e996e1c@gmail.com> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Trace: blaine.gmane.org 1500659564 22704 195.159.176.226 (21 Jul 2017 17:52:44 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Fri, 21 Jul 2017 17:52:44 +0000 (UTC) User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.2.1 To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Jul 21 19:52:37 2017 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 1dYc6L-0005Nb-Lt for ged-emacs-devel@m.gmane.org; Fri, 21 Jul 2017 19:52:33 +0200 Original-Received: from localhost ([::1]:44268 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dYc6R-0005uF-Eb for ged-emacs-devel@m.gmane.org; Fri, 21 Jul 2017 13:52:39 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:58661) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dYc5A-0005Zq-2E for emacs-devel@gnu.org; Fri, 21 Jul 2017 13:51:22 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dYc56-0000Kg-3j for emacs-devel@gnu.org; Fri, 21 Jul 2017 13:51:20 -0400 Original-Received: from mail-wr0-x22e.google.com ([2a00:1450:400c:c0c::22e]:37616) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dYc55-0000KL-T1 for emacs-devel@gnu.org; Fri, 21 Jul 2017 13:51:16 -0400 Original-Received: by mail-wr0-x22e.google.com with SMTP id 33so28616195wrz.4 for ; Fri, 21 Jul 2017 10:51:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-language:content-transfer-encoding; bh=FrYKHTRUYJMy8x1rsH8O5ozJh1/DLaeSN3XabSu10EQ=; b=g4tr5eMPQkb05Z6K/KQ/N97ILpqs05Twd5Wv2BAKKCGeYc4Z2NzuEoEEP5Z0rzb1o6 jh2GZ3j1EMWKzal0daGyQ25AIHixpzYezjDVI76ealRonB6bISjsInGBbMtyMkNmUmj+ BGyFG5ME4HMdhY4+LBFhbh5h0cA9Xql53QgA4rdcz+PFDkk3qq/P04xQsjHwLtVo2E+9 NAkfRzQ740fshmTnanaFAlM2I4jYuibaW4b+Eh74dBzhZsIZ/8vsmsz6EUE771ZnDQ8M +Jrtskc0lTrzRb1th5d/B+jgLya1l3V8ZI477pc88DTbFVOklC1ISWut5Wvy9NszZjuH yPJw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=FrYKHTRUYJMy8x1rsH8O5ozJh1/DLaeSN3XabSu10EQ=; b=sWH8zgIeoZ7m4IZy3ji+oGNfeIWMb8svuNpC2M4IldvGlEbZJoEgNqx6hCWPSLIpjN buvg3woj5KucvvtZPDB2t/rvD5zD9/t0/lkoZmhXYpkpu6PwZmLIsV0w3tDNIYH/IW4D QjfzOhRWG6PK/5VIpJaMMsPxSpur5tk8by9yDXl9TQvHJAH20VYK/UTC3tbfovi4HBgQ GSoz2+7/GfCxxF9as4x49yRSDE7dnhSnSmwTBFQD25koN14ZG3P/RRT9UpQO+dHbBy3T ygV2g8yFY6oCiheaDfbBjuGZmACrJCNBawg8nX1TDiwijgx7DGg3p/XAKTaR4tpoinjK JvMQ== X-Gm-Message-State: AIVw110/0NeK9G3FY5BLlvAtOzshR/DMLYJygY+OIPXCZvqW4ocQ+NBy cea7ymb9CS889jfUnt4= X-Received: by 10.223.166.68 with SMTP id k62mr6346001wrc.283.1500659474455; Fri, 21 Jul 2017 10:51:14 -0700 (PDT) Original-Received: from [128.93.70.6] ([128.93.70.6]) by smtp.gmail.com with ESMTPSA id y100sm2293078wmh.7.2017.07.21.10.51.13 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 21 Jul 2017 10:51:14 -0700 (PDT) In-Reply-To: Content-Language: en-GB X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:400c:c0c::22e 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:216925 Archived-At: On 2017-07-21 19:41, Stefan Monnier wrote: >>> So I'm asking, is there a better way? >> Yup, IIRC you can do this: >> (put 'todo-filter-files 'custom-type `(set ,@(todo--files-type-list))) > > It's less hideous, but isn't there a way to create a type that says "the > set returned by this function"? Not that I know of. I'd be happy to learn something new, though!