unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: martin rudalics <rudalics@gmx.at>
Cc: 34749@debbugs.gnu.org
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	[thread overview]
Message-ID: <83zhq587g6.fsf@gnu.org> (raw)
In-Reply-To: <5C82B9E1.1080302@gmx.at> (message from martin rudalics on Fri, 08 Mar 2019 19:52:17 +0100)

> Date: Fri, 08 Mar 2019 19:52:17 +0100
> From: martin rudalics <rudalics@gmx.at>
> 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.





  parent reply	other threads:[~2019-03-08 19:58 UTC|newest]

Thread overview: 28+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-03-04 16:25 bug#34749: 26.1; `delete-windows-on': (1) doc, (2) bug, (3) bug, (4) candidates Drew Adams
2019-03-05 10:12 ` martin rudalics
2019-03-08 10:29   ` Eli Zaretskii
2019-03-08 11:02     ` martin rudalics
2019-03-08 13:15       ` Eli Zaretskii
2019-03-08 18:52         ` martin rudalics
2019-03-08 19:45           ` Drew Adams
2019-03-09  8:39             ` martin rudalics
2019-03-09 16:37               ` Drew Adams
2019-03-08 19:58           ` Eli Zaretskii [this message]
2019-03-09  8:39             ` martin rudalics
2019-03-09 10:58               ` Eli Zaretskii
2019-03-09 13:16                 ` martin rudalics
2019-03-09 16:33                   ` Drew Adams
2019-03-09 16:46                     ` Eli Zaretskii
2019-03-10  8:46                     ` martin rudalics
2019-03-10  8:48                 ` martin rudalics
2019-03-08 10:27 ` Eli Zaretskii
2022-04-26 12:32 ` Lars Ingebrigtsen
     [not found] <<b375da42-2b65-4579-902c-85e9fdcaeac7@default>
     [not found] ` <<83o96lacf8.fsf@gnu.org>
2019-03-08 16:34   ` Drew Adams
2019-03-08 17:00     ` Eli Zaretskii
     [not found] ` <<5C7E4BAB.3050508@gmx.at>
     [not found]   ` <<83mum5accd.fsf@gnu.org>
     [not found]     ` <<5C824BAC.4090907@gmx.at>
     [not found]       ` <<83lg1pa4oa.fsf@gnu.org>
     [not found]         ` <<5C82B9E1.1080302@gmx.at>
     [not found]           ` <<83zhq587g6.fsf@gnu.org>
     [not found]             ` <<5C837BD6.9010200@gmx.at>
     [not found]               ` <<83ef7g8gbc.fsf@gnu.org>
     [not found]                 ` <<5C83BC9B.5020803@gmx.at>
     [not found]                   ` <<e0b90f9b-2d1f-4877-b83a-aeca5425dbea@default>
     [not found]                     ` <<8336nw807g.fsf@gnu.org>
2019-03-09 17:35                       ` Drew Adams
2019-03-09 18:12                         ` Eli Zaretskii
     [not found] <<<b375da42-2b65-4579-902c-85e9fdcaeac7@default>
     [not found] ` <<<83o96lacf8.fsf@gnu.org>
     [not found]   ` <<6aae54ec-85bf-4447-bec0-7c916caeb2f8@default>
     [not found]     ` <<83a7i59u85.fsf@gnu.org>
2019-03-08 17:14       ` Drew Adams
2019-03-08 18:58         ` Eli Zaretskii
     [not found] ` <<<5C7E4BAB.3050508@gmx.at>
     [not found]   ` <<<83mum5accd.fsf@gnu.org>
     [not found]     ` <<<5C824BAC.4090907@gmx.at>
     [not found]       ` <<<83lg1pa4oa.fsf@gnu.org>
     [not found]         ` <<<5C82B9E1.1080302@gmx.at>
     [not found]           ` <<<83zhq587g6.fsf@gnu.org>
     [not found]             ` <<<5C837BD6.9010200@gmx.at>
     [not found]               ` <<<83ef7g8gbc.fsf@gnu.org>
     [not found]                 ` <<<5C83BC9B.5020803@gmx.at>
     [not found]                   ` <<<e0b90f9b-2d1f-4877-b83a-aeca5425dbea@default>
     [not found]                     ` <<<8336nw807g.fsf@gnu.org>
     [not found]                       ` <<dd8e2b24-ab4a-4a4c-b9b8-9249f9ec035b@default>
     [not found]                         ` <<83sgvv7w99.fsf@gnu.org>
2019-03-09 22:32                           ` Drew Adams
     [not found] <<<<b375da42-2b65-4579-902c-85e9fdcaeac7@default>
     [not found] ` <<<<83o96lacf8.fsf@gnu.org>
     [not found]   ` <<<6aae54ec-85bf-4447-bec0-7c916caeb2f8@default>
     [not found]     ` <<<83a7i59u85.fsf@gnu.org>
     [not found]       ` <<a1314708-0feb-4092-8b60-37d7282a328f@default>
     [not found]         ` <<834l8d9orm.fsf@gnu.org>
2019-03-08 19:48           ` Drew Adams
2019-03-08 20:14             ` Eli Zaretskii

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=83zhq587g6.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=34749@debbugs.gnu.org \
    --cc=rudalics@gmx.at \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).