From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: BP25 Newsgroups: gmane.emacs.help Subject: help with add-to-list syntax Date: Mon, 28 Oct 2024 14:29:48 +0000 Message-ID: <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="29608"; mail-complaints-to="usenet@ciao.gmane.io" To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Tue Oct 29 11:57:27 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 1t5jug-0007W7-Pq for geh-help-gnu-emacs@m.gmane-mx.org; Tue, 29 Oct 2024 11:57:27 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1t5jtw-0001Z0-Pb; Tue, 29 Oct 2024 06:56:40 -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 1t5jtt-0001YE-8C for help-gnu-emacs@gnu.org; Tue, 29 Oct 2024 06:56:37 -0400 Original-Received: from mx1.riseup.net ([198.252.153.129]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1t5jtq-0007CZ-PU for help-gnu-emacs@gnu.org; Tue, 29 Oct 2024 06:56:37 -0400 Original-Received: from fews01-sea.riseup.net (fews01-sea-pn.riseup.net [10.0.1.109]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mx1.riseup.net (Postfix) with ESMTPS id 4Xd6d66VgdzDqLs for ; Tue, 29 Oct 2024 10:56:26 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=riseup.net; s=squak; t=1730199386; bh=R3TAJJEO23rxAxnuosHnUygEECT3xsAwOPUb3MPPSbA=; h=From:To:Subject:Date:From; b=RsGk3kwdrhAR9/Vvdk2LjX+zoOAe44JNpKAffAFp8uoxOC5tXIUMEVhuW1BGULwhj COzj5hjGFMN5hLSIHoOTBVEjA00uqB1C29kHCdj85jJpqhnrvdDyo6hNIyr9r0yexk 5ZAprbPqbXo3YexDjQsMkfrAFKDn5MALUqZpgFys= X-Riseup-User-ID: EF99FB7DDCF1B02AF58B7DBEA0365C3AEE7E5E63AEAC02717E6FF492CEAC34CB Original-Received: from [127.0.0.1] (localhost [127.0.0.1]) by fews01-sea.riseup.net (Postfix) with ESMTPSA id 4Xd6d62g1LzJn7m for ; Tue, 29 Oct 2024 10:56:26 +0000 (UTC) Received-SPF: pass client-ip=198.252.153.129; envelope-from=bp25@riseup.net; helo=mx1.riseup.net X-Spam_score_int: -16 X-Spam_score: -1.7 X-Spam_bar: - X-Spam_report: (-1.7 / 5.0 requ) BAYES_00=-1.9, DATE_IN_PAST_12_24=1.049, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_LOW=-0.7, 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_PASS=-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:148254 Archived-At: 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. However if I start emacs, do load-file .emacs, then do C-h v warning-suppress-types then I see the value being ((undo\ discard-info)) and if I evaluate (add-to-list 'warning-suppress-types '(undo\ discard-info)) then everything goes through without error. Why?! Please, let me know! (and please, CC: my email address in your reply because I'm not subscribed to this list)