From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Dave Abrahams Newsgroups: gmane.emacs.bugs Subject: bug#63181: 28.2; Can't suppress server-already-running warning Date: Mon, 1 May 2023 09:24:10 -0700 Message-ID: <21AA1260-C9D6-41D6-A7CA-00B2D1C5A69E@boostpro.com> References: <83jzxtq5f3.fsf@gnu.org> <83mt2onj2l.fsf@gnu.org> Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3731.500.231\)) 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="10833"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 63181@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon May 01 18:25:22 2023 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 1ptWL3-0002bE-99 for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 01 May 2023 18:25:21 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ptWKo-0007Rt-LW; Mon, 01 May 2023 12:25:06 -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 1ptWKm-0007Qk-8V for bug-gnu-emacs@gnu.org; Mon, 01 May 2023 12:25:04 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ptWKl-0007FJ-O8 for bug-gnu-emacs@gnu.org; Mon, 01 May 2023 12:25:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ptWKk-0006oQ-It for bug-gnu-emacs@gnu.org; Mon, 01 May 2023 12:25:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Dave Abrahams Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 01 May 2023 16:25:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 63181 X-GNU-PR-Package: emacs Original-Received: via spool by 63181-submit@debbugs.gnu.org id=B63181.168295826926144 (code B ref 63181); Mon, 01 May 2023 16:25:02 +0000 Original-Received: (at 63181) by debbugs.gnu.org; 1 May 2023 16:24:29 +0000 Original-Received: from localhost ([127.0.0.1]:40910 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ptWKD-0006nc-1H for submit@debbugs.gnu.org; Mon, 01 May 2023 12:24:29 -0400 Original-Received: from mail-pf1-f182.google.com ([209.85.210.182]:46448) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ptWKC-0006nO-5K for 63181@debbugs.gnu.org; Mon, 01 May 2023 12:24:28 -0400 Original-Received: by mail-pf1-f182.google.com with SMTP id d2e1a72fcca58-63b5c48ea09so1962933b3a.1 for <63181@debbugs.gnu.org>; Mon, 01 May 2023 09:24:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=boostpro-com.20221208.gappssmtp.com; s=20221208; t=1682958262; x=1685550262; h=to:references:message-id:content-transfer-encoding:cc:date :in-reply-to:from:subject:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=nAU2//HzkQMGqiBMnu6gZetOWNZtX8doJB2OswH6jc8=; b=PeV0UNdfOqT/3sLUlbbOzUjySilDcduItPSYfOijMOulTOKTT2CiCv7oMveUJ9BEZx R9oGosAeBg+POTGeBPE4dCk0D2xohyHWZ19pmMh53unnWTPT4ACxt+V/FWJbABe/9COG ucF11xcfWY1FtcAdQpwdUOOKmFMn7FBVqVxHwIDrhoELh93NsHiEwNZOw49IngvuUXXf IqgzKP0fxuqL2dCv5aSFCCqSB7o7/yhFKb9oD/ZKtbC42X05RcKayGCaQxFuzfEDML4r qzZ2/ZMX1VaDqkFY8Yl3sv2H+Q9xZlL2LNsjoOsJEVuzsxxbj3zlFq3DuejQHG1NTfFW PsFA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1682958262; x=1685550262; h=to:references:message-id:content-transfer-encoding:cc:date :in-reply-to:from:subject:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=nAU2//HzkQMGqiBMnu6gZetOWNZtX8doJB2OswH6jc8=; b=aQJAeZoa+0WPVCgUBb5peO736l26W9hB2JwalEp9t8lq8HhxjklgPbUigMYZ/DI1IM pfBQhJI6zCXSjdx06FWtjtX2RP+J15AZptM4WrS7EEGkaiaLCzxlY2ieWy8M7/G5MNs5 e1mZsFsxmlZ3EVtD7Z7guXWP7NK09OoHtSEiHPmt3CeYk+Yp6g7POdclpEX3/BRY5YCl m41kCeRWVBO4KoOIcpg7ZmO9Wt17WDU4IsfqkJuCXMg87Q7cK4YBWNkaq6FDQ1MkFcix gcyC0fAxbNJGNO5v8juIsEBoSCRpbMQznST6Y8Zs60K46dUEaBt+l7w5dEhXEOh0oqrc Sezw== X-Gm-Message-State: AC+VfDxFXIcAvreJF9Q9S6gKBbE5gr7PEMNpdsng2LW83vsEs7k77gxc DsPt8kZeVk9qwQAjwDholcd65w== X-Google-Smtp-Source: ACHHUZ5zJSGBIeB7YvPAfSTfjpapnCWkgFmFT0Ip7crdkHMlUuLQ6J4DJK5zmt9kmElT15jepcFmsg== X-Received: by 2002:a05:6a00:1348:b0:63b:19e5:a9ec with SMTP id k8-20020a056a00134800b0063b19e5a9ecmr22460592pfu.33.1682958261956; Mon, 01 May 2023 09:24:21 -0700 (PDT) Original-Received: from smtpclient.apple (69-209-31-205.lightspeed.sntcca.sbcglobal.net. [69.209.31.205]) by smtp.gmail.com with ESMTPSA id w75-20020a62824e000000b0063b17b58822sm20134299pfd.74.2023.05.01.09.24.21 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Mon, 01 May 2023 09:24:21 -0700 (PDT) In-Reply-To: <83mt2onj2l.fsf@gnu.org> X-Mailer: Apple Mail (2.3731.500.231) 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:260877 Archived-At: > On May 1, 2023, at 8:54 AM, Eli Zaretskii wrote: >=20 >> From: Dave Abrahams >> Date: Mon, 1 May 2023 08:27:46 -0700 >> Cc: 63181@debbugs.gnu.org >>=20 >> I let-bind because I don=E2=80=99t want to suppress all server = warnings forever, which is what I presume adding =E2=80=98sever to the = list means ; just this one. Thanks for the explanation=20 >=20 > If you want to suppress these warnings only during startup, you can > restore the original value of warning-suppress-types in > emacs-startup-hook. Saving and restoring this thing manually seems very inelegant compared = with allowing `let' to do what it's designed for, and I don't want to = globally override=20 I should point out that I wasn't presuming that warnings would be issued = immediately, only that the setting of warning-suppress-types would be = examined in whichever function was responsible for queueing warnings, = rather than (only) the code that reports them. >=20 > Did you try my other suggestions? did they work? can we close this bug > report? This works for me: ;; ;; Start the server, suppressing warnings ;; ;; I often run a 2nd emacs especially when working on configuration, ;; and I don't like startup to be noisy. But the suppression doesn't ;; work unless I defer the work because warning processing is ;; deferred until after startup; see ;; https://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D63181 (add-hook 'emacs-startup-hook (lambda () (dlet ((warning-suppress-types '((server)))) (server-mode)))) Whether to close the bug is up to you of course, but IMO there's still a = problem, at *least* in documentation. Ideally the value of = warning-suppress-types should be respected at the time warnings are = queued, but if not, the documentation should be updated with a caveat = about trying to use it during startup. But really, who wants more = caveats? ;-)