From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Michael Heerdegen Newsgroups: gmane.emacs.help Subject: Re: help with add-to-list syntax Date: Thu, 31 Oct 2024 11:35:14 +0100 Message-ID: <87frocimql.fsf@web.de> References: <87froguwpv.fsf@riseup.net> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="24981"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: help-gnu-emacs@gnu.org To: BP25 Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Thu Oct 31 11:35:07 2024 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1t6SWA-0006Iw-UW for geh-help-gnu-emacs@m.gmane-mx.org; Thu, 31 Oct 2024 11:35:06 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1t6SVZ-0003dz-6u; Thu, 31 Oct 2024 06:34:29 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1t6SVU-0003dj-TB for help-gnu-emacs@gnu.org; Thu, 31 Oct 2024 06:34:24 -0400 Original-Received: from mout.web.de ([212.227.17.12]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1t6SVR-00075c-IU for help-gnu-emacs@gnu.org; Thu, 31 Oct 2024 06:34:23 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=web.de; s=s29768273; t=1730370855; x=1730975655; i=michael_heerdegen@web.de; bh=PCzS5E0W6xB+iNQ0Vb273LulAkd8+30k4PDZ9oNQsPg=; h=X-UI-Sender-Class:From:To:Cc:Subject:In-Reply-To:References:Date: Message-ID:MIME-Version:Content-Type:cc:content-transfer-encoding: content-type:date:from:message-id:mime-version:reply-to:subject: to; b=Hf/8Bq/LFYx5E2UaRo+ZeC41G3DxACBOOO0nYpnLiUAXVFZ20mN1nsBYRXkX49In PzXyQ6V40fCmeMleKyREiOTLam4/jsQ/SnvYrpAP1H56ZuTrT8imWr/xhTwLHUgrQ WIxeL59rgHyATvx5hKi4ABMAfCx5/+qFidRCjPx9wOPI9eg9WecRn8fY/IyOQlISz KWAPTFfuleSsyFHiC9k9KoU84KkuLq5IO+yqiUZmDdcSTp+U2v/PeAHNVcC1bcexA rXXy9H9K8F8D4+SpreNmwgY971qNRTwrNj3EgiiTqgQXZBkd8i/ugm96fSBh0q4Is ZpvVWuPkmktfeqzqHQ== X-UI-Sender-Class: 814a7b36-bfc1-4dae-8640-3722d8ec6cd6 Original-Received: from drachen.dragon ([92.75.138.197]) by smtp.web.de (mrweb106 [213.165.67.124]) with ESMTPSA (Nemesis) id 1MLzit-1tNiH142gj-00YZFO; Thu, 31 Oct 2024 11:34:15 +0100 In-Reply-To: <87froguwpv.fsf@riseup.net> (BP's message of "Mon, 28 Oct 2024 14:29:48 +0000") X-Provags-ID: V03:K1:LpqSKrduiVpmcSCghljA5dF1EDU1ZyLbQ2LODGVMzSEME+3vI0L KUmdM6lx7pL0J7kXR48C2qR3YI7RX+z28J10TI4VMfMI4QkiLE734LEZ9a4GWHc8OUUbxCI /9Uu7EsM9kPvRMwCByNIoBA7TRl3zu6lAAwQs4khbT6JX4aVf9XLg/vvx7YZ0sFg1PrazzM Av+vkg1cGkh/lxt1kKr1g== UI-OutboundReport: notjunk:1;M01:P0:xxI6UQUbGr8=;EWYwZAzSq9u955/HxlMzOLaf64a ZuiwRRDgJOGwCgwYT0VnK7y6efzyfac6QYdsDGi/xGh6LPmCRSHyTijaLTu71svArUYp8k8fA iuE9Z7n9sNKdPbAIPBTCxrZCU7JdQo9W1RKjpLwp9t4bG1K7Zbeei7IvNUzhJGke2O4gL3kcB tYgf65DXL6kybzl8KrB6ExQvxwgAOMSd3+h5n6RfP7IcjoPoUK8x6W/bHKLyKo2ef2Y4w0ZOW B+5gggtmjWF3pSNvlBjjUrNmNKj+ew+N3uN3M9dFDzthUBbbqBBjZVDU/oUhu19XHbpKHkCX8 GpEO0+86bUiRkPP8i4Zq3dhL3ugZybwOk3kHfuO22/ENfKI0SrvB9ef7V08qhTFImP9bngUQn 0RBRHTs+rWDmGIAntIeDlyjhlPH9rkX4NreN+jCPJize3O7yRwiiJuBEUCrMg++lca1G6AfIB ZufLQNs8D872cOgPj76ez39muxujZlt0PqDP5sM8I3iTiTcdGgku85fyGiUlhC02wuE5lt1jY eWIXRLG5mVD8eHT6oqtXhIafvv+vnUxci9w0ZSg7oCeISXEm61txbofqg1wMCwiBlnJUlGC14 GjSnTOs7yuz6utx+H5X1LXau4HHTmucuCvFGwMaDol/3TofLwfcpTAl0GDxRzJF8mO63CQIw8 OggU5ETX2ScJ9lhWtzGd/gjOQQ4EDiLS9HPbRi0o1sC+bKwl9KkfEIyaafm0idd3LRiTA+Icz x2zwsvC6E7IRnRfbC1r1jf4oNstNbddYk9fAnbnZhXa+iBTkgIv2xqO74zEsmugTHUh9N/W0 Received-SPF: pass client-ip=212.227.17.12; envelope-from=michael_heerdegen@web.de; helo=mout.web.de X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, RCVD_IN_VALIDITY_CERTIFIED_BLOCKED=0.001, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.help:148261 Archived-At: BP25 writes: > Hello! Could any of you be so kind as to help me understand this, > please? I have > > (custom-set-variables > '(warning-suppress-types '((undo\ discard-info)))) > > in my .emacs. If I start emacs, do load-file .emacs, then evaluate > (add-to-list 'warning-suppress-types '(undo\ discard-info)) I get an > error saying the variable warning-suppress-types is void. After thinking about this again: The explanation for your little miracle is probably that the variable is autoloaded and the defining library "warnings" not necessarily loaded at startup. `custom-set-variables' is clever enough to do the right thing anyway. C-h v loads the defining library as a side effect so you always see a defined variable even when it had not yet been defined. The details may differ a bit depending on your Emacs version. Michael.