GNU bug report logs - #34749
26.1; `delete-windows-on': (1) doc, (2) bug, (3) bug, (4) candidates

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: emacs; Severity: minor; Reported by: Drew Adams <drew.adams@HIDDEN>; dated Mon, 4 Mar 2019 16:27:02 UTC; Maintainer for emacs is bug-gnu-emacs@HIDDEN.

Message received at 34749 <at> debbugs.gnu.org:


Received: (at 34749) by debbugs.gnu.org; 10 Mar 2019 08:48:43 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sun Mar 10 04:48:43 2019
Received: from localhost ([127.0.0.1]:37656 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1h2u8R-0003Tx-2o
	for submit <at> debbugs.gnu.org; Sun, 10 Mar 2019 04:48:43 -0400
Received: from mout.gmx.net ([212.227.15.18]:55241)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <rudalics@HIDDEN>) id 1h2u8P-0003Tl-8k
 for 34749 <at> debbugs.gnu.org; Sun, 10 Mar 2019 04:48:41 -0400
Received: from [192.168.1.101] ([212.95.5.172]) by mail.gmx.com (mrgmx002
 [212.227.17.190]) with ESMTPSA (Nemesis) id 0MK17F-1h24eQ0SyD-001Vht; Sun, 10
 Mar 2019 09:48:31 +0100
Message-ID: <5C84CF5D.8070003@HIDDEN>
Date: Sun, 10 Mar 2019 09:48:29 +0100
From: martin rudalics <rudalics@HIDDEN>
MIME-Version: 1.0
To: Eli Zaretskii <eliz@HIDDEN>
Subject: Re: bug#34749: 26.1; `delete-windows-on': (1) doc, (2) bug, (3) bug,
 (4) candidates
References: <b375da42-2b65-4579-902c-85e9fdcaeac7@default>
 <5C7E4BAB.3050508@HIDDEN> <83mum5accd.fsf@HIDDEN> <5C824BAC.4090907@HIDDEN>
 <83lg1pa4oa.fsf@HIDDEN> <5C82B9E1.1080302@HIDDEN> <83zhq587g6.fsf@HIDDEN>
 <5C837BD6.9010200@HIDDEN> <83ef7g8gbc.fsf@HIDDEN>
In-Reply-To: <83ef7g8gbc.fsf@HIDDEN>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: quoted-printable
X-Provags-ID: V03:K1:UVHGXZOFWPtWCCmwNw1liEJswPvbT3w4l+KXcMdmhH2R3L+SZS+
 ip2BkNOJ6hsPBjECofArniDHeyRynD+Z2DXy6835OZG8NCtTqYkUB9X7FtAOonf9NnHd7Rx
 pmfdWBdH2UsYWqQDTb9IRBrzV45ULvq9gPZOQAu68BrJNF/8vokaX4eDcbLLHlL159iy1fk
 gudo4p5Sld1nxwjEG0++A==
X-Spam-Flag: NO
X-UI-Out-Filterresults: notjunk:1;V03:K0:+EDXslw6iw4=:y45hdiuqdkNGN41l3brBUY
 xnYEXZSD3bKkBM0yrJJlDYeUbsx1823phju6PQlWML5VKd72YBDDlDkxUIf07UNvs3vqmJ2hj
 jiINF2ubnFEGMmYwHH+I3NE2zA9T8qODayN0sQrC8EISzQm5qh9UfCj0YagWGdziH+eQiNjlB
 6sDolz8UHzBfbzQb0+LCSa3x8b54WBAtPUHTU7YaOJwVl9c6ZgUaxWk+uUgtGhQ3vToUXRvn7
 H5y2kDEKvbahPaAasqr0EwdexTpk0EQu3ksXy6DcoDAd25ChbR5RAoBzcGE9tUYCQYSVSfoK6
 GqkI8jsghRCk2sFbIVWpLdwmIwEBVKXqW1jxSU1ZDaGB2yObYCZtJP5LzNF2MncPt6oYQb3eI
 Ssy3MA27jnagctA7xW81P35VFFOptu752F89Xaw+FRmNyTvRBr9rvs+uppI4fIbLNy8etunvc
 C2SQB/7GEOC3u/9YArz8rVGZ/mLg2M29ftYLp3cnG0Ip++8q95sOJm0jwrw9Ik5klMiRxer0y
 QyQtS5CbSL2WHTHSBYhsiQ/cXRWauX6TBFddyVoO5Z+r955wtfMKi9zjOpv9k2iRMimB8+QSX
 gh+Y9VC/0U3ULLhgjyUS7gFsC6zxv7M9t+HvRheNyICSs+tcQXZladVtvYb7hVx3rpOR0F8Wh
 w8N6KZi4VARdgTabQO8IvzmLH/urJ+jhBOqoaonRo08w8yWkMDrgGfxupu+y6KzfjJsQKu2dx
 hPxCq9nyuLqlGi5zs59ALZ3sNL5xEWfR+ChhdogrTEEbrdpyb1KqFsGVcfOBwXCit4pierSiY
 RTGt/lrEEkPcRrqJqJWB7Y8O8O+nU5xDDenZd3UsxGm+xAkQ/e+aSvn+YT+9KnPrNhWJQ8WuY
 VBcYc0P8n42uUkkfD+H+ftP8qKAoTsM40wdyOISsNli4EWt+QQl2lt9vWBOG0b2HBYUSOwGOK
 42aRoXHNY5w==
X-Spam-Score: -0.7 (/)
X-Debbugs-Envelope-To: 34749
Cc: 34749 <at> debbugs.gnu.org, drew.adams@HIDDEN
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.7 (-)

 > Those other-* function also need to allow the user to specify a count,=

 > something that we don't have to do here.  So there's no reason to
 > expect consistency here.  (I do think it would be good to allow the
 > user to control the last argument of other-window and other-frame as
 > well, if that's possible, but the solution doesn't have to be
 > identical to what we do with delete-windows-on.)

I sometimes wonder whether we try to invent a raison d'=C3=AAtre for the
prefix argument even if there's none.  'other-window' is one example.
How are users able to calculate in advance the window that would
result from a prefix argument larger than say 1 here?  Wouldn't that
depend on the knowledge of how the window list is constructed from the
traversal of the window trees, how it wraps, where in that list the
active minibuffer window is and what the ALL-FRAMES argument is?  As a
matter of fact, I could use 'other-window' only if a frame contains at
most two windows and always use directional movement instead.

Note: This is no suggestion how things should be specified.  It only
serves to explain why I'm not able to come up with a useful proposal
here.

martin





Information forwarded to bug-gnu-emacs@HIDDEN:
bug#34749; Package emacs. Full text available.

Message received at 34749 <at> debbugs.gnu.org:


Received: (at 34749) by debbugs.gnu.org; 10 Mar 2019 08:47:13 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sun Mar 10 04:47:12 2019
Received: from localhost ([127.0.0.1]:37652 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1h2u6y-0003Rk-N7
	for submit <at> debbugs.gnu.org; Sun, 10 Mar 2019 04:47:12 -0400
Received: from mout.gmx.net ([212.227.15.19]:56323)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <rudalics@HIDDEN>) id 1h2u6w-0003RW-Uy
 for 34749 <at> debbugs.gnu.org; Sun, 10 Mar 2019 04:47:11 -0400
Received: from [192.168.1.101] ([212.95.5.172]) by mail.gmx.com (mrgmx002
 [212.227.17.190]) with ESMTPSA (Nemesis) id 0LeMij-1giBIH00qb-00qBRQ; Sun, 10
 Mar 2019 09:47:00 +0100
Message-ID: <5C84CF01.2090402@HIDDEN>
Date: Sun, 10 Mar 2019 09:46:57 +0100
From: martin rudalics <rudalics@HIDDEN>
MIME-Version: 1.0
To: Drew Adams <drew.adams@HIDDEN>, Eli Zaretskii <eliz@HIDDEN>
Subject: Re: bug#34749: 26.1; `delete-windows-on': (1) doc, (2) bug, (3) bug,
 (4) candidates
References: <b375da42-2b65-4579-902c-85e9fdcaeac7@default>
 <5C7E4BAB.3050508@HIDDEN> <83mum5accd.fsf@HIDDEN> <5C824BAC.4090907@HIDDEN>
 <83lg1pa4oa.fsf@HIDDEN> <5C82B9E1.1080302@HIDDEN> <83zhq587g6.fsf@HIDDEN>
 <5C837BD6.9010200@HIDDEN> <83ef7g8gbc.fsf@HIDDEN> <5C83BC9B.5020803@HIDDEN>
 <e0b90f9b-2d1f-4877-b83a-aeca5425dbea@default>
In-Reply-To: <e0b90f9b-2d1f-4877-b83a-aeca5425dbea@default>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
X-Provags-ID: V03:K1:P+RvYR29k9lKRTxTzNgDFA5BqERUIFjjmo342X7JSubHgfp32Op
 92cX356J8UaVxvZ9H7suISIvaWGrNRta7m55fgI28y/QkZZL+Nhg+Io3JOC1b6vybbCRMcl
 HiwXVARqlZkPwO2o7CY4hlQNgcg65lnC1nT8pWml3Jio5EraPjaelc939PETvvxoH6Wfjxr
 vcWnHiBoadWhJQ0kf9ecg==
X-Spam-Flag: NO
X-UI-Out-Filterresults: notjunk:1;V03:K0:uoP8sTJt2AM=:UTxq+jNKWP9FmchnvcKaJp
 0oHc8lAgP3NNE2gfdNlgsGVomgMHHJEAkzfD+jElk4EsxgsAsl2EYTYYPlhQEfuV3cfPy/tqE
 avpUrUC6jFi2U8IcWcfHtFKN8shvdH6xnsiWJ8oKFPOSrLs2TtxDD0zZLhlBA3UfcedWbqikG
 jcQIo7eHMFiZOcC+iDq3UFI2f0HxkDqJLOfZm8mDSeZDg1lAjclvt6Un/T/nXkPlA5fufpjXO
 UCx6Qi9z0MvZ1xk305bNVZfi8TfR7qcEHDReBs89YicDrS1PDfYe7ijtAVmB9BZVBk246Qxpp
 N7xewKrzw/K4ONyJ9KrnHt/k+YM7n57x83s5ZLj/FvRmUFRaPUvGhbRQUKCavaKlanWS4eflx
 Ey48W2YmaDCh6wMuAaGvReJyGVCoMVvzmE1RET74bBTPBOE4eskLidtMHDZ7U24syggwLDSlJ
 FTQ1ks4KiutaXOgALCHEhJ+hxuFWoirbYNDtUIBTljeKzRBl4I+5a3OOlZEsU1yx4oL3pQdaz
 03K0hhjAv6+7Q69E+tZCjhp5TCcNWVlR+fn7942qQAjryZ/KsKsdy3Aykh9QroZE+FdOeloJn
 2kSguYxPQpLP3cV2/LOD/1UinTNarSpGBdMRPAWqaYnYSgD11r+vVchM811/HItRzv2rIdMIk
 OJzXoc88uiG80HSpJQZCv2Jv/J1w/M/IMV7tEuaM/SaPCj1tQkTLYuB1V3hzEs24dLKrVsPZ8
 S/PJ8frLRTENceZHoPB1klR5XSL+6mJimfFHhTx/Ky1lDxTOx98dZoM76oE3Psn8WZFBpCj00
 zqAw/87e8mNZ24WooDrbKUG/ldB8xoLP24iuUHJvWxlYnUaZnz/dCFyblCFRYP6QTH8KvuuGr
 490w2iCcktmiEfZIOXG1OBD91wsMidWUbvlPdAagJNcacNSt4GS5xPREncRR3jHUolSqixbU6
 yX2Z/c1oZ5w==
X-Spam-Score: -0.7 (/)
X-Debbugs-Envelope-To: 34749
Cc: 34749 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.7 (-)

 > For example (doing this quickly just to show what
 > I mean - I'm sure we could come up with something
 > better):
 >
 > (interactive
 >    (let* ((arg   current-prefix-arg)
 >           (narg  (prefix-numeric-value arg))
 >           (buf   (read-buffer "Existing buffer: "
 >                               (buffer-name (current-buffer))
 >                               t))
 >           (char  (read-char "Character: ")))
 >      (list (buf narg arg nil char))))
 >
 > (interactive "bExisting buffer: \np\nP\ni\ncCharacter: ")

This tells me only that our machinery permits doing things I would
never ever understand how to put into practice.  But yes, less
complicated additional examples might help.  An example with no \n
first, an example with one \n second and one with two \n's third.

But no.  I think everyone else understands this stuff well enough, so
don't bother.  It's probably some sort of reader's block with me.

martin




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#34749; Package emacs. Full text available.

Message received at 34749 <at> debbugs.gnu.org:


Received: (at 34749) by debbugs.gnu.org; 9 Mar 2019 22:33:03 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat Mar 09 17:33:03 2019
Received: from localhost ([127.0.0.1]:37494 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1h2kWc-00058n-NE
	for submit <at> debbugs.gnu.org; Sat, 09 Mar 2019 17:33:03 -0500
Received: from aserp2130.oracle.com ([141.146.126.79]:33532)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <drew.adams@HIDDEN>) id 1h2kWa-00058D-QV
 for 34749 <at> debbugs.gnu.org; Sat, 09 Mar 2019 17:33:01 -0500
Received: from pps.filterd (aserp2130.oracle.com [127.0.0.1])
 by aserp2130.oracle.com (8.16.0.27/8.16.0.27) with SMTP id x29MTQPo168127;
 Sat, 9 Mar 2019 22:32:54 GMT
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com;
 h=mime-version :
 message-id : date : from : sender : to : cc : subject : references :
 in-reply-to : content-type : content-transfer-encoding; s=corp-2018-07-02;
 bh=4LwVphYlelXlQ6OL/AsjpPzNk669Lz4cRYQ7Kr/txIM=;
 b=bvcd9nKjJiN035qfPH0f/lSeEmDi4drgGTv9kJm7B++VxSXCdJ2fvt3tBbsuIIo/me4G
 paZfiqUEIT76wTM5W8LgrK8n+NQPrCad2ytvMhNNrv6W/X5uDLVgPJdrZnfI2Zc4Ljqm
 q4xl0OJ/r9e4u1thUpOUV3nSiVb9xFrIMhgX28r0C2Kwf7+EzrHZjnqStkW2x094vos4
 k48/dr7r2TXeXBZdeoU6VZOJ7Mg8vB6JWiRTusSV8lubJZFKywAuTp9mxeiU2XO1DAFP
 eblKlcCJWWM1XSoc9A7TpLHMz101kIcw8XfTWBNlS9pBS/H0/gpKIz1CEvyO19LHpSwp vg== 
Received: from aserv0022.oracle.com (aserv0022.oracle.com [141.146.126.234])
 by aserp2130.oracle.com with ESMTP id 2r430ea2e0-1
 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK);
 Sat, 09 Mar 2019 22:32:54 +0000
Received: from aserv0121.oracle.com (aserv0121.oracle.com [141.146.126.235])
 by aserv0022.oracle.com (8.14.4/8.14.4) with ESMTP id x29MWnbL019382
 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK);
 Sat, 9 Mar 2019 22:32:49 GMT
Received: from abhmp0014.oracle.com (abhmp0014.oracle.com [141.146.116.20])
 by aserv0121.oracle.com (8.14.4/8.13.8) with ESMTP id x29MWnZ8001157;
 Sat, 9 Mar 2019 22:32:49 GMT
MIME-Version: 1.0
Message-ID: <8ad1ebef-d63d-492f-a542-05c66bca6ad2@default>
Date: Sat, 9 Mar 2019 14:32:48 -0800 (PST)
From: Drew Adams <drew.adams@HIDDEN>
To: Eli Zaretskii <eliz@HIDDEN>, Drew Adams <drew.adams@HIDDEN>
Subject: RE: bug#34749: 26.1; `delete-windows-on': (1) doc, (2) bug, (3) bug,
 (4) candidates
References: <<<b375da42-2b65-4579-902c-85e9fdcaeac7@default>>>
 <<<5C7E4BAB.3050508@HIDDEN>>> <<<83mum5accd.fsf@HIDDEN>>>
 <<<5C824BAC.4090907@HIDDEN>>> <<<83lg1pa4oa.fsf@HIDDEN>>>
 <<<5C82B9E1.1080302@HIDDEN>>> <<<83zhq587g6.fsf@HIDDEN>>>
 <<<5C837BD6.9010200@HIDDEN>>> <<<83ef7g8gbc.fsf@HIDDEN>>>
 <<<5C83BC9B.5020803@HIDDEN>>>
 <<<e0b90f9b-2d1f-4877-b83a-aeca5425dbea@default>>>
 <<<8336nw807g.fsf@HIDDEN>>> <<dd8e2b24-ab4a-4a4c-b9b8-9249f9ec035b@default>>
 <<83sgvv7w99.fsf@HIDDEN>>
In-Reply-To: <<83sgvv7w99.fsf@HIDDEN>>
X-Priority: 3
X-Mailer: Oracle Beehive Extensions for Outlook 2.0.1.9.1  (1003210) [OL
 16.0.4810.0 (x86)]
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: quoted-printable
X-Proofpoint-Virus-Version: vendor=nai engine=5900 definitions=9190
 signatures=668685
X-Proofpoint-Spam-Details: rule=notspam policy=default score=0
 priorityscore=1501 malwarescore=0
 suspectscore=0 phishscore=0 bulkscore=0 spamscore=0 clxscore=1015
 lowpriorityscore=0 mlxscore=0 impostorscore=0 mlxlogscore=839 adultscore=0
 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1810050000
 definitions=main-1903090171
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 34749
Cc: rudalics@HIDDEN, 34749 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

> > > > I wonder if it would help to give an example where
> > > > we show correspondence between a spec that uses a
> > > > string argument to `interactive' that specifies a
> > > > few args to the function, of different types, and
> > > > a spec that uses a Lisp sexp, which when evaluated
> > > > produces a list of those same args.
> > >
> > > There's an example right after that text.
> >
> > I don't see an example that shows the correspondence
> > between a string arg and a Lisp sexp arg that returns
> > a list of args.
>=20
> Why is it important what types are the arguments?  The issue was the
> significance of the newline in the interactive spec string, and that
> is independent of the types of the arguments.

I don't think anyone said that it's important what
types the arguments are or whether arguments of
different types are used in the examples.

I suggested that we show correspondence between use
of a string spec and a Lisp sexp, and do so with the
use of more than one arg (so "\n" in the string spec).

Martin has not answered wrt whether he thinks doing
this would have helped him understand better.

Apparently he did not initially understand this well.
You asked him to say what parts he didn't understand
well.  I made a suggestion, guessing that it might
help.

I don't choose to argue with you about this.  Just
trying to help.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#34749; Package emacs. Full text available.

Message received at 34749 <at> debbugs.gnu.org:


Received: (at 34749) by debbugs.gnu.org; 9 Mar 2019 18:12:54 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat Mar 09 13:12:54 2019
Received: from localhost ([127.0.0.1]:37373 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1h2gSr-0003Jz-Se
	for submit <at> debbugs.gnu.org; Sat, 09 Mar 2019 13:12:54 -0500
Received: from eggs.gnu.org ([209.51.188.92]:37977)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <eliz@HIDDEN>) id 1h2gSq-0003Jl-9e
 for 34749 <at> debbugs.gnu.org; Sat, 09 Mar 2019 13:12:52 -0500
Received: from fencepost.gnu.org ([2001:470:142:3::e]:33682)
 by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from <eliz@HIDDEN>)
 id 1h2gSk-0007Hn-OR; Sat, 09 Mar 2019 13:12:46 -0500
Received: from [176.228.60.248] (port=4966 helo=home-c4e4a596f7)
 by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256)
 (Exim 4.82) (envelope-from <eliz@HIDDEN>)
 id 1h2gSf-0006OU-2J; Sat, 09 Mar 2019 13:12:44 -0500
Date: Sat, 09 Mar 2019 20:12:02 +0200
Message-Id: <83sgvv7w99.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
To: Drew Adams <drew.adams@HIDDEN>
In-reply-to: <dd8e2b24-ab4a-4a4c-b9b8-9249f9ec035b@default> (message from Drew
 Adams on Sat, 9 Mar 2019 09:35:24 -0800 (PST))
Subject: Re: bug#34749: 26.1; `delete-windows-on': (1) doc, (2) bug, (3) bug,
 (4) candidates
References: <<b375da42-2b65-4579-902c-85e9fdcaeac7@default>>
 <<5C7E4BAB.3050508@HIDDEN>> <<83mum5accd.fsf@HIDDEN>>
 <<5C824BAC.4090907@HIDDEN>> <<83lg1pa4oa.fsf@HIDDEN>>
 <<5C82B9E1.1080302@HIDDEN>> <<83zhq587g6.fsf@HIDDEN>>
 <<5C837BD6.9010200@HIDDEN>> <<83ef7g8gbc.fsf@HIDDEN>>
 <<5C83BC9B.5020803@HIDDEN>> <<e0b90f9b-2d1f-4877-b83a-aeca5425dbea@default>>
 <<8336nw807g.fsf@HIDDEN>> <dd8e2b24-ab4a-4a4c-b9b8-9249f9ec035b@default>
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic]
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 34749
Cc: rudalics@HIDDEN, 34749 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

> Date: Sat, 9 Mar 2019 09:35:24 -0800 (PST)
> From: Drew Adams <drew.adams@HIDDEN>
> Cc: rudalics@HIDDEN, 34749 <at> debbugs.gnu.org
> 
> > > I wonder if it would help to give an example where
> > > we show correspondence between a spec that uses a
> > > string argument to `interactive' that specifies a
> > > few args to the function, of different types, and
> > > a spec that uses a Lisp sexp, which when evaluated
> > > produces a list of those same args.
> > 
> > There's an example right after that text.
> 
> I don't see an example that shows the correspondence
> between a string arg and a Lisp sexp arg that returns
> a list of args.

Why is it important what types are the arguments?  The issue was the
significance of the newline in the interactive spec string, and that
is independent of the types of the arguments.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#34749; Package emacs. Full text available.

Message received at 34749 <at> debbugs.gnu.org:


Received: (at 34749) by debbugs.gnu.org; 9 Mar 2019 17:35:36 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat Mar 09 12:35:35 2019
Received: from localhost ([127.0.0.1]:37348 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1h2fsl-0002Px-Jt
	for submit <at> debbugs.gnu.org; Sat, 09 Mar 2019 12:35:35 -0500
Received: from userp2130.oracle.com ([156.151.31.86]:42314)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <drew.adams@HIDDEN>) id 1h2fsj-0002Pk-FI
 for 34749 <at> debbugs.gnu.org; Sat, 09 Mar 2019 12:35:34 -0500
Received: from pps.filterd (userp2130.oracle.com [127.0.0.1])
 by userp2130.oracle.com (8.16.0.27/8.16.0.27) with SMTP id x29HYlRL163141;
 Sat, 9 Mar 2019 17:35:27 GMT
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com;
 h=mime-version :
 message-id : date : from : sender : to : cc : subject : references :
 in-reply-to : content-type : content-transfer-encoding; s=corp-2018-07-02;
 bh=FjOG4pcy01s4if/BbKwWn71CUQLQeGSbaoqzXr7H7cU=;
 b=f1iLsFfUoCGaYH4gKZ3VIzaTGzhJjOTduFnDqibVK7xnc/64f3DY9fJb0teeuz1G2lnm
 Hg6/6W2G15yK2JFY5mUZ/ytX6sYofrrjzkQs+YM0PutGUR+8CVJVl0BGDDypVZAsWtwU
 w1JyMxDCvqtE2qPVZCFp67PYgifDrcJ82YpmMy8c0ntUnSUBQ16zWuxl6c7zgSwczhIU
 J7DrX7K6aPY7ekLSiBUVcPnrbRFWIyR4R7ClLBnfc3MvywzeF4IrQ9WlRY4visvM+cTT
 ewYSW+W+CtBfIj8on6f5KuUW41Qe/3feNkrNYCXANu2QuvXdIJ6en6/SAw/ASqACpCnd zQ== 
Received: from userv0021.oracle.com (userv0021.oracle.com [156.151.31.71])
 by userp2130.oracle.com with ESMTP id 2r44wtscs2-1
 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK);
 Sat, 09 Mar 2019 17:35:27 +0000
Received: from aserv0121.oracle.com (aserv0121.oracle.com [141.146.126.235])
 by userv0021.oracle.com (8.14.4/8.14.4) with ESMTP id x29HZQ3U006404
 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK);
 Sat, 9 Mar 2019 17:35:26 GMT
Received: from abhmp0013.oracle.com (abhmp0013.oracle.com [141.146.116.19])
 by aserv0121.oracle.com (8.14.4/8.13.8) with ESMTP id x29HZPoG007896;
 Sat, 9 Mar 2019 17:35:25 GMT
MIME-Version: 1.0
Message-ID: <dd8e2b24-ab4a-4a4c-b9b8-9249f9ec035b@default>
Date: Sat, 9 Mar 2019 09:35:24 -0800 (PST)
From: Drew Adams <drew.adams@HIDDEN>
To: Eli Zaretskii <eliz@HIDDEN>, Drew Adams <drew.adams@HIDDEN>
Subject: RE: bug#34749: 26.1; `delete-windows-on': (1) doc, (2) bug, (3) bug,
 (4) candidates
References: <<b375da42-2b65-4579-902c-85e9fdcaeac7@default>>
 <<5C7E4BAB.3050508@HIDDEN>> <<83mum5accd.fsf@HIDDEN>>
 <<5C824BAC.4090907@HIDDEN>> <<83lg1pa4oa.fsf@HIDDEN>>
 <<5C82B9E1.1080302@HIDDEN>> <<83zhq587g6.fsf@HIDDEN>>
 <<5C837BD6.9010200@HIDDEN>> <<83ef7g8gbc.fsf@HIDDEN>>
 <<5C83BC9B.5020803@HIDDEN>> <<e0b90f9b-2d1f-4877-b83a-aeca5425dbea@default>>
 <<8336nw807g.fsf@HIDDEN>>
In-Reply-To: <<8336nw807g.fsf@HIDDEN>>
X-Priority: 3
X-Mailer: Oracle Beehive Extensions for Outlook 2.0.1.9.1  (1003210) [OL
 16.0.4810.0 (x86)]
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: quoted-printable
X-Proofpoint-Virus-Version: vendor=nai engine=5900 definitions=9190
 signatures=668685
X-Proofpoint-Spam-Details: rule=notspam policy=default score=0
 priorityscore=1501 malwarescore=0
 suspectscore=0 phishscore=0 bulkscore=0 spamscore=0 clxscore=1015
 lowpriorityscore=0 mlxscore=0 impostorscore=0 mlxlogscore=778 adultscore=0
 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1810050000
 definitions=main-1903090134
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 34749
Cc: rudalics@HIDDEN, 34749 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

> > I wonder if it would help to give an example where
> > we show correspondence between a spec that uses a
> > string argument to `interactive' that specifies a
> > few args to the function, of different types, and
> > a spec that uses a Lisp sexp, which when evaluated
> > produces a list of those same args.
>=20
> There's an example right after that text.

I don't see an example that shows the correspondence
between a string arg and a Lisp sexp arg that returns
a list of args.

I see two examples with a string arg and (not "right
after that text") two examples of Lisp sexps (one of
which shows something you should not do).

I see no correspondence between the string examples
and the sexp examples.=20

In any case, the question I pose is whether Martin
feels that some additional example(s) might help.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#34749; Package emacs. Full text available.

Message received at 34749 <at> debbugs.gnu.org:


Received: (at 34749) by debbugs.gnu.org; 9 Mar 2019 16:47:10 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat Mar 09 11:47:10 2019
Received: from localhost ([127.0.0.1]:37315 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1h2f7u-0007dt-Bx
	for submit <at> debbugs.gnu.org; Sat, 09 Mar 2019 11:47:10 -0500
Received: from eggs.gnu.org ([209.51.188.92]:54093)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <eliz@HIDDEN>) id 1h2f7t-0007dg-4e
 for 34749 <at> debbugs.gnu.org; Sat, 09 Mar 2019 11:47:09 -0500
Received: from fencepost.gnu.org ([2001:470:142:3::e]:60553)
 by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from <eliz@HIDDEN>)
 id 1h2f7n-0006AZ-8Z; Sat, 09 Mar 2019 11:47:03 -0500
Received: from [176.228.60.248] (port=3618 helo=home-c4e4a596f7)
 by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256)
 (Exim 4.82) (envelope-from <eliz@HIDDEN>)
 id 1h2f7l-0002N0-I3; Sat, 09 Mar 2019 11:47:02 -0500
Date: Sat, 09 Mar 2019 18:46:43 +0200
Message-Id: <8336nw807g.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
To: Drew Adams <drew.adams@HIDDEN>
In-reply-to: <e0b90f9b-2d1f-4877-b83a-aeca5425dbea@default> (message from Drew
 Adams on Sat, 9 Mar 2019 08:33:54 -0800 (PST))
Subject: Re: bug#34749: 26.1; `delete-windows-on': (1) doc, (2) bug, (3) bug,
 (4) candidates
References: <b375da42-2b65-4579-902c-85e9fdcaeac7@default>
 <5C7E4BAB.3050508@HIDDEN> <83mum5accd.fsf@HIDDEN> <5C824BAC.4090907@HIDDEN>
 <83lg1pa4oa.fsf@HIDDEN> <5C82B9E1.1080302@HIDDEN> <83zhq587g6.fsf@HIDDEN>
 <5C837BD6.9010200@HIDDEN> <83ef7g8gbc.fsf@HIDDEN> <5C83BC9B.5020803@HIDDEN>
 <e0b90f9b-2d1f-4877-b83a-aeca5425dbea@default>
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic]
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 34749
Cc: rudalics@HIDDEN, 34749 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

> Date: Sat, 9 Mar 2019 08:33:54 -0800 (PST)
> From: Drew Adams <drew.adams@HIDDEN>
> Cc: 34749 <at> debbugs.gnu.org
> 
> >  >> That text is all right and yet was incomprehensible for me at first
> >  >> (and second) reading.  It's probably just me, so ignore that.
> >  >
> >  > Maybe we should improve it.  But I cannot tell how, because "a
> >  > sequence of elements separated by newlines, one for each argument" is
> >  > very clear for me.  If you can tell what was incomprehensible in that,
> >  > maybe we will be able to come up with an improvement.
> > 
> > The text is too perfect with two cross references, a footnote and an
> > example with a hacker idiom.  Not a single redundancy, not a word to
> > miss.  Probably too terse for me.
> 
> I wonder if it would help to give an example where
> we show correspondence between a spec that uses a
> string argument to `interactive' that specifies a
> few args to the function, of different types, and
> a spec that uses a Lisp sexp, which when evaluated
> produces a list of those same args.

There's an example right after that text.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#34749; Package emacs. Full text available.

Message received at 34749 <at> debbugs.gnu.org:


Received: (at 34749) by debbugs.gnu.org; 9 Mar 2019 16:37:13 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat Mar 09 11:37:13 2019
Received: from localhost ([127.0.0.1]:37311 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1h2eyH-0007PX-8e
	for submit <at> debbugs.gnu.org; Sat, 09 Mar 2019 11:37:13 -0500
Received: from userp2130.oracle.com ([156.151.31.86]:48340)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <drew.adams@HIDDEN>) id 1h2eyF-0007PK-PU
 for 34749 <at> debbugs.gnu.org; Sat, 09 Mar 2019 11:37:12 -0500
Received: from pps.filterd (userp2130.oracle.com [127.0.0.1])
 by userp2130.oracle.com (8.16.0.27/8.16.0.27) with SMTP id x29GSrHF122975;
 Sat, 9 Mar 2019 16:37:05 GMT
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com;
 h=mime-version :
 message-id : date : from : sender : to : cc : subject : references :
 in-reply-to : content-type : content-transfer-encoding; s=corp-2018-07-02;
 bh=CiLRiedM8g35u3OC9KfGy50OXSjU+aABCcRwQC23LtU=;
 b=kEdxpJNmyIQx5U3lpF9XZB1xpHgiUfitQyb4ZWQeUiiAS3+YNz0MK/AStwR7/q7NIFT0
 gOuIVLfGwWOycFdGI6OOCM+pn9y3G/FkIm+Loh3x1s/on77z1t9ADgA24dgEFEhFuHaW
 Y6JD0ct2m/WUrKS2EKaU855kzVwVtRiev4tyMGOpAyfAJpdn4czT4cFl+MOhzp2Bv+GA
 fY9NOVyimN74lPmzJYUj0HF4z3ePoLAa8Gl9Hfa6TYW5MBEBG06r25VO76jR8TJWBAf7
 Z5tvBmUrCpIFqH6pTEmocRCN6nTQcU2Ke5/ogVZfHs4ng9tJPeFkMsJ/EYX/QAWPhjHj Sw== 
Received: from aserv0021.oracle.com (aserv0021.oracle.com [141.146.126.233])
 by userp2130.oracle.com with ESMTP id 2r44wtsacv-1
 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK);
 Sat, 09 Mar 2019 16:37:05 +0000
Received: from userv0122.oracle.com (userv0122.oracle.com [156.151.31.75])
 by aserv0021.oracle.com (8.14.4/8.14.4) with ESMTP id x29Gb3W4029776
 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK);
 Sat, 9 Mar 2019 16:37:04 GMT
Received: from abhmp0001.oracle.com (abhmp0001.oracle.com [141.146.116.7])
 by userv0122.oracle.com (8.14.4/8.14.4) with ESMTP id x29Gb3tN012113;
 Sat, 9 Mar 2019 16:37:03 GMT
MIME-Version: 1.0
Message-ID: <8f7e803e-6613-4061-9068-984f12b6580d@default>
Date: Sat, 9 Mar 2019 08:37:02 -0800 (PST)
From: Drew Adams <drew.adams@HIDDEN>
To: martin rudalics <rudalics@HIDDEN>, Eli Zaretskii <eliz@HIDDEN>
Subject: RE: bug#34749: 26.1; `delete-windows-on': (1) doc, (2) bug, (3) bug,
 (4) candidates
References: <b375da42-2b65-4579-902c-85e9fdcaeac7@default>
 <5C7E4BAB.3050508@HIDDEN> <83mum5accd.fsf@HIDDEN> <5C824BAC.4090907@HIDDEN>
 <83lg1pa4oa.fsf@HIDDEN> <5C82B9E1.1080302@HIDDEN>
 <a026905a-b5fa-42f9-a002-992106f656a8@default> <5C837BB7.6030600@HIDDEN>
In-Reply-To: <5C837BB7.6030600@HIDDEN>
X-Priority: 3
X-Mailer: Oracle Beehive Extensions for Outlook 2.0.1.9.1  (1003210) [OL
 16.0.4810.0 (x86)]
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-Proofpoint-Virus-Version: vendor=nai engine=5900 definitions=9190
 signatures=668685
X-Proofpoint-Spam-Details: rule=notspam policy=default score=0
 priorityscore=1501 malwarescore=0
 suspectscore=0 phishscore=0 bulkscore=0 spamscore=0 clxscore=1015
 lowpriorityscore=0 mlxscore=0 impostorscore=0 mlxlogscore=821 adultscore=0
 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1810050000
 definitions=main-1903090125
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 34749
Cc: 34749 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

>  > Are you asking what "\nP" means/does?
>=20
> Yes.

>  > This is pretty well documented in (elisp)
>  > `Using Interactive' and (elisp) `Interactive Codes'.
>  >
>  >    separated by newlines, one for each argument...
>  >    The code letter =E2=80=98P=E2=80=99 sets the command=E2=80=99s firs=
t argument
>  >    to the raw command prefix...
>=20
> It's clear for you since you probably write such specifications all
> the time.

Yes.  Looking at some existing Elisp code is a good
way to get this.  I probably did that too at some
point, in addition to consulting the doc.

> I hope it's now clear for me as well after reading that
> text a couple of times.

If it can be made clearer then we should try to do so.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#34749; Package emacs. Full text available.

Message received at 34749 <at> debbugs.gnu.org:


Received: (at 34749) by debbugs.gnu.org; 9 Mar 2019 16:34:04 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat Mar 09 11:34:04 2019
Received: from localhost ([127.0.0.1]:37306 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1h2evD-0007L3-Ll
	for submit <at> debbugs.gnu.org; Sat, 09 Mar 2019 11:34:03 -0500
Received: from aserp2130.oracle.com ([141.146.126.79]:32874)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <drew.adams@HIDDEN>) id 1h2evC-0007KZ-EV
 for 34749 <at> debbugs.gnu.org; Sat, 09 Mar 2019 11:34:03 -0500
Received: from pps.filterd (aserp2130.oracle.com [127.0.0.1])
 by aserp2130.oracle.com (8.16.0.27/8.16.0.27) with SMTP id x29GTZ7D155604;
 Sat, 9 Mar 2019 16:33:56 GMT
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com;
 h=mime-version :
 message-id : date : from : sender : to : cc : subject : references :
 in-reply-to : content-type : content-transfer-encoding; s=corp-2018-07-02;
 bh=srm2NL0hsOiDPf4HeLR4v3yqX3h1ZJFZrvzpbMjcXqU=;
 b=y5HN2M6l/6/bufp6dNIoIzgKyXFaJrLqXXFqs9ECn8nUqZb6G5/lVrawoU/yYKcE5MZP
 INyXJ4u0+vy8aUqAumRJw4Rl7Wl69FIC6kRmcHJG4SVHF794Ip+eIHLcX8+KY8gIiT2Z
 neXTRlhdpXnoX/Wy1bOvaD1qAxPKpyBPwglBKHpgQ2Tne98rkT9uy+NbL0+9qdL7Fi79
 oF21qhWsTjkk4GB3Onedc+R95FGTUNq9bRy9greGXoOSCZnF+5DF89dL8DvuAyspChSd
 p1dPYB0Fuwq0ziL/DVVFTPTnEPGhjlVBiS4hIHIQfX8SeqGGJBNoY8oB2Dl8BH7LZDdl Gw== 
Received: from userv0021.oracle.com (userv0021.oracle.com [156.151.31.71])
 by aserp2130.oracle.com with ESMTP id 2r430e9qd5-1
 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK);
 Sat, 09 Mar 2019 16:33:56 +0000
Received: from userv0122.oracle.com (userv0122.oracle.com [156.151.31.75])
 by userv0021.oracle.com (8.14.4/8.14.4) with ESMTP id x29GXtCt020467
 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK);
 Sat, 9 Mar 2019 16:33:55 GMT
Received: from abhmp0001.oracle.com (abhmp0001.oracle.com [141.146.116.7])
 by userv0122.oracle.com (8.14.4/8.14.4) with ESMTP id x29GXsFJ011289;
 Sat, 9 Mar 2019 16:33:55 GMT
MIME-Version: 1.0
Message-ID: <e0b90f9b-2d1f-4877-b83a-aeca5425dbea@default>
Date: Sat, 9 Mar 2019 08:33:54 -0800 (PST)
From: Drew Adams <drew.adams@HIDDEN>
To: martin rudalics <rudalics@HIDDEN>, Eli Zaretskii <eliz@HIDDEN>
Subject: RE: bug#34749: 26.1; `delete-windows-on': (1) doc, (2) bug, (3) bug,
 (4) candidates
References: <b375da42-2b65-4579-902c-85e9fdcaeac7@default>
 <5C7E4BAB.3050508@HIDDEN> <83mum5accd.fsf@HIDDEN> <5C824BAC.4090907@HIDDEN>
 <83lg1pa4oa.fsf@HIDDEN> <5C82B9E1.1080302@HIDDEN> <83zhq587g6.fsf@HIDDEN>
 <5C837BD6.9010200@HIDDEN> <83ef7g8gbc.fsf@HIDDEN> <5C83BC9B.5020803@HIDDEN>
In-Reply-To: <5C83BC9B.5020803@HIDDEN>
X-Priority: 3
X-Mailer: Oracle Beehive Extensions for Outlook 2.0.1.9.1  (1003210) [OL
 16.0.4810.0 (x86)]
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-Proofpoint-Virus-Version: vendor=nai engine=5900 definitions=9190
 signatures=668685
X-Proofpoint-Spam-Details: rule=notspam policy=default score=0
 priorityscore=1501 malwarescore=0
 suspectscore=0 phishscore=0 bulkscore=0 spamscore=0 clxscore=1015
 lowpriorityscore=0 mlxscore=0 impostorscore=0 mlxlogscore=665 adultscore=0
 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1810050000
 definitions=main-1903090125
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 34749
Cc: 34749 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

>  >> That text is all right and yet was incomprehensible for me at first
>  >> (and second) reading.  It's probably just me, so ignore that.
>  >
>  > Maybe we should improve it.  But I cannot tell how, because "a
>  > sequence of elements separated by newlines, one for each argument" is
>  > very clear for me.  If you can tell what was incomprehensible in that,
>  > maybe we will be able to come up with an improvement.
>=20
> The text is too perfect with two cross references, a footnote and an
> example with a hacker idiom.  Not a single redundancy, not a word to
> miss.  Probably too terse for me.

I wonder if it would help to give an example where
we show correspondence between a spec that uses a
string argument to `interactive' that specifies a
few args to the function, of different types, and
a spec that uses a Lisp sexp, which when evaluated
produces a list of those same args.

For example (doing this quickly just to show what
I mean - I'm sure we could come up with something
better):

(interactive
  (let* ((arg   current-prefix-arg)
         (narg  (prefix-numeric-value arg))
         (buf   (read-buffer "Existing buffer: "
                             (buffer-name (current-buffer))
                             t))
         (char  (read-char "Character: ")))
    (list (buf narg arg nil char))))

(interactive "bExisting buffer: \np\nP\ni\ncCharacter: ")




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#34749; Package emacs. Full text available.

Message received at 34749 <at> debbugs.gnu.org:


Received: (at 34749) by debbugs.gnu.org; 9 Mar 2019 13:16:25 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat Mar 09 08:16:25 2019
Received: from localhost ([127.0.0.1]:36966 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1h2bpx-0002W5-5q
	for submit <at> debbugs.gnu.org; Sat, 09 Mar 2019 08:16:25 -0500
Received: from mout.gmx.net ([212.227.17.21]:57291)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <rudalics@HIDDEN>) id 1h2bpu-0002Vr-Sg
 for 34749 <at> debbugs.gnu.org; Sat, 09 Mar 2019 08:16:23 -0500
Received: from [192.168.1.100] ([46.125.250.89]) by mail.gmx.com (mrgmx101
 [212.227.17.168]) with ESMTPSA (Nemesis) id 0Lyi0B-1gyMYt2fcl-0168sC; Sat, 09
 Mar 2019 14:16:12 +0100
Message-ID: <5C83BC9B.5020803@HIDDEN>
Date: Sat, 09 Mar 2019 14:16:11 +0100
From: martin rudalics <rudalics@HIDDEN>
MIME-Version: 1.0
To: Eli Zaretskii <eliz@HIDDEN>
Subject: Re: bug#34749: 26.1; `delete-windows-on': (1) doc, (2) bug, (3) bug,
 (4) candidates
References: <b375da42-2b65-4579-902c-85e9fdcaeac7@default>
 <5C7E4BAB.3050508@HIDDEN> <83mum5accd.fsf@HIDDEN> <5C824BAC.4090907@HIDDEN>
 <83lg1pa4oa.fsf@HIDDEN> <5C82B9E1.1080302@HIDDEN> <83zhq587g6.fsf@HIDDEN>
 <5C837BD6.9010200@HIDDEN> <83ef7g8gbc.fsf@HIDDEN>
In-Reply-To: <83ef7g8gbc.fsf@HIDDEN>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: quoted-printable
X-Provags-ID: V03:K1:6w0Qao2sjiiZxbQvCVwIKX9cAp71j8INOC5uSRCjIutclzNxR6h
 d3ZHkU+wbZnKz0KXCEy9lU/BGTmGRGPJqYSa+JuuKUGP1Yk77NbvzejeZNo6oe8lorUffSa
 Q3JxSylnJdCVNNCpDjXxFcNFNQIBcatUAf/s222Loy2EsvBnA03O5O7kZM77trADkxD2l6Z
 0nxds5kibmj/YarxlILrA==
X-Spam-Flag: NO
X-UI-Out-Filterresults: notjunk:1;V03:K0:1iHAC4p/hoc=:ZgrUAMByffT5VQcxNDvYIq
 wZP7HWy5OboyQB3tl3rzDBYqgFVP6W+b47O2du7tUf96BBHx8fwblGbKP27zM5DJtBxw6NtUR
 TVmejGOAwt30+Io4IkXq4FoBIcYr79KlTtUWfYT5B/MefNxxaoS48OLygTmDprhXh2IefZ/No
 /+RlKRaqo6p/0PRJ6+2verN2BiWdq38wNuqqc5al5DYVOrFLYqOvkU5O6VBYz8eXSwoR30JCB
 JCKMuxPv0Jzsjtx3yqNUGPzTNb/w4Qu0QBNw22nuTkyUIAtA62GTxtY9z9iX2A2KGXnF2B0cZ
 4Sq0HbxEvl29PhCem2BVU0yvb7DrpuhFrFb9y9B65mXh60H6np/RK57FPHm6YF8AWtAn5nXJ1
 obVZj4KwwECYeoEYU0h9ti7UeRgSC6hH+4uXFFOcnf1FEOrBMQIii+YebWCERsam+0jSQF4bL
 qP+/JZgmLCwFcWUyY6WLEG+CUzYClzU34mCsi/PoQ+7sYglPPGi1hFfhxzDnxLCEfr2RfmZY9
 kDFY/MxWvdAqCL+nbBVFPFhXZhgbZzHPx3g46OHzkAW5mBZWJy0pNtiXACSQSUH5RyEwjy2ns
 HNmeFEeO9PlQY2xYDcb3IO6QsZPEt+7sE4hr+hQ+4SV968jWZu3p1FjWfRkgkujIqcuqByvd1
 lmSHeecRc1czj+faasCyAh8sTRygrxAwxdfPcrCE0HMjptSOHxPX1Nx3hGzQUvhB/rcHUocOs
 Q5iIwKDFiKs5lD6V2aIB6HLeuN4ckyx+RLzQZga/hdIA1J/gCy8nXwuxBj9SHyMGLxZ7ma+q2
 NLlliUVCCzfest72rBLjBD7A7WiXaFVYpqaVIgQXjutNncEi2JPsPivQ83amieUbnZXNlRVQW
 9MjsLT4+dMsVr7nnHd1B/w0sLZo4eDUXFkrUiOO/uPb6aSRYD+HKqTLn86vaLhezctTXyd/A+
 28FO3oap9Mw==
X-Spam-Score: 0.8 (/)
X-Debbugs-Envelope-To: 34749
Cc: 34749 <at> debbugs.gnu.org, drew.adams@HIDDEN
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -0.2 (/)

 > Those other-* function also need to allow the user to specify a count,=

 > something that we don't have to do here.  So there's no reason to
 > expect consistency here.  (I do think it would be good to allow the
 > user to control the last argument of other-window and other-frame as
 > well, if that's possible, but the solution doesn't have to be
 > identical to what we do with delete-windows-on.)

It would be confusing if it weren't.

 >>   >     =E2=80=A2 It may be a string; its contents are a sequence of =
elements
 >>   >       separated by newlines, one for each argument(1).  Each elem=
ent
 >>   >       consists of a code character (*note Interactive Codes::) op=
tionally
 >>   >       followed by a prompt (which some code characters use and so=
me
 >>   >       ignore).  Here is an example:
 >>   >
 >>   >            (interactive "P\nbFrobnicate buffer: ")
 >>   >
 >>   >       The code letter =E2=80=98P=E2=80=99 sets the command=E2=80=99=
s first argument to the raw
 >>   >       command prefix (*note Prefix Command Arguments::).  =E2=80=98=
bFrobnicate
 >>   >       buffer: =E2=80=99 prompts the user with =E2=80=98Frobnicate=
 buffer: =E2=80=99 to enter the
 >>   >       name of an existing buffer, which becomes the second and fi=
nal
 >>   >       argument.
 >>
 >> That text is all right and yet was incomprehensible for me at first
 >> (and second) reading.  It's probably just me, so ignore that.
 >
 > Maybe we should improve it.  But I cannot tell how, because "a
 > sequence of elements separated by newlines, one for each argument" is
 > very clear for me.  If you can tell what was incomprehensible in that,=

 > maybe we will be able to come up with an improvement.

The text is too perfect with two cross references, a footnote and an
example with a hacker idiom.  Not a single redundancy, not a word to
miss.  Probably too terse for me.

martin





Information forwarded to bug-gnu-emacs@HIDDEN:
bug#34749; Package emacs. Full text available.

Message received at 34749 <at> debbugs.gnu.org:


Received: (at 34749) by debbugs.gnu.org; 9 Mar 2019 10:59:15 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat Mar 09 05:59:15 2019
Received: from localhost ([127.0.0.1]:36949 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1h2ZhD-0005YW-FB
	for submit <at> debbugs.gnu.org; Sat, 09 Mar 2019 05:59:15 -0500
Received: from eggs.gnu.org ([209.51.188.92]:59054)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <eliz@HIDDEN>) id 1h2ZhC-0005YK-DN
 for 34749 <at> debbugs.gnu.org; Sat, 09 Mar 2019 05:59:15 -0500
Received: from fencepost.gnu.org ([2001:470:142:3::e]:56633)
 by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from <eliz@HIDDEN>)
 id 1h2Zh3-0000xv-03; Sat, 09 Mar 2019 05:59:07 -0500
Received: from [176.228.60.248] (port=1763 helo=home-c4e4a596f7)
 by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256)
 (Exim 4.82) (envelope-from <eliz@HIDDEN>)
 id 1h2Zgz-00076K-0m; Sat, 09 Mar 2019 05:59:03 -0500
Date: Sat, 09 Mar 2019 12:58:47 +0200
Message-Id: <83ef7g8gbc.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
To: martin rudalics <rudalics@HIDDEN>
In-reply-to: <5C837BD6.9010200@HIDDEN> (message from martin rudalics on Sat,
 09 Mar 2019 09:39:50 +0100)
Subject: Re: bug#34749: 26.1; `delete-windows-on': (1) doc, (2) bug, (3) bug,
 (4) candidates
References: <b375da42-2b65-4579-902c-85e9fdcaeac7@default>
 <5C7E4BAB.3050508@HIDDEN> <83mum5accd.fsf@HIDDEN> <5C824BAC.4090907@HIDDEN>
 <83lg1pa4oa.fsf@HIDDEN> <5C82B9E1.1080302@HIDDEN> <83zhq587g6.fsf@HIDDEN>
 <5C837BD6.9010200@HIDDEN>
MIME-version: 1.0
Content-type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic]
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 34749
Cc: 34749 <at> debbugs.gnu.org, drew.adams@HIDDEN
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

> Date: Sat, 09 Mar 2019 09:39:50 +0100
> From: martin rudalics <rudalics@HIDDEN>
> CC: drew.adams@HIDDEN, 34749 <at> debbugs.gnu.org
> 
> You mean to use a universal prefix nomenclature such that, for
> example, 0 means all visible and iconified frames, 1 all windows on
> the selected frame, 2 all visible frames (for a C-u with a numeric
> argument only solution) and so on?

Something like that, except "C-u C-u" might be easier to type than
"C-u 2", so perhaps use the former for some of the possible values.

> But the most interesting functions that would benefit from such a
> nomenclature are `other-window' and `other-frame' and both use the
> prefix argument for skipping.

Those other-* function also need to allow the user to specify a count,
something that we don't have to do here.  So there's no reason to
expect consistency here.  (I do think it would be good to allow the
user to control the last argument of other-window and other-frame as
well, if that's possible, but the solution doesn't have to be
identical to what we do with delete-windows-on.)

>  >     • It may be a string; its contents are a sequence of elements
>  >       separated by newlines, one for each argument(1).  Each element
>  >       consists of a code character (*note Interactive Codes::) optionally
>  >       followed by a prompt (which some code characters use and some
>  >       ignore).  Here is an example:
>  >
>  >            (interactive "P\nbFrobnicate buffer: ")
>  >
>  >       The code letter ‘P’ sets the command’s first argument to the raw
>  >       command prefix (*note Prefix Command Arguments::).  ‘bFrobnicate
>  >       buffer: ’ prompts the user with ‘Frobnicate buffer: ’ to enter the
>  >       name of an existing buffer, which becomes the second and final
>  >       argument.
> 
> That text is all right and yet was incomprehensible for me at first
> (and second) reading.  It's probably just me, so ignore that.

Maybe we should improve it.  But I cannot tell how, because "a
sequence of elements separated by newlines, one for each argument" is
very clear for me.  If you can tell what was incomprehensible in that,
maybe we will be able to come up with an improvement.

Thanks.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#34749; Package emacs. Full text available.

Message received at 34749 <at> debbugs.gnu.org:


Received: (at 34749) by debbugs.gnu.org; 9 Mar 2019 08:40:04 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat Mar 09 03:40:04 2019
Received: from localhost ([127.0.0.1]:36934 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1h2XWW-0002Am-2L
	for submit <at> debbugs.gnu.org; Sat, 09 Mar 2019 03:40:04 -0500
Received: from mout.gmx.net ([212.227.15.19]:42417)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <rudalics@HIDDEN>) id 1h2XWT-0002A4-Hp
 for 34749 <at> debbugs.gnu.org; Sat, 09 Mar 2019 03:40:02 -0500
Received: from [192.168.1.101] ([213.162.68.237]) by mail.gmx.com (mrgmx003
 [212.227.17.190]) with ESMTPSA (Nemesis) id 0Le5XQ-1gjvE414iC-00pswe; Sat, 09
 Mar 2019 09:39:52 +0100
Message-ID: <5C837BD6.9010200@HIDDEN>
Date: Sat, 09 Mar 2019 09:39:50 +0100
From: martin rudalics <rudalics@HIDDEN>
MIME-Version: 1.0
To: Eli Zaretskii <eliz@HIDDEN>
Subject: Re: bug#34749: 26.1; `delete-windows-on': (1) doc, (2) bug, (3) bug,
 (4) candidates
References: <b375da42-2b65-4579-902c-85e9fdcaeac7@default>
 <5C7E4BAB.3050508@HIDDEN> <83mum5accd.fsf@HIDDEN> <5C824BAC.4090907@HIDDEN>
 <83lg1pa4oa.fsf@HIDDEN> <5C82B9E1.1080302@HIDDEN> <83zhq587g6.fsf@HIDDEN>
In-Reply-To: <83zhq587g6.fsf@HIDDEN>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: quoted-printable
X-Provags-ID: V03:K1:kwFLrUbk7MogufYbY1xilhjrvonibwIgsUWSiKRBBYG7/MvYps7
 JFOGK2IwvL0sCEpZRKZ3jC8XKKFXnTSpxoV3XWJb78zNCLNTNxWxI4cRI6TbwhvdmyF8QTT
 SJ1ICU5ShtObpJlu/RIKQzzjumtAIDRMbiL2cF/73vU6abahwNVq2nvA9kP37fYlIo8vHFj
 sUWGZkN4EkivYpgfbMmcw==
X-Spam-Flag: NO
X-UI-Out-Filterresults: notjunk:1;V03:K0:HqgzKbPDz5Q=:mbAf2acdnGuPN36PjIstZV
 WZm++BBwEPsFQWYWjEbquO2BqxX3w6Nulnkn9p4izZTuysvrO1RWMGXF31iFX2k2Ir9aHRHRx
 E/WlhdkmdcEBvRxqVqqX8gAEmZrf/Nic/HalyBs8v36Gpl3qssA2Q3Yv7pvD2TJapPeuILfmY
 yy3aL+RLp/H2QtLeUnmTa+TUDuT/9RAVgnItAblx/BQDFOQ6MnW5oZ4O1Eq9qBHq5BhCvSeUj
 PfGD3vPRD1TPvhiq5lnJoksdmGwMclr0w8LPa4gGCw5RLf8hk3TueG0e40gFC535iw45Y2Y2z
 RstSuieSnRorDxtkgQ5MuUCBpAIcJH4Yc7MfuCTtJXh7869QOlsKRfzHsgVKOLCbfu6RFOWcc
 rNF1ZsGGBEUWLgvD1NVUq99uPdXODLtXUyyPTsYfwCMOOipmiXQl5f+adLauYu4/dQI4Dwzbw
 jag6OJB0RsS2gvU6WcKS1o3U9YyWka1XV665pff74uURNDF2tUjVgR2rYnzMHUZTN8D081lEc
 8mkzkM5fVF95jg5iM4cIO2OS8743CYlg7W5SVD93TVLx9ZaGczI+EyRyKqdS9nn8Ula1ibdS0
 iVdrPthpXWTK7k2bDj6SNyoM9X+wQWBUyceiq66H4WH0f7mSgqMlTeogZG56TIQeX22eYTiyc
 KmhJXbGA4N3UvfmeIwa1fUpqRVZnTc5DrlItR4C41VxjDHh3ukvhqMOx3hA5dL8DJ57BP6PmY
 FozaFe3kRxAO+5jMs4C/TFxi0MGPjZsEn1hr8YVvimzrv1c8p3Zgr/ODzYi8MBstbn44HYt/A
 m384eN4fMVOl93I44O7CVy1oguvn/m3xiRo7XXmofHQBShtfYJ6fRuxEH3Z1uyj4b5GtUVTDE
 I4vl/WK2NB39LR8lXMvLvdERKGoXcOW8IceFq0NjdS+csAoTdcp/D4tbdxq/RYF/WnATDFd/m
 PdIRSYfFHmg==
X-Spam-Score: -0.7 (/)
X-Debbugs-Envelope-To: 34749
Cc: 34749 <at> debbugs.gnu.org, drew.adams@HIDDEN
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.7 (-)

 > Maybe we are having a misunderstanding.  Because all I meant is to
 > have each of the possible values of FRAME be expressible with some
 > form of prefix-arg.  There are several such forms available:
 >
 >   . just C-u
 >   . C-u with a numeric argument
 >   . repeated C-u C-u ...
 >
 > We currently only use the second of these, and with a single numeric
 > argument of zero.  What I had in mind is to use the other forms, and
 > perhaps also other numeric arguments, to allow users in interactive
 > invocation access to all possible values of FRAME.

I understood that part.

 >> The doc-string should hopefully tell these details now.
 >
 > I'm not sure it covers the use case described by Drew.  Maybe I'm
 > missing something.

I'm not sure either.

 >> The fact that 'delete-windows-on' is the only function (together with=

 >> its 'quit-window-on' clone) with the inverted meaning of the
 >> FRAME/ALL-FRAMES argument makes me doubt that such an interpretation
 >> would make sense.
 >
 > Do you still think that, after reading my explanation above?

You mean to use a universal prefix nomenclature such that, for
example, 0 means all visible and iconified frames, 1 all windows on
the selected frame, 2 all visible frames (for a C-u with a numeric
argument only solution) and so on?  But the most interesting functions
that would benefit from such a nomenclature are `other-window' and
`other-frame' and both use the prefix argument for skipping.  Still,
don't count my opinion here - I don't use or specify prefix arguments.

 > It's described in this passage from "Using Interactive":
 >
 >     There are three possibilities for the argument ARG-DESCRIPTOR:
 >
 >     [...]
 >     =E2=80=A2 It may be a string; its contents are a sequence of eleme=
nts
 >       separated by newlines, one for each argument(1).  Each element
 >       consists of a code character (*note Interactive Codes::) optiona=
lly
 >       followed by a prompt (which some code characters use and some
 >       ignore).  Here is an example:
 >
 >            (interactive "P\nbFrobnicate buffer: ")
 >
 >       The code letter =E2=80=98P=E2=80=99 sets the command=E2=80=99s f=
irst argument to the raw
 >       command prefix (*note Prefix Command Arguments::).  =E2=80=98bFr=
obnicate
 >       buffer: =E2=80=99 prompts the user with =E2=80=98Frobnicate buff=
er: =E2=80=99 to enter the
 >       name of an existing buffer, which becomes the second and final
 >       argument.

That text is all right and yet was incomprehensible for me at first
(and second) reading.  It's probably just me, so ignore that.

martin





Information forwarded to bug-gnu-emacs@HIDDEN:
bug#34749; Package emacs. Full text available.

Message received at 34749 <at> debbugs.gnu.org:


Received: (at 34749) by debbugs.gnu.org; 9 Mar 2019 08:39:35 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat Mar 09 03:39:35 2019
Received: from localhost ([127.0.0.1]:36930 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1h2XW2-00029b-MH
	for submit <at> debbugs.gnu.org; Sat, 09 Mar 2019 03:39:34 -0500
Received: from mout.gmx.net ([212.227.15.19]:36593)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <rudalics@HIDDEN>) id 1h2XW0-00029P-FN
 for 34749 <at> debbugs.gnu.org; Sat, 09 Mar 2019 03:39:32 -0500
Received: from [192.168.1.101] ([213.162.68.237]) by mail.gmx.com (mrgmx002
 [212.227.17.190]) with ESMTPSA (Nemesis) id 0LhOSG-1ggcsi3tvU-00mc1N; Sat, 09
 Mar 2019 09:39:21 +0100
Message-ID: <5C837BB7.6030600@HIDDEN>
Date: Sat, 09 Mar 2019 09:39:19 +0100
From: martin rudalics <rudalics@HIDDEN>
MIME-Version: 1.0
To: Drew Adams <drew.adams@HIDDEN>, Eli Zaretskii <eliz@HIDDEN>
Subject: Re: bug#34749: 26.1; `delete-windows-on': (1) doc, (2) bug, (3) bug,
 (4) candidates
References: <b375da42-2b65-4579-902c-85e9fdcaeac7@default>
 <5C7E4BAB.3050508@HIDDEN> <83mum5accd.fsf@HIDDEN> <5C824BAC.4090907@HIDDEN>
 <83lg1pa4oa.fsf@HIDDEN> <5C82B9E1.1080302@HIDDEN>
 <a026905a-b5fa-42f9-a002-992106f656a8@default>
In-Reply-To: <a026905a-b5fa-42f9-a002-992106f656a8@default>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: quoted-printable
X-Provags-ID: V03:K1:hmxXfaESAJlNd03LMp+Znq+vyRJ/l2giNJ0KUBySkr3y5mdMrAs
 EXYm1osqcy2R6byy5+VtcEqRhHbfxverCUGQgc+XdYVEr+t3IcZWztNsflw5YgojZNs5CK/
 tX6IK7vQT+V789RVUqj5yIBoJ8NM7a9i6duap3fHiKAEhRUTfJ0kNixExV3tzQ2hT+CnekM
 rwIlrzEH5kBra2ZYbSwhQ==
X-Spam-Flag: NO
X-UI-Out-Filterresults: notjunk:1;V03:K0:MSm/p8B7V2E=:TtoIj3uofCg+dvPdK8DZQr
 VSrQf/GUTZiqJQC4GHMcOZZdvBOwiFoDwT5rCw+tp8zgnNE0tMazXsKTduq4Tq35xVxaWfzJK
 /oLnn0Y9MyyRPtZOqHM1hy2dRzdd4doyWoI3JzDXVMEuJyawoRhLVHv9AfI2XnJ0crkYdauJE
 +sNMoeeGEnzc5tLPFyIvA9oQj26+6Hj9PNZk0LO4Ty6KIKjFK2qWMLOzavANGrYr4zUmUjJBJ
 nTjnjQPEgo122FC+tAhK3h5MOESdShz5yg9MAppYl+A8HhFXiLxtryxhCiHRfOOP80pyHBv0u
 xYM6FWL3hf5UraCj5Qan2Kj56OBDnaWlxGRRfrGGRBjFy2T+f/qXvaZ8FtgKgj7TH9EScZNxZ
 w3RgiQxB65zmhsi1znXSKW/nlbw25JwazjPFmg2m6Oz3giplxetI45Y0RzxIRZcKmBLLLhQYM
 nNFmYxZDA40vELseEYOaVJSqWrSP+u+KImaTDMJvhPpL+3zsLID6k5P3O7io5ma6ju/Pr7xmm
 O+C5DQOY8Rk615I+FyQXfEf7higLK3MOMF/NaT7TaX/zR/LyMBDvfUfljAmnWcmfai4WMVakc
 O2Owo30i0NndgX/YpPnJ7BIHVYycBRq8Ue9ZZdYAEcL3ULSy+uLOLFipNVBjfqyeQeHlD3qVR
 LjnEFkk3eUYUFgBipo0TttafNJfs9BZjj3wmOj/IsrQGM2ULmCYct0HYGaepZhlFP6pmxnhD4
 wXRFRKYky4LQxciIpUUBY3QMXM+mkY2vyDe6Y3CGIYi9kO6DvKT3Jvj20/Tm39h3ChkvfqQkN
 ak13DBjJogCK5xAF/E3Wwx5PnkBh/7qDpJMAUH7+SYXuPDj34xQKoRyNmNV+/aERv3hj6nTsn
 bh3qXavC+bTb5toZsF/YXeibyjY7Gz2KtYv8J0jJjVHzAsT609jSmCdw6Pw6RWhElRjRiV5Tm
 GCAvM+enbiQ==
X-Spam-Score: -0.7 (/)
X-Debbugs-Envelope-To: 34749
Cc: 34749 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.7 (-)

 > Are you asking what "\nP" means/does?

Yes.

 > If so, the "\n" separates
 > arguments and the "P" stands for `current-prefix-arg', i.e., the
 > raw prefix argument.  This is pretty well documented in (elisp)
 > `Using Interactive' and (elisp) `Interactive Codes'.
 >
 >    a string; its contents are a sequence of elements
 >    separated by newlines, one for each argument(1).  Each element
 >    consists of a code character (*note Interactive Codes::) optionally=

 >    followed by a prompt (which some code characters use and some
 >    ignore).  Here is an example:
 >
 >         (interactive "P\nbFrobnicate buffer: ")
 >
 >    The code letter =E2=80=98P=E2=80=99 sets the command=E2=80=99s firs=
t argument to the raw
 >    command prefix (*note Prefix Command Arguments::).

It's clear for you since you probably write such specifications all
the time.  I hope it's now clear for me as well after reading that
text a couple of times.

Thanks, martin





Information forwarded to bug-gnu-emacs@HIDDEN:
bug#34749; Package emacs. Full text available.

Message received at 34749 <at> debbugs.gnu.org:


Received: (at 34749) by debbugs.gnu.org; 8 Mar 2019 20:14:48 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Mar 08 15:14:48 2019
Received: from localhost ([127.0.0.1]:36738 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1h2LtI-00033Q-6L
	for submit <at> debbugs.gnu.org; Fri, 08 Mar 2019 15:14:48 -0500
Received: from eggs.gnu.org ([209.51.188.92]:56674)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <eliz@HIDDEN>) id 1h2LtG-000338-Kr
 for 34749 <at> debbugs.gnu.org; Fri, 08 Mar 2019 15:14:46 -0500
Received: from fencepost.gnu.org ([2001:470:142:3::e]:45969)
 by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from <eliz@HIDDEN>)
 id 1h2LtB-0002wr-4Y; Fri, 08 Mar 2019 15:14:41 -0500
Received: from [176.228.60.248] (port=2632 helo=home-c4e4a596f7)
 by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256)
 (Exim 4.82) (envelope-from <eliz@HIDDEN>)
 id 1h2LtA-0005tU-IY; Fri, 08 Mar 2019 15:14:40 -0500
Date: Fri, 08 Mar 2019 22:14:25 +0200
Message-Id: <83va0t86ou.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
To: Drew Adams <drew.adams@HIDDEN>
In-reply-to: <024ad4a1-4281-440e-93a6-a49927da1df6@default> (message from Drew
 Adams on Fri, 8 Mar 2019 11:48:51 -0800 (PST))
Subject: Re: bug#34749: 26.1; `delete-windows-on': (1) doc, (2) bug, (3) bug,
 (4) candidates
References: <<<<b375da42-2b65-4579-902c-85e9fdcaeac7@default>>>>
 <<<<83o96lacf8.fsf@HIDDEN>>>>
 <<<6aae54ec-85bf-4447-bec0-7c916caeb2f8@default>>>
 <<<83a7i59u85.fsf@HIDDEN>>> <<a1314708-0feb-4092-8b60-37d7282a328f@default>>
 <<834l8d9orm.fsf@HIDDEN>> <024ad4a1-4281-440e-93a6-a49927da1df6@default>
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic]
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 34749
Cc: 34749 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

> Date: Fri, 8 Mar 2019 11:48:51 -0800 (PST)
> From: Drew Adams <drew.adams@HIDDEN>
> Cc: 34749 <at> debbugs.gnu.org
> 
> > > And the doc (now) presumably describes prefix-arg behavior.
> > > But a prefix arg is ignored when the window is dedicated
> > > and alone etc.  That info too needs to be provided, e.g.
> > > in the doc describing prefix-arg behavior.
> > 
> > What does prefix-arg have to do with this use case?
> 
> A user might use a prefix arg, regardless.  Telling her
> that in this case the prefix arg is ignored (has nothing
> to do with this case, in your words) lets her know not
> to expect something; that is, this is a special case
> where the prefix arg descriptions do not apply.

The doc string already says that in this case the FRAME argument is
not consulted (by not mentioning FRAME in the description of that
case).  And after my changes the doc string explains that the prefix
arg sets the FRAME argument.  So what you want to say follows
trivially from the doc string.

> > AFAIU, the answer
> > is "nothing", so there's nothing to be told, because the doc string
> > changes I made just explain how the prefix argument maps into the
> > FRAME argument.
> 
> I haven't seen the changes you made.

May I suggest that you do?  The current sources can be viewed on
Savannah.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#34749; Package emacs. Full text available.

Message received at 34749 <at> debbugs.gnu.org:


Received: (at 34749) by debbugs.gnu.org; 8 Mar 2019 19:58:26 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Mar 08 14:58:26 2019
Received: from localhost ([127.0.0.1]:36730 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1h2LdS-0002bb-Ct
	for submit <at> debbugs.gnu.org; Fri, 08 Mar 2019 14:58:26 -0500
Received: from eggs.gnu.org ([209.51.188.92]:54275)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <eliz@HIDDEN>) id 1h2LdQ-0002bL-GB
 for 34749 <at> debbugs.gnu.org; Fri, 08 Mar 2019 14:58:24 -0500
Received: from fencepost.gnu.org ([2001:470:142:3::e]:45684)
 by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from <eliz@HIDDEN>)
 id 1h2LdK-0005fW-PZ; Fri, 08 Mar 2019 14:58:18 -0500
Received: from [176.228.60.248] (port=1618 helo=home-c4e4a596f7)
 by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256)
 (Exim 4.82) (envelope-from <eliz@HIDDEN>)
 id 1h2LdJ-0005ja-Im; Fri, 08 Mar 2019 14:58:18 -0500
Date: Fri, 08 Mar 2019 21:58:01 +0200
Message-Id: <83zhq587g6.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
To: martin rudalics <rudalics@HIDDEN>
In-reply-to: <5C82B9E1.1080302@HIDDEN> (message from martin rudalics on Fri,
 08 Mar 2019 19:52:17 +0100)
Subject: Re: bug#34749: 26.1; `delete-windows-on': (1) doc, (2) bug, (3) bug,
 (4) candidates
References: <b375da42-2b65-4579-902c-85e9fdcaeac7@default>
 <5C7E4BAB.3050508@HIDDEN> <83mum5accd.fsf@HIDDEN> <5C824BAC.4090907@HIDDEN>
 <83lg1pa4oa.fsf@HIDDEN> <5C82B9E1.1080302@HIDDEN>
MIME-version: 1.0
Content-type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic]
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 34749
Cc: 34749 <at> debbugs.gnu.org, drew.adams@HIDDEN
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

> Date: Fri, 08 Mar 2019 19:52:17 +0100
> From: martin rudalics <rudalics@HIDDEN>
> CC: drew.adams@HIDDEN, 34749 <at> debbugs.gnu.org
> 
>  > I think we should simply try letting the user provide all possible
>  > values of the FRAME argument in interactive invocations, by using
>  > different forms of 'C-u'.
> 
> I have no idea how to do that.

Maybe we are having a misunderstanding.  Because all I meant is to
have each of the possible values of FRAME be expressible with some
form of prefix-arg.  There are several such forms available:

 . just C-u
 . C-u with a numeric argument
 . repeated C-u C-u ...

We currently only use the second of these, and with a single numeric
argument of zero.  What I had in mind is to use the other forms, and
perhaps also other numeric arguments, to allow users in interactive
invocation access to all possible values of FRAME.

>  > That'd be too radical, IMO.  I'd rather we described the exceptional
>  > cases, because I think they would be rare.  Can you enumerate those
>  > exceptions?
> 
> The doc-string should hopefully tell these details now.

I'm not sure it covers the use case described by Drew.  Maybe I'm
missing something.

>  > I think it would be better to rework the interpretation of the prefix
>  > arg so it makes sense.
> 
> The fact that 'delete-windows-on' is the only function (together with
> its 'quit-window-on' clone) with the inverted meaning of the
> FRAME/ALL-FRAMES argument makes me doubt that such an interpretation
> would make sense.

Do you still think that, after reading my explanation above?

> And when trying to read the documentation on 'interactive' I nowhere
> detected where the "\nP" convention is described (which apparently
> turns a function's last (?)  argument into the prefix argument).
> Can someone enlighten me?

It's described in this passage from "Using Interactive":

   There are three possibilities for the argument ARG-DESCRIPTOR:

   [...]
   • It may be a string; its contents are a sequence of elements
     separated by newlines, one for each argument(1).  Each element
     consists of a code character (*note Interactive Codes::) optionally
     followed by a prompt (which some code characters use and some
     ignore).  Here is an example:

          (interactive "P\nbFrobnicate buffer: ")

     The code letter ‘P’ sets the command’s first argument to the raw
     command prefix (*note Prefix Command Arguments::).  ‘bFrobnicate
     buffer: ’ prompts the user with ‘Frobnicate buffer: ’ to enter the
     name of an existing buffer, which becomes the second and final
     argument.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#34749; Package emacs. Full text available.

Message received at 34749 <at> debbugs.gnu.org:


Received: (at 34749) by debbugs.gnu.org; 8 Mar 2019 19:49:00 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Mar 08 14:49:00 2019
Received: from localhost ([127.0.0.1]:36715 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1h2LUJ-0002Me-Og
	for submit <at> debbugs.gnu.org; Fri, 08 Mar 2019 14:48:59 -0500
Received: from userp2120.oracle.com ([156.151.31.85]:41996)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <drew.adams@HIDDEN>) id 1h2LUI-0002MP-Lq
 for 34749 <at> debbugs.gnu.org; Fri, 08 Mar 2019 14:48:59 -0500
Received: from pps.filterd (userp2120.oracle.com [127.0.0.1])
 by userp2120.oracle.com (8.16.0.27/8.16.0.27) with SMTP id x28JmkWj083688;
 Fri, 8 Mar 2019 19:48:53 GMT
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com;
 h=mime-version :
 message-id : date : from : sender : to : cc : subject : references :
 in-reply-to : content-type : content-transfer-encoding; s=corp-2018-07-02;
 bh=2GCxGR/dUp2OxxDyepH3LaPwzbH0mmuSS3FRGQWIknI=;
 b=jJvldnCrWvGo/62QHuk/UfN52gqjGg2sYDEnxas8XHPCeCLsMFUsSUbnKxIvG8Q7/oEk
 Ls4EP62gUOeLO7XYRxetmLWsyrDMKH9Vgl0qKEHlplhN15hc0WxTosmKLaiPRHEyu+Wy
 7duTiE+Xqi8E10eCv5k7Go3FIPkB0nC8yskCPqD1Hzvq7s4tBfB7k8/1i75ubbtl3w5c
 62dnEu2PCG1mfobN8ljzG9zwX3bJmduWAluK1dTIA8GfAPnPy+JSXSKtuFrhfxDIQxt4
 6evs70mGpiWIKlzHZK5ClFUHCBANvrrBZWOvqYmgsz4LY41PyAHUqt3WUBhP/7p1A5/y bQ== 
Received: from userv0022.oracle.com (userv0022.oracle.com [156.151.31.74])
 by userp2120.oracle.com with ESMTP id 2qyjfs22v2-1
 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK);
 Fri, 08 Mar 2019 19:48:53 +0000
Received: from userv0121.oracle.com (userv0121.oracle.com [156.151.31.72])
 by userv0022.oracle.com (8.14.4/8.14.4) with ESMTP id x28Jmq79017611
 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK);
 Fri, 8 Mar 2019 19:48:52 GMT
Received: from abhmp0002.oracle.com (abhmp0002.oracle.com [141.146.116.8])
 by userv0121.oracle.com (8.14.4/8.13.8) with ESMTP id x28JmqUF013092;
 Fri, 8 Mar 2019 19:48:52 GMT
MIME-Version: 1.0
Message-ID: <024ad4a1-4281-440e-93a6-a49927da1df6@default>
Date: Fri, 8 Mar 2019 11:48:51 -0800 (PST)
From: Drew Adams <drew.adams@HIDDEN>
To: Eli Zaretskii <eliz@HIDDEN>, Drew Adams <drew.adams@HIDDEN>
Subject: RE: bug#34749: 26.1; `delete-windows-on': (1) doc, (2) bug, (3) bug,
 (4) candidates
References: <<<<b375da42-2b65-4579-902c-85e9fdcaeac7@default>>>>
 <<<<83o96lacf8.fsf@HIDDEN>>>>
 <<<6aae54ec-85bf-4447-bec0-7c916caeb2f8@default>>>
 <<<83a7i59u85.fsf@HIDDEN>>> <<a1314708-0feb-4092-8b60-37d7282a328f@default>>
 <<834l8d9orm.fsf@HIDDEN>>
In-Reply-To: <<834l8d9orm.fsf@HIDDEN>>
X-Priority: 3
X-Mailer: Oracle Beehive Extensions for Outlook 2.0.1.9.1  (1003210) [OL
 16.0.4810.0 (x86)]
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: quoted-printable
X-Proofpoint-Virus-Version: vendor=nai engine=5900 definitions=9189
 signatures=668685
X-Proofpoint-Spam-Details: rule=notspam policy=default score=0
 priorityscore=1501 malwarescore=0
 suspectscore=0 phishscore=0 bulkscore=0 spamscore=0 clxscore=1015
 lowpriorityscore=0 mlxscore=0 impostorscore=0 mlxlogscore=704 adultscore=0
 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1810050000
 definitions=main-1903080138
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 34749
Cc: 34749 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

> > > > I was saying that the doc string should also mention
> > > > that in this case any prefix arg you provide is ignored.
> > >
> > > But if the effect of the prefix arg is mapped into the non-interactiv=
e
> > > arguments, then there's nothing more to say, right?
> >
> > Sorry, I don't follow you.
> >
> > The doc says that if the window is dedicated and alone
> > in its frame then the frame is deleted (provided it is
> > not the only frame).
> >
> > And the doc (now) presumably describes prefix-arg behavior.
> > But a prefix arg is ignored when the window is dedicated
> > and alone etc.  That info too needs to be provided, e.g.
> > in the doc describing prefix-arg behavior.
>=20
> What does prefix-arg have to do with this use case?

A user might use a prefix arg, regardless.  Telling her
that in this case the prefix arg is ignored (has nothing
to do with this case, in your words) lets her know not
to expect something; that is, this is a special case
where the prefix arg descriptions do not apply.

> AFAIU, the answer
> is "nothing", so there's nothing to be told, because the doc string
> changes I made just explain how the prefix argument maps into the
> FRAME argument.

I haven't seen the changes you made.  If it's clear now
that the prefix-arg descriptions do not apply in this
case then great.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#34749; Package emacs. Full text available.

Message received at 34749 <at> debbugs.gnu.org:


Received: (at 34749) by debbugs.gnu.org; 8 Mar 2019 19:45:58 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Mar 08 14:45:58 2019
Received: from localhost ([127.0.0.1]:36706 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1h2LRO-0002H9-8X
	for submit <at> debbugs.gnu.org; Fri, 08 Mar 2019 14:45:58 -0500
Received: from userp2130.oracle.com ([156.151.31.86]:47836)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <drew.adams@HIDDEN>) id 1h2LRM-0002Gu-Jr
 for 34749 <at> debbugs.gnu.org; Fri, 08 Mar 2019 14:45:57 -0500
Received: from pps.filterd (userp2130.oracle.com [127.0.0.1])
 by userp2130.oracle.com (8.16.0.27/8.16.0.27) with SMTP id x28JdEio077401;
 Fri, 8 Mar 2019 19:45:50 GMT
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com;
 h=mime-version :
 message-id : date : from : sender : to : cc : subject : references :
 in-reply-to : content-type : content-transfer-encoding; s=corp-2018-07-02;
 bh=v3TAH+LHxTGJBnQUtKevMwnpCcAKCDdASGFKo+dNqqc=;
 b=eNeufNqN4TU7tfaxGjM1imXSJZtt5pA+4SgqV5nhMHaQWB03iwbTI6d3F9cuiddNCdSq
 srqzp8VkCQ0qHbWWuX+QrEqsBNSI0YVI40ujjsF5TXADHTlkooNfVxm55iMMA1j0a/KU
 1+23wEVOr6HGtGzqhdqpfQyEpx9jt2jjY4VY8/wQRvObRjDpQ3QIZ62pdQCcMvFACqja
 WgOdDAn1FUnhJDLvY/6m03fynRnD1llyuSI7XMoS1W4uVysMeTRqGSlJEGIUpOCJdzx/
 3byqwD1lWAox4WE5zkhsK7p+oGampx2PERqhcA2Z6lH3QH+Aut4tStnJRH0Icu7OJ5X3 4A== 
Received: from userv0021.oracle.com (userv0021.oracle.com [156.151.31.71])
 by userp2130.oracle.com with ESMTP id 2qyh8ut6fj-1
 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK);
 Fri, 08 Mar 2019 19:45:49 +0000
Received: from aserv0122.oracle.com (aserv0122.oracle.com [141.146.126.236])
 by userv0021.oracle.com (8.14.4/8.14.4) with ESMTP id x28JjmnG005797
 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK);
 Fri, 8 Mar 2019 19:45:49 GMT
Received: from abhmp0002.oracle.com (abhmp0002.oracle.com [141.146.116.8])
 by aserv0122.oracle.com (8.14.4/8.14.4) with ESMTP id x28Jjlfa008229;
 Fri, 8 Mar 2019 19:45:47 GMT
MIME-Version: 1.0
Message-ID: <a026905a-b5fa-42f9-a002-992106f656a8@default>
Date: Fri, 8 Mar 2019 11:45:46 -0800 (PST)
From: Drew Adams <drew.adams@HIDDEN>
To: martin rudalics <rudalics@HIDDEN>, Eli Zaretskii <eliz@HIDDEN>
Subject: RE: bug#34749: 26.1; `delete-windows-on': (1) doc, (2) bug, (3) bug,
 (4) candidates
References: <b375da42-2b65-4579-902c-85e9fdcaeac7@default>
 <5C7E4BAB.3050508@HIDDEN> <83mum5accd.fsf@HIDDEN> <5C824BAC.4090907@HIDDEN>
 <83lg1pa4oa.fsf@HIDDEN> <5C82B9E1.1080302@HIDDEN>
In-Reply-To: <5C82B9E1.1080302@HIDDEN>
X-Priority: 3
X-Mailer: Oracle Beehive Extensions for Outlook 2.0.1.9.1  (1003210) [OL
 16.0.4810.0 (x86)]
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-Proofpoint-Virus-Version: vendor=nai engine=5900 definitions=9189
 signatures=668685
X-Proofpoint-Spam-Details: rule=notspam policy=default score=0
 priorityscore=1501 malwarescore=0
 suspectscore=0 phishscore=0 bulkscore=0 spamscore=0 clxscore=1015
 lowpriorityscore=0 mlxscore=0 impostorscore=0 mlxlogscore=999 adultscore=0
 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1810050000
 definitions=main-1903080137
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 34749
Cc: 34749 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

>  > I think we should simply try letting the user provide all possible
>  > values of the FRAME argument in interactive invocations, by using
>  > different forms of 'C-u'.
>=20
> I have no idea how to do that.  And when trying to read the
> documentation on 'interactive' I nowhere detected where the "\nP"
> convention is described (which apparently turns a function's last (?)
> argument into the prefix argument).  Can someone enlighten me?

Are you asking what "\nP" means/does?  If so, the "\n" separates
arguments and the "P" stands for `current-prefix-arg', i.e., the
raw prefix argument.  This is pretty well documented in (elisp)
`Using Interactive' and (elisp) `Interactive Codes'.

  a string; its contents are a sequence of elements
  separated by newlines, one for each argument(1).  Each element
  consists of a code character (*note Interactive Codes::) optionally
  followed by a prompt (which some code characters use and some
  ignore).  Here is an example:

       (interactive "P\nbFrobnicate buffer: ")

  The code letter =E2=80=98P=E2=80=99 sets the command=E2=80=99s first argu=
ment to the raw
  command prefix (*note Prefix Command Arguments::).





Information forwarded to bug-gnu-emacs@HIDDEN:
bug#34749; Package emacs. Full text available.

Message received at 34749 <at> debbugs.gnu.org:


Received: (at 34749) by debbugs.gnu.org; 8 Mar 2019 18:59:02 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Mar 08 13:59:02 2019
Received: from localhost ([127.0.0.1]:36669 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1h2Khy-0000wc-4P
	for submit <at> debbugs.gnu.org; Fri, 08 Mar 2019 13:59:02 -0500
Received: from eggs.gnu.org ([209.51.188.92]:42546)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <eliz@HIDDEN>) id 1h2Khv-0000wG-PU
 for 34749 <at> debbugs.gnu.org; Fri, 08 Mar 2019 13:59:00 -0500
Received: from fencepost.gnu.org ([2001:470:142:3::e]:44873)
 by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from <eliz@HIDDEN>)
 id 1h2Khq-000130-Er; Fri, 08 Mar 2019 13:58:54 -0500
Received: from [176.228.60.248] (port=1950 helo=home-c4e4a596f7)
 by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256)
 (Exim 4.82) (envelope-from <eliz@HIDDEN>)
 id 1h2Kho-0002Vx-KD; Fri, 08 Mar 2019 13:58:53 -0500
Date: Fri, 08 Mar 2019 20:58:37 +0200
Message-Id: <834l8d9orm.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
To: Drew Adams <drew.adams@HIDDEN>
In-reply-to: <a1314708-0feb-4092-8b60-37d7282a328f@default> (message from Drew
 Adams on Fri, 8 Mar 2019 09:14:32 -0800 (PST))
Subject: Re: bug#34749: 26.1; `delete-windows-on': (1) doc, (2) bug, (3) bug,
 (4) candidates
References: <<<b375da42-2b65-4579-902c-85e9fdcaeac7@default>>>
 <<<83o96lacf8.fsf@HIDDEN>>> <<6aae54ec-85bf-4447-bec0-7c916caeb2f8@default>>
 <<83a7i59u85.fsf@HIDDEN>> <a1314708-0feb-4092-8b60-37d7282a328f@default>
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic]
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 34749
Cc: 34749 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

> Date: Fri, 8 Mar 2019 09:14:32 -0800 (PST)
> From: Drew Adams <drew.adams@HIDDEN>
> Cc: 34749 <at> debbugs.gnu.org
> 
> > > I was saying that the doc string should also mention
> > > that in this case any prefix arg you provide is ignored.
> > 
> > But if the effect of the prefix arg is mapped into the non-interactive
> > arguments, then there's nothing more to say, right?
> 
> Sorry, I don't follow you.
> 
> The doc says that if the window is dedicated and alone
> in its frame then the frame is deleted (provided it is
> not the only frame).
> 
> And the doc (now) presumably describes prefix-arg behavior.
> But a prefix arg is ignored when the window is dedicated
> and alone etc.  That info too needs to be provided, e.g.
> in the doc describing prefix-arg behavior.

What does prefix-arg have to do with this use case?  AFAIU, the answer
is "nothing", so there's nothing to be told, because the doc string
changes I made just explain how the prefix argument maps into the
FRAME argument.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#34749; Package emacs. Full text available.

Message received at 34749 <at> debbugs.gnu.org:


Received: (at 34749) by debbugs.gnu.org; 8 Mar 2019 18:52:44 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Mar 08 13:52:44 2019
Received: from localhost ([127.0.0.1]:36649 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1h2Kbr-0000k8-Mi
	for submit <at> debbugs.gnu.org; Fri, 08 Mar 2019 13:52:43 -0500
Received: from mout.gmx.net ([212.227.15.19]:39857)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <rudalics@HIDDEN>) id 1h2Kbo-0000jo-KB
 for 34749 <at> debbugs.gnu.org; Fri, 08 Mar 2019 13:52:42 -0500
Received: from [192.168.1.101] ([212.95.5.181]) by mail.gmx.com (mrgmx002
 [212.227.17.190]) with ESMTPSA (Nemesis) id 0MIMQR-1h5LwR2xwd-004FXh; Fri, 08
 Mar 2019 19:52:28 +0100
Message-ID: <5C82B9E1.1080302@HIDDEN>
Date: Fri, 08 Mar 2019 19:52:17 +0100
From: martin rudalics <rudalics@HIDDEN>
MIME-Version: 1.0
To: Eli Zaretskii <eliz@HIDDEN>
Subject: Re: bug#34749: 26.1; `delete-windows-on': (1) doc, (2) bug, (3) bug,
 (4) candidates
References: <b375da42-2b65-4579-902c-85e9fdcaeac7@default>
 <5C7E4BAB.3050508@HIDDEN> <83mum5accd.fsf@HIDDEN> <5C824BAC.4090907@HIDDEN>
 <83lg1pa4oa.fsf@HIDDEN>
In-Reply-To: <83lg1pa4oa.fsf@HIDDEN>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
X-Provags-ID: V03:K1:fD0S9TVtC25Z9vqVi2QK5hS/z98o7Xsc2/AvXvUSycE57ZHkn0n
 qGDityFtSzugO776wM0tr9tMNvo5rqJAgFH2OFaTGikwLwPwwCtaaNEQyLpXUdpTl6B46mV
 gGZKBqwVGzS0j2/FGamFuUwQ3FLPxahBizAOIjTb/wn0ofAReX8s97m/g5mftF76/HnHkhm
 hgu11ZP55qfbB2oqlr3sw==
X-Spam-Flag: NO
X-UI-Out-Filterresults: notjunk:1;V03:K0:BdoI31KKHXs=:3XNpvg441KM5GjDDw/R03W
 s9RyYGyRyjiHKBaF4EeIr5FXUr/ICe0rhazS5LdG3xtwb/3zVh8V/IXrKYd36XrK4V+A+xHlY
 9WFOcxinz5DI7GQAgoc1yYDGSuo6TWC7AHdCpglt8dotE1fKSuWBZSr4v6s0DAciYdsyF5DHy
 APSN2eoK589pEUcdhyNEZs2iK8VFvwfiqLg/x2plg6U9G1aZfNP0bT++oF7hH3Jrx4vqW76rW
 mfFiqluarpqsjwc1Z+0mqKvO7qY9r5N1QIi4pJqYW4PEoaJ5xvtQMvKXiAi8AAKAysqOl5SpS
 wi750m/bzfM+jKLTBMYIG4Cm9+Ny7ytVdav00tp7JZKP76BaXGlpSJTsXjHEs8IUeeoEmGPkW
 AWEx1yTTB9G3G1KWqWV0LgG/mE7+1Sl31uyq6FOfpmXdYC0zIiOZKrkiGq09AANJjkaeVaHYD
 5jI/Vr+2Xb/gUb3PWDzrRNa/zNEmNQR0Fu7HKKinqE7KCK3IYMk0JL8B+wwRhGjNkQhrS23mZ
 aFr6L9pHf9UM9a1Bjs6b1iCEqHugmMP1CsnsThAvxL7op6OQp6vNeZDwTaLPItzxqofvNjUdC
 jOz0+l47tEd6pPucz2a5D830fRM6o0MaPtoA+lWAeIlKumI9UirQs3JLlN85g19ck3z3fCzHr
 u9/Fnr3tCYXoySBvlBIr9leEnEisCMbw3xfjxGoUZTQEbbupfSMiHsCIVVX8zqhJ+ZWZQ/aaP
 K1rgmhEfi21oX0OHyCnEm5k9GqISfK6KQjGnAgSFuK8QMxIKJAthf7GsLxAF/FDx3e0mqLyrI
 1tbNbqhfK0oJ78Ad/ROOG8IZQISiK+7VI4FQI804ukmaGq4aQmLLEi5C2ljXiG56Fst76JmVA
 NmLE7tvZ9xkFJ4doWR4Ygi/H/SpIkK8Q6X+ZCLwza1J8MTGGTW+yM3fOAMwRYXQTOtQQUOupW
 fYtlBr0M1Ig==
X-Spam-Score: -0.7 (/)
X-Debbugs-Envelope-To: 34749
Cc: 34749 <at> debbugs.gnu.org, drew.adams@HIDDEN
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.7 (-)

 > I think we should simply try letting the user provide all possible
 > values of the FRAME argument in interactive invocations, by using
 > different forms of 'C-u'.

I have no idea how to do that.  And when trying to read the
documentation on 'interactive' I nowhere detected where the "\nP"
convention is described (which apparently turns a function's last (?)
argument into the prefix argument).  Can someone enlighten me?

 > That'd be too radical, IMO.  I'd rather we described the exceptional
 > cases, because I think they would be rare.  Can you enumerate those
 > exceptions?

The doc-string should hopefully tell these details now.

 > I think it would be better to rework the interpretation of the prefix
 > arg so it makes sense.

The fact that 'delete-windows-on' is the only function (together with
its 'quit-window-on' clone) with the inverted meaning of the
FRAME/ALL-FRAMES argument makes me doubt that such an interpretation
would make sense.  But since I don't know how to specify prefix args
in the first place I'm probably not really entitled to such a comment.

martin




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#34749; Package emacs. Full text available.

Message received at 34749 <at> debbugs.gnu.org:


Received: (at 34749) by debbugs.gnu.org; 8 Mar 2019 17:14:43 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Mar 08 12:14:43 2019
Received: from localhost ([127.0.0.1]:36618 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1h2J50-0006Ny-SG
	for submit <at> debbugs.gnu.org; Fri, 08 Mar 2019 12:14:43 -0500
Received: from userp2130.oracle.com ([156.151.31.86]:37558)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <drew.adams@HIDDEN>) id 1h2J4z-0006Nl-G2
 for 34749 <at> debbugs.gnu.org; Fri, 08 Mar 2019 12:14:42 -0500
Received: from pps.filterd (userp2130.oracle.com [127.0.0.1])
 by userp2130.oracle.com (8.16.0.27/8.16.0.27) with SMTP id x28HDPjG150518;
 Fri, 8 Mar 2019 17:14:35 GMT
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com;
 h=mime-version :
 message-id : date : from : sender : to : cc : subject : references :
 in-reply-to : content-type : content-transfer-encoding; s=corp-2018-07-02;
 bh=lpTTMIf17XYklhRy1Gt+GmnwrpVEheBCrpKm1bIGCP8=;
 b=TAo9peN89ERoZQBIRttyVcpVsQfcndtjxD4siNkUcgBahPe0TZBL2O4NIhraip4pnk/0
 3Hc47S+C+XOJNGOneRs4rl8J81UJwY3vKBsjPYqhf7W8juf1sJA7mAGZvARf/4KyT53u
 OwJsjFTgsKvJhdeas14HPyZNd9KVEFoOM6XJjE5F5372Y2ahnpXFAcGsdDU9w+KQiXW0
 u41HpXztw9uZreOkCkqYyVr6SiQphAxnWbSk7hSpxXwuIhQ1bvc3jZ64nrfAXqARj90y
 NIwDfVQ2Sm3D864/ETRtsQlacx0Kd4KNnQYk5cbMWwot2zFtzSWc/k1r4KeNBE8KqvjS Kw== 
Received: from aserv0021.oracle.com (aserv0021.oracle.com [141.146.126.233])
 by userp2130.oracle.com with ESMTP id 2qyh8usfh1-1
 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK);
 Fri, 08 Mar 2019 17:14:35 +0000
Received: from userv0121.oracle.com (userv0121.oracle.com [156.151.31.72])
 by aserv0021.oracle.com (8.14.4/8.14.4) with ESMTP id x28HEYmG002519
 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK);
 Fri, 8 Mar 2019 17:14:34 GMT
Received: from abhmp0006.oracle.com (abhmp0006.oracle.com [141.146.116.12])
 by userv0121.oracle.com (8.14.4/8.13.8) with ESMTP id x28HEX4j024052;
 Fri, 8 Mar 2019 17:14:33 GMT
MIME-Version: 1.0
Message-ID: <a1314708-0feb-4092-8b60-37d7282a328f@default>
Date: Fri, 8 Mar 2019 09:14:32 -0800 (PST)
From: Drew Adams <drew.adams@HIDDEN>
To: Eli Zaretskii <eliz@HIDDEN>, Drew Adams <drew.adams@HIDDEN>
Subject: RE: bug#34749: 26.1; `delete-windows-on': (1) doc, (2) bug, (3) bug,
 (4) candidates
References: <<<b375da42-2b65-4579-902c-85e9fdcaeac7@default>>>
 <<<83o96lacf8.fsf@HIDDEN>>> <<6aae54ec-85bf-4447-bec0-7c916caeb2f8@default>>
 <<83a7i59u85.fsf@HIDDEN>>
In-Reply-To: <<83a7i59u85.fsf@HIDDEN>>
X-Priority: 3
X-Mailer: Oracle Beehive Extensions for Outlook 2.0.1.9.1  (1003210) [OL
 16.0.4810.0 (x86)]
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: quoted-printable
X-Proofpoint-Virus-Version: vendor=nai engine=5900 definitions=9189
 signatures=668685
X-Proofpoint-Spam-Details: rule=notspam policy=default score=0
 priorityscore=1501 malwarescore=0
 suspectscore=0 phishscore=0 bulkscore=0 spamscore=0 clxscore=1015
 lowpriorityscore=0 mlxscore=0 impostorscore=0 mlxlogscore=843 adultscore=0
 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1810050000
 definitions=main-1903080120
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 34749
Cc: 34749 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

> > > > The doc string should also say that a prefix arg is ignored when th=
e
> > > > condition of the last paragraph applies (dedicated window alone in
> > > > frame, with other frames existing), if that's true.
> > >
> > > I didn't understand what this alludes to.
> >
> > It refers to this behavior described in the current
> > doc string:
> >
> >   When a window showing BUFFER-OR-NAME is dedicated and
> >   the only window of its frame, that frame is deleted
> >   when there are other frames left.
> >
> > I was saying that the doc string should also mention
> > that in this case any prefix arg you provide is ignored.
>=20
> But if the effect of the prefix arg is mapped into the non-interactive
> arguments, then there's nothing more to say, right?

Sorry, I don't follow you.

The doc says that if the window is dedicated and alone
in its frame then the frame is deleted (provided it is
not the only frame).

And the doc (now) presumably describes prefix-arg behavior.
But a prefix arg is ignored when the window is dedicated
and alone etc.  That info too needs to be provided, e.g.
in the doc describing prefix-arg behavior.

If you've now done that, fine.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#34749; Package emacs. Full text available.

Message received at 34749 <at> debbugs.gnu.org:


Received: (at 34749) by debbugs.gnu.org; 8 Mar 2019 17:01:09 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Mar 08 12:01:09 2019
Received: from localhost ([127.0.0.1]:36603 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1h2Irs-00062O-Uq
	for submit <at> debbugs.gnu.org; Fri, 08 Mar 2019 12:01:09 -0500
Received: from eggs.gnu.org ([209.51.188.92]:47568)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <eliz@HIDDEN>) id 1h2Irr-000629-IN
 for 34749 <at> debbugs.gnu.org; Fri, 08 Mar 2019 12:01:07 -0500
Received: from fencepost.gnu.org ([2001:470:142:3::e]:42338)
 by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from <eliz@HIDDEN>)
 id 1h2Irl-0002uQ-Jj; Fri, 08 Mar 2019 12:01:02 -0500
Received: from [176.228.60.248] (port=2651 helo=home-c4e4a596f7)
 by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256)
 (Exim 4.82) (envelope-from <eliz@HIDDEN>)
 id 1h2Iri-0006Zp-Hr; Fri, 08 Mar 2019 12:00:59 -0500
Date: Fri, 08 Mar 2019 19:00:42 +0200
Message-Id: <83a7i59u85.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
To: Drew Adams <drew.adams@HIDDEN>
In-reply-to: <6aae54ec-85bf-4447-bec0-7c916caeb2f8@default> (message from Drew
 Adams on Fri, 8 Mar 2019 08:34:05 -0800 (PST))
Subject: Re: bug#34749: 26.1; `delete-windows-on': (1) doc, (2) bug, (3) bug,
 (4) candidates
References: <<b375da42-2b65-4579-902c-85e9fdcaeac7@default>>
 <<83o96lacf8.fsf@HIDDEN>> <6aae54ec-85bf-4447-bec0-7c916caeb2f8@default>
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic]
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 34749
Cc: 34749 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

> Date: Fri, 8 Mar 2019 08:34:05 -0800 (PST)
> From: Drew Adams <drew.adams@HIDDEN>
> Cc: 34749 <at> debbugs.gnu.org
> 
> > > The doc string should also say that a prefix arg is ignored when the
> > > condition of the last paragraph applies (dedicated window alone in
> > > frame, with other frames existing), if that's true.
> > 
> > I didn't understand what this alludes to.
> 
> It refers to this behavior described in the current
> doc string:
> 
>   When a window showing BUFFER-OR-NAME is dedicated and
>   the only window of its frame, that frame is deleted
>   when there are other frames left.
> 
> I was saying that the doc string should also mention
> that in this case any prefix arg you provide is ignored.

But if the effect of the prefix arg is mapped into the non-interactive
arguments, then there's nothing more to say, right?





Information forwarded to bug-gnu-emacs@HIDDEN:
bug#34749; Package emacs. Full text available.

Message received at 34749 <at> debbugs.gnu.org:


Received: (at 34749) by debbugs.gnu.org; 8 Mar 2019 16:34:18 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Mar 08 11:34:18 2019
Received: from localhost ([127.0.0.1]:36587 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1h2IRt-0005I8-1Q
	for submit <at> debbugs.gnu.org; Fri, 08 Mar 2019 11:34:18 -0500
Received: from userp2130.oracle.com ([156.151.31.86]:37786)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <drew.adams@HIDDEN>) id 1h2IRq-0005Hp-D1
 for 34749 <at> debbugs.gnu.org; Fri, 08 Mar 2019 11:34:15 -0500
Received: from pps.filterd (userp2130.oracle.com [127.0.0.1])
 by userp2130.oracle.com (8.16.0.27/8.16.0.27) with SMTP id x28GXTUI114677;
 Fri, 8 Mar 2019 16:34:08 GMT
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com;
 h=mime-version :
 message-id : date : from : sender : to : cc : subject : references :
 in-reply-to : content-type : content-transfer-encoding; s=corp-2018-07-02;
 bh=Tm+KyWTZLASV3o6rw78x0VuJ/xbhZs/+Va3wZ2MeqIo=;
 b=EmpUbSuympRbt1W0XaJ93xiqk4DGHDv8RdccUkpWTu6V2p/h6KHxRyZjZskdd8ZK/Vm4
 LxNq46FIDCBzMjpELkh5vdtwbYlO+MoQhY+MyvM5b/rNvnwnMT8TKLenFo23D+uRKe70
 e/BwBHfcJz2F6npNBuipXmOzf9KMu50qNiGZqmhZDCbKIquc2V3ljxRH6P/Jr7t7K+e6
 kqb8iOich9tRIKOeurXtPcjhtjqbqu7ntvys6tYdMBfB47mb51hEPm+j714FcoLob+EU
 7AjruIqCeAOKmFH79V48FR5NfuZ+5dO/KW5mWuXAGgVX368RXVtPblAlbw/07riXs1cg qQ== 
Received: from userv0022.oracle.com (userv0022.oracle.com [156.151.31.74])
 by userp2130.oracle.com with ESMTP id 2qyh8us88t-1
 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK);
 Fri, 08 Mar 2019 16:34:08 +0000
Received: from aserv0122.oracle.com (aserv0122.oracle.com [141.146.126.236])
 by userv0022.oracle.com (8.14.4/8.14.4) with ESMTP id x28GY7NU001000
 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK);
 Fri, 8 Mar 2019 16:34:07 GMT
Received: from abhmp0006.oracle.com (abhmp0006.oracle.com [141.146.116.12])
 by aserv0122.oracle.com (8.14.4/8.14.4) with ESMTP id x28GY6ZA028590;
 Fri, 8 Mar 2019 16:34:06 GMT
MIME-Version: 1.0
Message-ID: <6aae54ec-85bf-4447-bec0-7c916caeb2f8@default>
Date: Fri, 8 Mar 2019 08:34:05 -0800 (PST)
From: Drew Adams <drew.adams@HIDDEN>
To: Eli Zaretskii <eliz@HIDDEN>, Drew Adams <drew.adams@HIDDEN>
Subject: RE: bug#34749: 26.1; `delete-windows-on': (1) doc, (2) bug, (3) bug,
 (4) candidates
References: <<b375da42-2b65-4579-902c-85e9fdcaeac7@default>>
 <<83o96lacf8.fsf@HIDDEN>>
In-Reply-To: <<83o96lacf8.fsf@HIDDEN>>
X-Priority: 3
X-Mailer: Oracle Beehive Extensions for Outlook 2.0.1.9.1  (1003210) [OL
 16.0.4810.0 (x86)]
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: quoted-printable
X-Proofpoint-Virus-Version: vendor=nai engine=5900 definitions=9189
 signatures=668685
X-Proofpoint-Spam-Details: rule=notspam policy=default score=0
 priorityscore=1501 malwarescore=0
 suspectscore=0 phishscore=0 bulkscore=0 spamscore=0 clxscore=1011
 lowpriorityscore=0 mlxscore=0 impostorscore=0 mlxlogscore=999 adultscore=0
 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1810050000
 definitions=main-1903080115
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 34749
Cc: 34749 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

> > 1. The doc string should first of all completely describe the
> > interactive behavior and only secondarily describe the Lisp behavior
> > (completely).
> >
> > In particular, this doc string should say explicitly what happens with =
a
> > prefix arg, including what happens with different kinds of raw prefix
> > arg (including, but not limited to, 0).
>=20
> I fixed this, although not regarding the order. the doc string is not
> too long, so interspersing the description of interactive behavior
> with non-interactive is not a catastrophe.

Thank you.

Agreed.  By "first of all" and "only secondarily" I meant
importance more than order.  I meant that for a command
the interactive use is more important to document (but
both are important).  (And yes, it is typically presented
first, but that's not imperative, and yes, sometimes it
makes more sense to intersperse interactive and non.)

> Btw, it is a pity that only the prefix arg of zero is useful in
> interactive usage, which doesn't let the user select the other
> behaviors regarding the optional FRAME argument.  I think this
> could/should be improved by relatively straightforward changes that
> use values of prefix arg other than zero.

Both you and Martin have now opened a discussion about
possible improvements to the command/function behavior.

I agree that it could be improved.  And I agree with
you that discussion of that should probably happen
outside this bug thread.
_____

Nevertheless and FWIW (toward that discussion):

I've long (since 1996) had my own version of
`delete-windows-on', which differs in the following ways.
My version is not completely up-to-date wrt the latest
vanilla implementation, but the changes I've made are
still relevant, I think.  Here is the code comment that
summarizes my changes:

;; REPLACES ORIGINAL in `window.el' (built-in prior to Emacs 24.5):
;;
;; 1) Use `read-buffer' in interactive spec.
;; 2) Do not raise an error if BUFFER is a string that
;;    does not name a buffer.
;; 3) Call `delete-window', so if you use the advised
;;    `delete-window' here then this also deletes frames
;;    where window showing the BUFFER is the only window.

#3 refers to my advised version of `delete-window', which
does just `delete-frame' if WINDOW is the only one in its
frame.

My code is in `frame-cmds.el':
https://www.emacswiki.org/emacs/download/frame-cmds.el

I also have this related command there, FWIW (since 2006),
which, for my personal use, I bind to the keys that are
normally bound to `delete-window':

(defun delete-windows-for (&optional buffer)
  "`delete-window' or prompt for buffer and delete its windows.
With no prefix arg, delete the selected window.
With a prefix arg, prompt for a buffer and delete all windows, on any
  frame, that show that buffer."
  (interactive (list (and current-prefix-arg
                     (frcmds-read-buffer-for-delete-windows))))
  (if buffer (delete-windows-on buffer) (delete-window)))

Function `frcmds-read-buffer-for-delete-windows' is used
by both `delete-windows-on' and `delete-windows-for'.
It offers only displayed buffers as completion candidates.
=20
> > The doc string should also say that a prefix arg is ignored when the
> > condition of the last paragraph applies (dedicated window alone in
> > frame, with other frames existing), if that's true.
>=20
> I didn't understand what this alludes to.

It refers to this behavior described in the current
doc string:

  When a window showing BUFFER-OR-NAME is dedicated and
  the only window of its frame, that frame is deleted
  when there are other frames left.

I was saying that the doc string should also mention
that in this case any prefix arg you provide is ignored.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#34749; Package emacs. Full text available.

Message received at 34749 <at> debbugs.gnu.org:


Received: (at 34749) by debbugs.gnu.org; 8 Mar 2019 13:15:38 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Mar 08 08:15:38 2019
Received: from localhost ([127.0.0.1]:35932 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1h2FLd-0006Vr-Qq
	for submit <at> debbugs.gnu.org; Fri, 08 Mar 2019 08:15:38 -0500
Received: from eggs.gnu.org ([209.51.188.92]:50493)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <eliz@HIDDEN>) id 1h2FLZ-0006Vc-I1
 for 34749 <at> debbugs.gnu.org; Fri, 08 Mar 2019 08:15:35 -0500
Received: from fencepost.gnu.org ([2001:470:142:3::e]:37600)
 by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from <eliz@HIDDEN>)
 id 1h2FLQ-0008Ov-Fn; Fri, 08 Mar 2019 08:15:24 -0500
Received: from [176.228.60.248] (port=3942 helo=home-c4e4a596f7)
 by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256)
 (Exim 4.82) (envelope-from <eliz@HIDDEN>)
 id 1h2FLM-00070G-OZ; Fri, 08 Mar 2019 08:15:21 -0500
Date: Fri, 08 Mar 2019 15:15:01 +0200
Message-Id: <83lg1pa4oa.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
To: martin rudalics <rudalics@HIDDEN>
In-reply-to: <5C824BAC.4090907@HIDDEN> (message from martin rudalics on Fri,
 08 Mar 2019 12:02:04 +0100)
Subject: Re: bug#34749: 26.1; `delete-windows-on': (1) doc, (2) bug, (3) bug,
 (4) candidates
References: <b375da42-2b65-4579-902c-85e9fdcaeac7@default>
 <5C7E4BAB.3050508@HIDDEN> <83mum5accd.fsf@HIDDEN> <5C824BAC.4090907@HIDDEN>
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic]
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 34749
Cc: 34749 <at> debbugs.gnu.org, drew.adams@HIDDEN
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

> Date: Fri, 08 Mar 2019 12:02:04 +0100
> From: martin rudalics <rudalics@HIDDEN>
> CC: drew.adams@HIDDEN, 34749 <at> debbugs.gnu.org
> 
> About "what behavior would be best if (as it seems) we still need to
> design this".  I don't use this function so I don't have any ideas
> about what behavior would be best.

I think we should simply try letting the user provide all possible
values of the FRAME argument in interactive invocations, by using
different forms of 'C-u'.

>  > Why is Emacs behaving unlike the doc string says?
> 
> I think because this function has to work in some ad hoc manner, for
> example, when a window is not dedicated and alone on its frame.  The
> initial claim "Delete all windows showing BUFFER-OR-NAME." is simply
> wrong in this regard.  Maybe we should say "Try to delete all windows
> showing BUFFER-OR-NAME." instead.

That'd be too radical, IMO.  I'd rather we described the exceptional
cases, because I think they would be rare.  Can you enumerate those
exceptions?

> But I'm not keen rewriting this doc-string because I never documented
> the behavior of the prefix argument as Drew requested.  I simply don't
> understand how that works.

I think it would be better to rework the interpretation of the prefix
arg so it makes sense.

Thanks.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#34749; Package emacs. Full text available.

Message received at 34749 <at> debbugs.gnu.org:


Received: (at 34749) by debbugs.gnu.org; 8 Mar 2019 11:02:28 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Mar 08 06:02:27 2019
Received: from localhost ([127.0.0.1]:35892 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1h2DGl-0007g3-J5
	for submit <at> debbugs.gnu.org; Fri, 08 Mar 2019 06:02:27 -0500
Received: from mout.gmx.net ([212.227.17.20]:45483)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <rudalics@HIDDEN>) id 1h2DGk-0007fl-1d
 for 34749 <at> debbugs.gnu.org; Fri, 08 Mar 2019 06:02:26 -0500
Received: from [192.168.1.101] ([212.95.5.181]) by mail.gmx.com (mrgmx103
 [212.227.17.168]) with ESMTPSA (Nemesis) id 0M4GND-1gkP8G00Jf-00rnLf; Fri, 08
 Mar 2019 12:02:15 +0100
Message-ID: <5C824BAC.4090907@HIDDEN>
Date: Fri, 08 Mar 2019 12:02:04 +0100
From: martin rudalics <rudalics@HIDDEN>
MIME-Version: 1.0
To: Eli Zaretskii <eliz@HIDDEN>
Subject: Re: bug#34749: 26.1; `delete-windows-on': (1) doc, (2) bug, (3) bug,
 (4) candidates
References: <b375da42-2b65-4579-902c-85e9fdcaeac7@default>
 <5C7E4BAB.3050508@HIDDEN> <83mum5accd.fsf@HIDDEN>
In-Reply-To: <83mum5accd.fsf@HIDDEN>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
X-Provags-ID: V03:K1:2KJf5Jw8T95qec4HM9bx4KhGMaLZGBRh4X3MGOzUtFf9QeJSKIm
 WwgyHBFfjYHGY8lukX7w5++4wnkWFhVpFOkDJn4IkG4VuHDt+6I1JT7wQeFFIriKlZl2FpJ
 bif+5p85oHNIp1vwHdFTk29mbA+8j2P6LiYB+1Ap8oDru8rN+q9gAVxr6njFGYEV1m3dIlL
 /waTinpOZXTJ5OhszyKUw==
X-Spam-Flag: NO
X-UI-Out-Filterresults: notjunk:1;V03:K0:J/DfRL3p/XI=:gZw8Pvv1orAsNN5uP5EX4U
 QrW6Yaw63APdYK1nS5xEbafDrWkoltkkvqQWGd4K3FW8UEmKwAH1DuvgMHH9ipxocKPh/KA86
 XUrq9HPbJ6pmWVZgtJhTcG4kHIsPocaO61Rlu6Zhl0YVhGpYKNVvjykGkiAa1IhFEGM3V5Dzu
 BhIMwc2JYLetjyMMH2J2/eNjuc3WByzp7mrehUg4seRSLWRvN5MpciN8lyaaN0j5FUtuiZ9mT
 PsS/dXsnXq7ccduAYUqydICWb3jK9OvB0IHWXywg+UxxutQ0T3FIXY/PQNMI52Fxs8Pob/qLW
 DaX/iQ0cJ6E5BPgt2+9wlwBofxXrhRDkmFKYRVNZjzTuVQAGZ+HRIe6kDfdfccnENtoT83Qud
 Ysn5WirA/gEjybSqyRM1i365Bdsr0EkphUx37diiVjTjQw12u0Ku442DqCN56T1YncR7Yp54M
 qs2PMsMxrTA1sKI+8nbT660kmcv8xk/VhWRgc8/57tm/zey5eGxB4sUKznHiWt+jADtHDys/o
 bMGxpxuIpOx0cko1MVUYXuCI7w+kGJCd0OIQo11RzL7uGkmT0weMlLCUjos4YqxP/U3bjhddm
 SS2OrHEulqZi/T/bwblKqO2DtF2am/v77ICWulyxrw3YgbHoBbYMnJyXSBYwAveRlFBsWyvZd
 udKlBm+tQcYDUKxUkiILNayXuCHFBWM12s0WLAYDxRDftV4f5hvGsi7cyjw8HSJVgYeJ6WgzJ
 mIwtQ6aAUJoqpifNtFqxHaJyPzqrLbTGXe3Zqh2nm9SDD9a11L1fX0i+RiOg0h2C32qhxxA80
 N50B6owtO/gkQfJL4n9aM+L3YLbQArw3TtzNcRbEI20knkg/AqGD8lJtk2jZrPmiO/8agF054
 CBnaZyy94rTRE6Wwvq5Lt9xxZ5vz6cXPf8q5QguTR+iQraQ+6QBNwlba7aZQiVHyMkKCfqbYY
 sJYHbMpmq8Q==
X-Spam-Score: -0.7 (/)
X-Debbugs-Envelope-To: 34749
Cc: 34749 <at> debbugs.gnu.org, drew.adams@HIDDEN
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.7 (-)

 >>   > It seems like the interactive behavior is not correct, as well as being
 >>   > poorly documented.  It's hard to know just what behavior was intended,
 >>   > or what behavior would be best if (as it seems) we still need to design
 >>   > this.
 >>
 >> If anyone has any ideas, we should implement that.  Suggestions highly
 >> welcome.
 >
 > I don't understand what you are asking about.

About "what behavior would be best if (as it seems) we still need to
design this".  I don't use this function so I don't have any ideas
about what behavior would be best.

 > It sounds like Drew has
 > pointed out some inconsistencies between the doc string and the actual
 > behavior, and we should first fix those inconsistencies for the
 > release branch, probably by fixing the doc string.
 >
 > Why is Emacs behaving unlike the doc string says?

I think because this function has to work in some ad hoc manner, for
example, when a window is not dedicated and alone on its frame.  The
initial claim "Delete all windows showing BUFFER-OR-NAME." is simply
wrong in this regard.  Maybe we should say "Try to delete all windows
showing BUFFER-OR-NAME." instead.

But I'm not keen rewriting this doc-string because I never documented
the behavior of the prefix argument as Drew requested.  I simply don't
understand how that works.

martin




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#34749; Package emacs. Full text available.

Message received at 34749 <at> debbugs.gnu.org:


Received: (at 34749) by debbugs.gnu.org; 8 Mar 2019 10:29:51 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Mar 08 05:29:51 2019
Received: from localhost ([127.0.0.1]:35869 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1h2ClC-0006mC-P9
	for submit <at> debbugs.gnu.org; Fri, 08 Mar 2019 05:29:51 -0500
Received: from eggs.gnu.org ([209.51.188.92]:40473)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <eliz@HIDDEN>) id 1h2ClB-0006ly-7X
 for 34749 <at> debbugs.gnu.org; Fri, 08 Mar 2019 05:29:49 -0500
Received: from fencepost.gnu.org ([2001:470:142:3::e]:54250)
 by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from <eliz@HIDDEN>)
 id 1h2Cl4-0000mg-Qk; Fri, 08 Mar 2019 05:29:43 -0500
Received: from [176.228.60.248] (port=1739 helo=home-c4e4a596f7)
 by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256)
 (Exim 4.82) (envelope-from <eliz@HIDDEN>)
 id 1h2Ckz-00018W-UA; Fri, 08 Mar 2019 05:29:39 -0500
Date: Fri, 08 Mar 2019 12:29:22 +0200
Message-Id: <83mum5accd.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
To: martin rudalics <rudalics@HIDDEN>
In-reply-to: <5C7E4BAB.3050508@HIDDEN> (message from martin rudalics on Tue,
 05 Mar 2019 11:12:59 +0100)
Subject: Re: bug#34749: 26.1;
 `delete-windows-on': (1) doc, (2) bug, (3) bug, (4) candidates
References: <b375da42-2b65-4579-902c-85e9fdcaeac7@default>
 <5C7E4BAB.3050508@HIDDEN>
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic]
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 34749
Cc: 34749 <at> debbugs.gnu.org, drew.adams@HIDDEN
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

> Date: Tue, 05 Mar 2019 11:12:59 +0100
> From: martin rudalics <rudalics@HIDDEN>
> 
>  > It seems like the interactive behavior is not correct, as well as being
>  > poorly documented.  It's hard to know just what behavior was intended,
>  > or what behavior would be best if (as it seems) we still need to design
>  > this.
> 
> If anyone has any ideas, we should implement that.  Suggestions highly
> welcome.

I don't understand what you are asking about.  It sounds like Drew has
pointed out some inconsistencies between the doc string and the actual
behavior, and we should first fix those inconsistencies for the
release branch, probably by fixing the doc string.

Why is Emacs behaving unlike the doc string says?




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#34749; Package emacs. Full text available.

Message received at 34749 <at> debbugs.gnu.org:


Received: (at 34749) by debbugs.gnu.org; 8 Mar 2019 10:28:09 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Mar 08 05:28:09 2019
Received: from localhost ([127.0.0.1]:35864 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1h2CjX-0006jZ-T4
	for submit <at> debbugs.gnu.org; Fri, 08 Mar 2019 05:28:09 -0500
Received: from eggs.gnu.org ([209.51.188.92]:39964)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <eliz@HIDDEN>) id 1h2CjW-0006j5-20
 for 34749 <at> debbugs.gnu.org; Fri, 08 Mar 2019 05:28:06 -0500
Received: from fencepost.gnu.org ([2001:470:142:3::e]:54132)
 by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from <eliz@HIDDEN>)
 id 1h2CjP-0007ut-8g; Fri, 08 Mar 2019 05:28:00 -0500
Received: from [176.228.60.248] (port=1635 helo=home-c4e4a596f7)
 by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256)
 (Exim 4.82) (envelope-from <eliz@HIDDEN>)
 id 1h2CjN-0000rC-PW; Fri, 08 Mar 2019 05:27:58 -0500
Date: Fri, 08 Mar 2019 12:27:39 +0200
Message-Id: <83o96lacf8.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
To: Drew Adams <drew.adams@HIDDEN>
In-reply-to: <b375da42-2b65-4579-902c-85e9fdcaeac7@default> (message from Drew
 Adams on Mon, 4 Mar 2019 08:25:54 -0800 (PST))
Subject: Re: bug#34749: 26.1;
 `delete-windows-on': (1) doc, (2) bug, (3) bug, (4) candidates
References: <b375da42-2b65-4579-902c-85e9fdcaeac7@default>
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic]
X-Spam-Score: -0.0 (/)
X-Debbugs-Envelope-To: 34749
Cc: 34749 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

> Date: Mon, 4 Mar 2019 08:25:54 -0800 (PST)
> From: Drew Adams <drew.adams@HIDDEN>
> 
> 1. The doc string should first of all completely describe the
> interactive behavior and only secondarily describe the Lisp behavior
> (completely).
> 
> In particular, this doc string should say explicitly what happens with a
> prefix arg, including what happens with different kinds of raw prefix
> arg (including, but not limited to, 0).

I fixed this, although not regarding the order.  the doc string is not
too long, so interspersing the description of interactive behavior
with non-interactive is not a catastrophe.

Btw, it is a pity that only the prefix arg of zero is useful in
interactive usage, which doesn't let the user select the other
behaviors regarding the optional FRAME argument.  I think this
could/should be improved by relatively straightforward changes that
use values of prefix arg other than zero.

> The doc string should also say that a prefix arg is ignored when the
> condition of the last paragraph applies (dedicated window alone in
> frame, with other frames existing), if that's true.

I didn't understand what this alludes to.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#34749; Package emacs. Full text available.

Message received at 34749 <at> debbugs.gnu.org:


Received: (at 34749) by debbugs.gnu.org; 5 Mar 2019 10:13:16 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue Mar 05 05:13:16 2019
Received: from localhost ([127.0.0.1]:60590 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1h174W-0004NY-DA
	for submit <at> debbugs.gnu.org; Tue, 05 Mar 2019 05:13:16 -0500
Received: from mout.gmx.net ([212.227.17.22]:59241)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <rudalics@HIDDEN>) id 1h174U-0004NJ-VH
 for 34749 <at> debbugs.gnu.org; Tue, 05 Mar 2019 05:13:15 -0500
Received: from [192.168.1.101] ([212.95.5.19]) by mail.gmx.com (mrgmx103
 [212.227.17.168]) with ESMTPSA (Nemesis) id 0MXqV1-1gUvLz3AQR-00Wk9y; Tue, 05
 Mar 2019 11:13:04 +0100
Message-ID: <5C7E4BAB.3050508@HIDDEN>
Date: Tue, 05 Mar 2019 11:12:59 +0100
From: martin rudalics <rudalics@HIDDEN>
MIME-Version: 1.0
To: Drew Adams <drew.adams@HIDDEN>, 34749 <at> debbugs.gnu.org
Subject: Re: bug#34749: 26.1; `delete-windows-on': (1) doc, (2) bug, (3) bug,
 (4) candidates
References: <b375da42-2b65-4579-902c-85e9fdcaeac7@default>
In-Reply-To: <b375da42-2b65-4579-902c-85e9fdcaeac7@default>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
X-Provags-ID: V03:K1:zcS89Sp991pMbuMRxtBmhGXRuHMexK3sfbl0CFd19fNEPVZCxLX
 cSn5zAxuQIcjLkqMTGGASkGVhvXwFh89seKDNvhjTxDwQdw0qK2rfQwmXshIU3Hv5m0r0mY
 9xaQyc2DBUNBeWze6Yjnn2FICWSpIuhKT3wjvSkZ3NoKzN9MhKQk+qgMqo6AjYMfl5NI1sY
 GrDigRDaMiesJOp5GOJww==
X-Spam-Flag: NO
X-UI-Out-Filterresults: notjunk:1;V03:K0:e/n5BuHA6B8=:G8eO8N7elFxp3epwCOLpfK
 qQDQxUru9of1/LP8eubCAYd5cbaS9J2kmJzKNPkodzjfkW1NSMMFDfviiZrTZKyks2zMh4YcS
 mDqyCt56AGHiiTuTo9FaxV+Xv94iuulSpSEJ436ED91Y26cqpoLJnrB0VK74rQ7gBrQklLuTg
 zg7F/H3Bfo5GZxiv07asvT9etV8aZT+TSTBFV37/oMxs5D2aoTjzIiQ4+rcMtSBUW9F7ZPJP8
 wrSpt2HxFLaGVm0MtSVzkDm7AYM5CIEJ/6K5W7TKOjGSkLZKRWKYCcSIofjo93P3gFI3xXL9A
 y8IRMVHnt/9qYXJPO6WHRMA+y9Bzfv0ijD3efggz+d5zFmkHwcNJuZ9gc52yc2nppNgkkkfx5
 aZo2NyNmczmYf62PRoCJOJ0kSVAn+QetLcIHBX6/1vCpm9aYy/oqYeMKsnn61pRriA4V1mGYz
 ZzyxK06tMPuArubGonJLbTmGkFcI6Wpcj2/LlaLQ1iqmMOYKiRLF6P5laJXxXdvnoYFZ3j/Jx
 LAiI1qU4TRm0TUtPP/VrWNk9UpWk+Q9tnd4P0C7DQ7qreVqG04Ouf7AKhmdrKYGo00gyL3jQ3
 2sW6gxgyEa77nkA/zmcjQozYiyciJqYJV+BhhUICsND7wIpVDAcLlQADmyoqwisi1lJgaom4x
 7XGapUFyZkgI/OrOjv+2PH5O9FnWTsPsOKdGYHVj2cHSBj9J56+U03rvTrvLTntfka1PXkbww
 ZJn9zddThJi8M7iJOAqpm8/zFSuaIJsCktlQTrAJmfx3YR3CK+9HaLsa+l1+Ifj9PxXht3wl+
 Zg+hLyNLR/oYju00H4ZXgeuaRwLdVjwRAAu+yVL3RJSsup3lMV15GWHQdM4EPtEmd0v3Qpcw6
 1lVY0pTt8NxUBb7S/gmm0eJN4UWK9BAcGVS65j7bnH1Y++FfROJccc/eqL7bZ+Lovc41eq/wM
 U7sbGEoDWUQ==
X-Spam-Score: -0.7 (/)
X-Debbugs-Envelope-To: 34749
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.7 (-)

 > It seems like the interactive behavior is not correct, as well as being
 > poorly documented.  It's hard to know just what behavior was intended,
 > or what behavior would be best if (as it seems) we still need to design
 > this.

If anyone has any ideas, we should implement that.  Suggestions highly
welcome.

 > 3. Why is `B' used in the interactive spec instead of `b'?  What's the
 > use case for deleting windows showing a nonexistent buffer?

I hopefully fixed that now on master.

 > 4. The buffer candidates available for completion (which should also be
 > the only buffer names available for entry - see #3) should depend on
 > which frames are used, i.e., on the prefix arg or its absence.
 >
 > You should be presented only with the names of buffers that are actually
 > shown in windows on the frames that you've chosen to consider for
 > window-deletion.

Good idea.

martin




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#34749; Package emacs. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 4 Mar 2019 16:26:08 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Mar 04 11:26:07 2019
Received: from localhost ([127.0.0.1]:60119 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1h0qPn-0008CF-Iv
	for submit <at> debbugs.gnu.org; Mon, 04 Mar 2019 11:26:07 -0500
Received: from eggs.gnu.org ([209.51.188.92]:60112)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <drew.adams@HIDDEN>) id 1h0qPm-0008Bk-7E
 for submit <at> debbugs.gnu.org; Mon, 04 Mar 2019 11:26:06 -0500
Received: from lists.gnu.org ([209.51.188.17]:42799)
 by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32)
 (Exim 4.71) (envelope-from <drew.adams@HIDDEN>)
 id 1h0qPh-0003bp-2T
 for submit <at> debbugs.gnu.org; Mon, 04 Mar 2019 11:26:01 -0500
Received: from eggs.gnu.org ([209.51.188.92]:46259)
 by lists.gnu.org with esmtp (Exim 4.71)
 (envelope-from <drew.adams@HIDDEN>) id 1h0qPg-0006Nb-2L
 for bug-gnu-emacs@HIDDEN; Mon, 04 Mar 2019 11:26:00 -0500
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org
X-Spam-Level: 
X-Spam-Status: No, score=-1.5 required=5.0 tests=BAYES_50,RCVD_IN_DNSWL_MED
 autolearn=disabled version=3.3.2
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <drew.adams@HIDDEN>) id 1h0qPf-0003Yb-6c
 for bug-gnu-emacs@HIDDEN; Mon, 04 Mar 2019 11:26:00 -0500
Received: from userp2130.oracle.com ([156.151.31.86]:33360)
 by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32)
 (Exim 4.71) (envelope-from <drew.adams@HIDDEN>)
 id 1h0qPe-0003Vy-T5
 for bug-gnu-emacs@HIDDEN; Mon, 04 Mar 2019 11:25:59 -0500
Received: from pps.filterd (userp2130.oracle.com [127.0.0.1])
 by userp2130.oracle.com (8.16.0.27/8.16.0.27) with SMTP id x24GIsqg150182
 for <bug-gnu-emacs@HIDDEN>; Mon, 4 Mar 2019 16:25:57 GMT
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com;
 h=mime-version :
 message-id : date : from : sender : to : subject : content-type :
 content-transfer-encoding; s=corp-2018-07-02;
 bh=mlnzFqBrJwzUxT7aWXGSoXcv820e1pIjueMkkGrGw7g=;
 b=aEmOPriI0MEbzbWGhKiS4rDVQdbMl3FGcd5DNMHxEvNbKEVYjGUQ2DhAS/Bv4xDRmoxA
 L4a/jOuqHg4IxV582vTR98+DZirYJMQbu+mhB6t8C/aVbNIi3XZrx0q1QEs3sbRp+Qpi
 U6HGM7IESGFn+OXsA1PU6RFLQWkrLY90IuSmCRR6C9DWVIu6l06XF/jSzv979E+6jiEW
 mXZRweIBR0W6PflRjCA2CPo5Y+taEAjwOyzBViu3dXICN6EIrUcpqXOleZloR2HJAxYd
 FJXv6XPhvptoSUzN8tyFRGWR56mdC4nyPh55/bi4bVld3upd9WwfC4dv8PFwG8K82j9G 0g== 
Received: from userv0021.oracle.com (userv0021.oracle.com [156.151.31.71])
 by userp2130.oracle.com with ESMTP id 2qyh8tyvn9-1
 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK)
 for <bug-gnu-emacs@HIDDEN>; Mon, 04 Mar 2019 16:25:56 +0000
Received: from aserv0122.oracle.com (aserv0122.oracle.com [141.146.126.236])
 by userv0021.oracle.com (8.14.4/8.14.4) with ESMTP id x24GPtDs004005
 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK)
 for <bug-gnu-emacs@HIDDEN>; Mon, 4 Mar 2019 16:25:56 GMT
Received: from abhmp0005.oracle.com (abhmp0005.oracle.com [141.146.116.11])
 by aserv0122.oracle.com (8.14.4/8.14.4) with ESMTP id x24GPtpv010872
 for <bug-gnu-emacs@HIDDEN>; Mon, 4 Mar 2019 16:25:55 GMT
MIME-Version: 1.0
Message-ID: <b375da42-2b65-4579-902c-85e9fdcaeac7@default>
Date: Mon, 4 Mar 2019 08:25:54 -0800 (PST)
From: Drew Adams <drew.adams@HIDDEN>
To: bug-gnu-emacs@HIDDEN
Subject: 26.1; `delete-windows-on': (1) doc, (2) bug, (3) bug, (4) candidates
X-Priority: 3
X-Mailer: Oracle Beehive Extensions for Outlook 2.0.1.9.1  (1003210) [OL
 16.0.4810.0 (x86)]
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: quoted-printable
X-Proofpoint-Virus-Version: vendor=nai engine=5900 definitions=9185
 signatures=668685
X-Proofpoint-Spam-Details: rule=notspam policy=default score=0
 priorityscore=1501 malwarescore=0
 suspectscore=1 phishscore=0 bulkscore=0 spamscore=0 clxscore=1015
 lowpriorityscore=0 mlxscore=0 impostorscore=0 mlxlogscore=999 adultscore=0
 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1810050000
 definitions=main-1903040119
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [generic]
X-Received-From: 156.151.31.86
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x
X-Spam-Score: 1.0 (+)
X-Debbugs-Envelope-To: submit
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -0.0 (/)

There are several things wrong with `delete-windows-on', and several things=
 that call for improvement.


1. The doc string should first of all completely describe the
interactive behavior and only secondarily describe the Lisp behavior
(completely).

In particular, this doc string should say explicitly what happens with a
prefix arg, including what happens with different kinds of raw prefix
arg (including, but not limited to, 0).

The doc string should also say that a prefix arg is ignored when the
condition of the last paragraph applies (dedicated window alone in
frame, with other frames existing), if that's true.

In general: Please fix the doc string to provide a correct and complete
description of the interactive behavior.


2. The doc string says that when FRAME is anything other than t,
`visible', 0, or a frame then all windows showing the buffer on any
frame are deleted.  But that's not the case:

emacs -Q

`C-h f delete-windows-on'

With window *Help* selected: `C-x 5 2', to display it also in another
frame.

With window *Help* in the original frame selected:
`C-u M-x delete-windows-on *Help*'

Only the *Help* window on the selected frame is deleted, not the one on
the separate frame.  But the doc says that FRAME, which is `(4)' should
cause all windows showing buffer *Help* to be deleted from all frames.

It seems like the interactive behavior is not correct, as well as being
poorly documented.  It's hard to know just what behavior was intended,
or what behavior would be best if (as it seems) we still need to design
this.


3. Why is `B' used in the interactive spec instead of `b'?  What's the
use case for deleting windows showing a nonexistent buffer?


4. The buffer candidates available for completion (which should also be
the only buffer names available for entry - see #3) should depend on
which frames are used, i.e., on the prefix arg or its absence.

You should be presented only with the names of buffers that are actually
shown in windows on the frames that you've chosen to consider for
window-deletion.

In GNU Emacs 26.1 (build 1, x86_64-w64-mingw32)
 of 2018-05-30
Repository revision: 07f8f9bc5a51f5aa94eb099f3e15fbe0c20ea1ea
Windowing system distributor `Microsoft Corp.', version 10.0.17134
Configured using:
 `configure --without-dbus --host=3Dx86_64-w64-mingw32
 --without-compress-install 'CFLAGS=3D-O2 -static -g3''




Acknowledgement sent to Drew Adams <drew.adams@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs@HIDDEN. Full text available.
Report forwarded to bug-gnu-emacs@HIDDEN:
bug#34749; Package emacs. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Mon, 25 Nov 2019 12:00:02 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.