From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Juanma Barranquero Newsgroups: gmane.emacs.bugs Subject: bug#37826: Very annoying autoraise client/server behavior with -t option Date: Tue, 22 Oct 2019 16:46:09 +0200 Message-ID: References: <83tv84540m.fsf@gnu.org> <83v9si2y9u.fsf@gnu.org> <83a79u2oih.fsf@gnu.org> <83y2xe12ut.fsf@gnu.org> <83r23610oc.fsf@gnu.org> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="000000000000904461059580dea1" Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="117323"; mail-complaints-to="usenet@blaine.gmane.org" Cc: carlosjosepita@gmail.com, 37826@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Oct 22 16:58:52 2019 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1iMvca-000UPo-51 for geb-bug-gnu-emacs@m.gmane.org; Tue, 22 Oct 2019 16:58:52 +0200 Original-Received: from localhost ([::1]:60106 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iMvcZ-0000Qf-2Z for geb-bug-gnu-emacs@m.gmane.org; Tue, 22 Oct 2019 10:58:51 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:50016) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iMvRA-0007JP-K1 for bug-gnu-emacs@gnu.org; Tue, 22 Oct 2019 10:47:05 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iMvR9-0004vC-9j for bug-gnu-emacs@gnu.org; Tue, 22 Oct 2019 10:47:04 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:51452) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iMvR9-0004v6-6d for bug-gnu-emacs@gnu.org; Tue, 22 Oct 2019 10:47:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1iMvR9-0003HE-1W for bug-gnu-emacs@gnu.org; Tue, 22 Oct 2019 10:47:03 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Juanma Barranquero Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 22 Oct 2019 14:47:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 37826 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 37826-submit@debbugs.gnu.org id=B37826.157175561412581 (code B ref 37826); Tue, 22 Oct 2019 14:47:02 +0000 Original-Received: (at 37826) by debbugs.gnu.org; 22 Oct 2019 14:46:54 +0000 Original-Received: from localhost ([127.0.0.1]:60273 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iMvQz-0003Gq-N7 for submit@debbugs.gnu.org; Tue, 22 Oct 2019 10:46:54 -0400 Original-Received: from mail-qt1-f178.google.com ([209.85.160.178]:39011) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iMvQx-0003Gd-RD for 37826@debbugs.gnu.org; Tue, 22 Oct 2019 10:46:52 -0400 Original-Received: by mail-qt1-f178.google.com with SMTP id t8so9596061qtc.6 for <37826@debbugs.gnu.org>; Tue, 22 Oct 2019 07:46:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=WxMKJ3GPsap2okkMlvl1ZhcnItgJS52/dFttDKv1wGM=; b=Pb0i+Lanokh1FqA1ghCQhO5tE+q8kUK7xjDzwIDOag8wz7PNPjewO0ugS4tOLwqNmB 6KIwWxJyiqY5QALdb5MmEXineS35XMrIxZxtVqv+0CQkSIM/BGZbjcp+PqzHQzS36IKv WefPLNV7Xos5vWmvBcSXwWyCI1086o2YWn0hqA0kL2hv4qQSHtMrD125spPN1dY4iGA9 WixjBQQQqD/xch1IxNWTw0FKUmi0pv7HHHHkISYNUgbdgfvDV781geoiW2Tf6HgZAzfu 7fdVdJ7nmRfxetX+NolGu7RFY8GAXxnaoTo1opCNdFiGNEOuHUuv4rxV4cAnIVkk2ziJ cryw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=WxMKJ3GPsap2okkMlvl1ZhcnItgJS52/dFttDKv1wGM=; b=XpGiPdLcqYo6IQDMRoI6/AF7bPvl3UE7oUraj/LG69ZS69qKSlHqSQvpkgR0/w+GoN obRwd3A2mKlXZzvFwdAE5obb7pRcGe91H/0kape98GGE5O75win7UPSkukn7EhQwKrqo 2ib1qdKHSiAgSMJq9yO5+1Rj3f1OC4LP1CZT0CankQ1Lo3yPK8gjPECMDsp8rcXatVDf 4DbeYiOzmR5ZyxxrMffJZfDUq8P7Fh83wvnbNfNttFRPYfdEu+jICAgaJPv0J/oVfVdY pOzUHsFKo+MpbwMoy+IL8rCNhJrAQOyBxBGUAjTu0afQWClSfD+Pw1F7cVyvC2fEa5cy 0ZHA== X-Gm-Message-State: APjAAAVJPIkXydnL7kkT0lstId07bsStajDRDsEaLwsKereGeue3+vDx 10FAcE3x8cVM/8BwXszzcd3uQVJwmFWp/cAQvr8= X-Google-Smtp-Source: APXvYqx3Li3rJzCWOKU4e6fZt7MH/iVZ23rG++kAwMihOeipyxg6TLmES1ar9njdIF+jj/33+xkyh86dwHh34fQJhXM= X-Received: by 2002:ac8:729a:: with SMTP id v26mr3656604qto.18.1571755605897; Tue, 22 Oct 2019 07:46:45 -0700 (PDT) In-Reply-To: <83r23610oc.fsf@gnu.org> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 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.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:169983 Archived-At: --000000000000904461059580dea1 Content-Type: text/plain; charset="UTF-8" On Mon, Oct 21, 2019 at 7:14 PM Eli Zaretskii wrote: > I think this should go before the description of > delayed-warnings-list, and the text at the beginning of the section > should be modifies to mention this function as another alternative to > queue warnings for delayed display. I did so, just moving up the description of delay-warning, and changing the beginning of the section to suggest using it, instead of directly `delayed-warnings-list'. That way, the low level details follow the function, for those interested in them. >From c00a590b8847a444e198b7f69b0faff69262b7ab Mon Sep 17 00:00:00 2001 From: Juanma Barranquero Date: Tue, 22 Oct 2019 16:36:17 +0200 Subject: [PATCH] * doc/lispref/display.texi: Document `delay-warning' --- doc/lispref/display.texi | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/doc/lispref/display.texi b/doc/lispref/display.texi index 82d9f1db61..8ba0327fbb 100644 --- a/doc/lispref/display.texi +++ b/doc/lispref/display.texi @@ -828,7 +828,13 @@ Delayed Warnings Sometimes, you may wish to avoid showing a warning while a command is running, and only show it only after the end of the command. You can -use the variable @code{delayed-warnings-list} for this. +use the function @code{delay-warning} for this. + +@defun delay-warning type message &optional level buffer-name +This function is the delayed counterpart to @code{display-warning} +(@pxref{Warning Basics}), and it is called with the same arguments. +The warning message is queued into @code{delayed-warnings-list}. +@end defun @defvar delayed-warnings-list The value of this variable is a list of warnings to be displayed after @@ -840,8 +846,8 @@ Delayed Warnings @noindent with the same form, and the same meanings, as the argument list of -@code{display-warning} (@pxref{Warning Basics}). Immediately after -running @code{post-command-hook} (@pxref{Command Overview}), the Emacs +@code{display-warning}. Immediately after running +@code{post-command-hook} (@pxref{Command Overview}), the Emacs command loop displays all the warnings specified by this variable, then resets it to @code{nil}. @end defvar -- 2.23.0.windows.1 --000000000000904461059580dea1 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable


On Mon, Oct 21, 2019 at 7:14 PM Eli Zaretskii <= eliz@gnu.org> wrote:

>= ; I think this should go before the description of
> delayed-warnings= -list, and the text at the beginning of the section
> should be modif= ies to mention this function as another alternative to
> queue warnin= gs for delayed display.

I did so, just moving = up the description of delay-warning, and changing the beginning of the sect= ion to suggest using it, instead of directly `delayed-warnings-list'. T= hat way, the low level details follow the function, for those interested in= them.


From c00a590b8847a444e198b7f= 69b0faff69262b7ab Mon Sep 17 00:00:00 2001
From: Juanma Barra= nquero <lekktu@gmail.com>
= Date: Tue, 22 Oct 2019 16:36:17 +0200
Subject: [PATCH] * doc/lispref/dis= play.texi: Document `delay-warning'

---
=C2=A0doc/lispref/dis= play.texi | 12 +++++++++---
=C2=A01 file changed, 9 insertions(+), 3 del= etions(-)

diff --git a/doc/lispref/display.texi b/doc/lispref/displa= y.texi
index 82d9f1db61..8ba0327fbb 100644
--- a/doc/lispref/display.= texi
+++ b/doc/lispref/display.texi
@@ -828,7 +828,13 @@ Delayed Warn= ings
=C2=A0
=C2=A0Sometimes, you may wish to avoid showing a warning = while a command is
=C2=A0running, and only show it only after the end of= the command.=C2=A0 You can
-use the variable @code{delayed-warnings-lis= t} for this.
+use the function @code{delay-warning} for this.
+
+@= defun delay-warning type message &optional level buffer-name
+This f= unction is the delayed counterpart to @code{display-warning}
+(@pxref{Wa= rning Basics}), and it is called with the same arguments.
+The warning m= essage is queued into @code{delayed-warnings-list}.
+@end defun
=C2= =A0
=C2=A0@defvar delayed-warnings-list
=C2=A0The value of this varia= ble is a list of warnings to be displayed after
@@ -840,8 +846,8 @@ Dela= yed Warnings
=C2=A0
=C2=A0@noindent
=C2=A0with the same form, and = the same meanings, as the argument list of
-@code{display-warning} (@pxr= ef{Warning Basics}).=C2=A0 Immediately after
-running @code{post-command= -hook} (@pxref{Command Overview}), the Emacs
+@code{display-warning}.=C2= =A0 Immediately after running
+@code{post-command-hook} (@pxref{Command = Overview}), the Emacs
=C2=A0command loop displays all the warnings speci= fied by this variable,
=C2=A0then resets it to @code{nil}.
=C2=A0@end= defvar
--
2.23.0.windows.1

--000000000000904461059580dea1--