From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: tpeplt Newsgroups: gmane.emacs.help Subject: Re: Idiomatic way to avoid unused lexical variable in =?utf-8?B?4oCYZG90aW1lc+KAmQ==?= or =?utf-8?B?4oCYZG9saXN04oCZPw==?= Date: Tue, 26 Mar 2024 22:02:16 -0400 Message-ID: <87msqk8maf.fsf@gmail.com> References: <87ttks8wam.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="11707"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: Stefan Monnier To: Stefan Monnier via Users list for the GNU Emacs text editor Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Wed Mar 27 03:03:19 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 1rpIdL-0002oC-AH for geh-help-gnu-emacs@m.gmane-mx.org; Wed, 27 Mar 2024 03:03:19 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rpIcU-0004u6-Rj; Tue, 26 Mar 2024 22:02:26 -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 1rpIcS-0004tP-SV for help-gnu-emacs@gnu.org; Tue, 26 Mar 2024 22:02:24 -0400 Original-Received: from mail-qk1-x732.google.com ([2607:f8b0:4864:20::732]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rpIcQ-0001aP-Dm for help-gnu-emacs@gnu.org; Tue, 26 Mar 2024 22:02:24 -0400 Original-Received: by mail-qk1-x732.google.com with SMTP id af79cd13be357-789f00aba19so440492485a.0 for ; Tue, 26 Mar 2024 19:02:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1711504938; x=1712109738; darn=gnu.org; h=content-transfer-encoding:mime-version:user-agent:message-id:date :references:in-reply-to:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=EMLTmfDabOhsgn2wk0fCrw4r2erVdlFn6Z55GPeQcnk=; b=gCWOZOoAuKMUBzEeVmuEKxxrRXgUTDASeK7xXJd8ylr+neuQbW3SSN0Pl5S4BULHUp V7Gw/fPeeFhSdalXndT8VQ3CWLAsZlNSoqGXonH19xZBNPQ0gh1Mi5GqFoddca6rEnUl bh0PpVy6vI7oKexQBTu60zM+i8t9fLDFbIzu7H60L6x1IfLQMYYd51IJi9eiBSjnOZvH XTOz+saCcLDHISu1/HwBgO6AEfKEPfVK/j1OsC1SZWcdMQlDzZInlj83aJgsGcZvl6cb TT0ZlQSemliwfG/k0KgFRKOQfzkI7lU3nx2186IL9FqUSC5CgXhAFpaMm+i6W54iukWS sPuA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1711504938; x=1712109738; h=content-transfer-encoding:mime-version:user-agent:message-id:date :references:in-reply-to:subject:cc:to:from:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=EMLTmfDabOhsgn2wk0fCrw4r2erVdlFn6Z55GPeQcnk=; b=xH/LddOykeRiYswNRBlg0arFjvbFlVccF2Tw0UUqdT47pz7IyS7bKntb2DEqF3j+NZ uM76oYBR8yFrzGKsPWYYsV1gXF99Nj15FBJWAz2i5+YJHNAG4kWGLWAFXvO6jcrzy3Ga +AKoCQtHyb30WhOanskoMK25VqUl53lyxtZUOQMwJLbirdhWg4j3y/TkoiYqQLyc6QKU LxF7OI11qT2nVIGvVX5J5p8iywJMj0D7WCJwBQ4ylt1TXy80612PNyJk7ndEaWnpSjse 8lfYciLssSnQyczVnjPTUjIw5QHuLwX0HxwnYCp3eCnMERdmh/sZNDeMvMNhwb3lshZN rXoA== X-Gm-Message-State: AOJu0Yxh+AAsxIdS8oSRAYs8YEEns5svk5mvdgLBahjnhlo28U1Q0RkC Dz+rG6sZbMqntPzvFKERl+2rnydrsKHMvH2umWlZssc4WPi11exl X-Google-Smtp-Source: AGHT+IGz82U6+4ZGzHqyILN599UwutVLRgUQS2TyuvBukwbSB52JyGva2/zIYq8vQ18PRWTHUNmCOg== X-Received: by 2002:a05:620a:4ac5:b0:78a:85:ff67 with SMTP id sq5-20020a05620a4ac500b0078a0085ff67mr2686788qkn.78.1711504938176; Tue, 26 Mar 2024 19:02:18 -0700 (PDT) Original-Received: from t530.local ([2600:8806:a821:2b00::9361]) by smtp.gmail.com with ESMTPSA id z24-20020ae9c118000000b0078a581bc66bsm2076321qki.17.2024.03.26.19.02.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 26 Mar 2024 19:02:17 -0700 (PDT) In-Reply-To: (Stefan Monnier via Users list for the's message of "Tue, 26 Mar 2024 18:30:00 -0400") Received-SPF: pass client-ip=2607:f8b0:4864:20::732; envelope-from=tpeplt@gmail.com; helo=mail-qk1-x732.google.com 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, 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:146180 Archived-At: Stefan Monnier via Users list for the GNU Emacs text editor writes: >> 1. Is there an idiom in Emacs Lisp for writing this that >> eliminates this warning? > > (dotimes (_ 100) > (insert "I will not obey absurd orders\n")) > > Or any other var name that starts with an underscore. > > > Stefan Thank you. I have not been able to find this documented anywhere (that is, that lexical variables whose names begin with an underscore are not flagged with a warning message if they are not referenced). This appears to be true with, for example, =E2=80=98let=E2=80=99 expressions, al= so. --