From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#34749: 26.1; `delete-windows-on': (1) doc, (2) bug, (3) bug, (4) candidates Date: Fri, 08 Mar 2019 21:58:01 +0200 Message-ID: <83zhq587g6.fsf@gnu.org> References: <5C7E4BAB.3050508@gmx.at> <83mum5accd.fsf@gnu.org> <5C824BAC.4090907@gmx.at> <83lg1pa4oa.fsf@gnu.org> <5C82B9E1.1080302@gmx.at> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="192058"; mail-complaints-to="usenet@blaine.gmane.org" Cc: 34749@debbugs.gnu.org To: martin rudalics Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Mar 08 20:59:12 2019 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1h2LeC-000nqA-2Y for geb-bug-gnu-emacs@m.gmane.org; Fri, 08 Mar 2019 20:59:12 +0100 Original-Received: from localhost ([127.0.0.1]:49174 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1h2LeA-0002bv-CL for geb-bug-gnu-emacs@m.gmane.org; Fri, 08 Mar 2019 14:59:10 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:40527) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1h2Le3-0002bl-NA for bug-gnu-emacs@gnu.org; Fri, 08 Mar 2019 14:59:04 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1h2Le2-0006TQ-N5 for bug-gnu-emacs@gnu.org; Fri, 08 Mar 2019 14:59:03 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:51419) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1h2Le2-0006Rm-HD for bug-gnu-emacs@gnu.org; Fri, 08 Mar 2019 14:59:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1h2Le2-0002cT-AU for bug-gnu-emacs@gnu.org; Fri, 08 Mar 2019 14:59:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 08 Mar 2019 19:59:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 34749 X-GNU-PR-Package: emacs Original-Received: via spool by 34749-submit@debbugs.gnu.org id=B34749.155207510610024 (code B ref 34749); Fri, 08 Mar 2019 19:59:02 +0000 Original-Received: (at 34749) by debbugs.gnu.org; 8 Mar 2019 19:58:26 +0000 Original-Received: from localhost ([127.0.0.1]:36730 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1h2LdS-0002bb-Ct for submit@debbugs.gnu.org; Fri, 08 Mar 2019 14:58:26 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:54275) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1h2LdQ-0002bL-GB for 34749@debbugs.gnu.org; Fri, 08 Mar 2019 14:58:24 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:45684) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1h2LdK-0005fW-PZ; Fri, 08 Mar 2019 14:58:18 -0500 Original-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 ) id 1h2LdJ-0005ja-Im; Fri, 08 Mar 2019 14:58:18 -0500 In-reply-to: <5C82B9E1.1080302@gmx.at> (message from martin rudalics on Fri, 08 Mar 2019 19:52:17 +0100) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:156167 Archived-At: > Date: Fri, 08 Mar 2019 19:52:17 +0100 > From: martin rudalics > CC: drew.adams@oracle.com, 34749@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.