From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Stefan Kangas Newsgroups: gmane.emacs.bugs Subject: bug#73853: 31.0.50; Should and-let* become a synonym for when-let*? Date: Sat, 23 Nov 2024 11:14:43 -0500 Message-ID: References: <87a5f2xir8.fsf@web.de> <87froszrs6.fsf@melete.silentflame.com> <87ed48b3er.fsf_-_@melete.silentflame.com> <87a5ew5few.fsf@web.de> <878qud7uj7.fsf@melete.silentflame.com> <87a5dqxbld.fsf@melete.silentflame.com> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="40224"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Michael Heerdegen , 73853@debbugs.gnu.org To: Sean Whitton , Stefan Monnier Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Nov 23 17:16:35 2024 Return-path: Envelope-to: geb-bug-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 1tEsoF-000AL9-2y for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 23 Nov 2024 17:16:35 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tEsno-0006tb-OQ; Sat, 23 Nov 2024 11:16:08 -0500 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 1tEsnl-0006rp-5p for bug-gnu-emacs@gnu.org; Sat, 23 Nov 2024 11:16:05 -0500 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tEsni-0004to-A3 for bug-gnu-emacs@gnu.org; Sat, 23 Nov 2024 11:16:04 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=Date:MIME-Version:References:In-Reply-To:From:To:Subject; bh=s4rbd89Z4BrXf/qAEXwcCG4rU7MwZXl1UGWa5oF31H4=; b=jt0NAHgvV//soOcEzTcqamBnxTneVgQ8DSaYa6hG5DD4Lti2jC0UH9skKAb5ysiIeHycmJY5a/7tIIwdn3SJhR5aBrEfjG2qfcNZqtW+nYEQ7fU/Hlx3zvMKaoSuGnc58uEUs83CCZAAhFibgm8o28+e73vuFBXIk1w4tsmSSNp9jOu2MWAjSHpWbdXYZLEE4G8+8h4zOa3FMMAguLeeh9DOlShjj/WiFxa2PdSOomo76dS76c1xwBIX7+nunLcakYOdyA/XoFEWgXQ27FG4skeghALVThEJdlzGUl/kSTRxP+so0ThtDuow8qiQFAudz0Bmnd6syi+lKBELfVNQQA==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1tEsnh-0006vX-Un for bug-gnu-emacs@gnu.org; Sat, 23 Nov 2024 11:16:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Kangas Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 23 Nov 2024 16:16:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 73853 X-GNU-PR-Package: emacs Original-Received: via spool by 73853-submit@debbugs.gnu.org id=B73853.173237854726598 (code B ref 73853); Sat, 23 Nov 2024 16:16:01 +0000 Original-Received: (at 73853) by debbugs.gnu.org; 23 Nov 2024 16:15:47 +0000 Original-Received: from localhost ([127.0.0.1]:58750 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tEsnT-0006uw-0Z for submit@debbugs.gnu.org; Sat, 23 Nov 2024 11:15:47 -0500 Original-Received: from mail-ed1-f51.google.com ([209.85.208.51]:49206) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tEsnR-0006ul-5A for 73853@debbugs.gnu.org; Sat, 23 Nov 2024 11:15:45 -0500 Original-Received: by mail-ed1-f51.google.com with SMTP id 4fb4d7f45d1cf-5cfd3a7e377so4102890a12.2 for <73853@debbugs.gnu.org>; Sat, 23 Nov 2024 08:15:45 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1732378484; x=1732983284; darn=debbugs.gnu.org; h=cc:to:subject:message-id:date:mime-version:references:in-reply-to :from:from:to:cc:subject:date:message-id:reply-to; bh=s4rbd89Z4BrXf/qAEXwcCG4rU7MwZXl1UGWa5oF31H4=; b=fwAvGhTHnaPgxUJTkFQKPBVi1Fv+l0tik35J+BdDxy+8LRFV80jVyPLnA8AqNvotsq FwusBUHgRRDmrLay4qci4muTyxnZ627idURR3EYkj3rwxWhnqM4END4z0pLzDDH3a5zN 7dmz1Q1HohbWX4BeOEwjG4Jst5mulrzyKd53IAVOf1L8Ku5TuOyn8AqmIV5HH3QXlr/w Mw0Txgh/cOoAH2eG0BWFjLmTTChOw0ad+zDv0yX0AhqPoaa91O9DyNQ3YqJmiW15UkHP PFWd4+qZpuiGK6YQWyGqtqVuzif8TT4r+wpasQmbRBD5S/YH/cU1HvmQnjL4bjXlggCO qAQA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1732378484; x=1732983284; h=cc:to:subject:message-id:date:mime-version:references:in-reply-to :from:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=s4rbd89Z4BrXf/qAEXwcCG4rU7MwZXl1UGWa5oF31H4=; b=rQF95YZBLPoo8UDQry1IepJOZIutxAmIf+gPwxhJ42k9bovLyjUWkHO30Wp4wOZyES kh9onwq2b+f3dhMIp7xVGhsrRzMhyxWkQEuX37VRc2HCkmTy9++hIhwtNHhE/FsReLNQ TPVCeF3vLtvAkCLm0anOYqWr7zAAWHZAt5ve/imYJJxppQ5zR2aeuN09oKEZ8riMLsoC 481BQBXW5dKObia4h9WC9USaq8XpJL47Y4+AaKch/omt+OEs4KPUavIB6kS4MikVZ+MA orRkSIwhB3hom7T2GOgXi0cWGizKfO4ezqiSLL3bpfQfsgH7JiKXoKzCV4BsWYaXKzf7 nVYA== X-Forwarded-Encrypted: i=1; AJvYcCXnSkZYIFMyPKLhwKtRUb79uWyUUhUKu6gaY1xwUp+ZnMJYDKOtVmSUEvXBvuV5mbhk38xNig==@debbugs.gnu.org X-Gm-Message-State: AOJu0YyuILxGvgOvVV3u73YDkJDGIqzArbnW9gG1vmcLxb0YwFPGuNqU rL+pn8wvNzkiV68XWyWXe+uBtytU9GPSbmPlDN96Cj2/AickxjIjN/BvkX06COi1Ema2P/1LKFU prgmE7rlkQ1MTwlpadzjPGLZMNTc= X-Gm-Gg: ASbGnctyQklsGbqcla1ekqZOBEMo1e0G9Q7VaZLFwdzRrDSJeTCm6kvPIUqIIHBudTo +Hj88cNfHI/Q3lTDiT95JTL5WN+QFiy/F+g== X-Google-Smtp-Source: AGHT+IFKtlG8hB93ZHTJ4DJC/HUmPLGyKteD2u3zzKvUDpaZbk9uNCzwvACk28RA+1USlqu1UaCWY611T7ik6BM3aY8= X-Received: by 2002:a05:6402:26cc:b0:5c9:59e6:e908 with SMTP id 4fb4d7f45d1cf-5d0205b6047mr6088632a12.6.1732378484179; Sat, 23 Nov 2024 08:14:44 -0800 (PST) Original-Received: from 753933720722 named unknown by gmailapi.google.com with HTTPREST; Sat, 23 Nov 2024 11:14:43 -0500 In-Reply-To: <87a5dqxbld.fsf@melete.silentflame.com> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:295846 Archived-At: Sean Whitton writes: > On Fri 22 Nov 2024 at 02:46pm -05, Stefan Monnier via "Bug reports for GNU Emacs, the Swiss army knife of text editors" wrote: > >> Beside the use of `make-obsolete` instead of putting the `obsolete` >> inside `declare`, > > I didn't know about this distinction. Can you let me know why it would > be better to use a declaration? AFAIK, while they are technically the same, using a declaration is cleaner. We prefer it for that reason. >> I see a more serious problem with this patch. E.g. >> >> (defun my-foo () (when-let ((x (point))) (goto-char x))) >> >> gives 2 warnings rather than one: > > I think this is just inherent to the fact that these macros depend on > each other, though it would be nice to fix if we can. I think `with-suppressed-warnings` should work here.