From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Clemens Newsgroups: gmane.emacs.devel Subject: A different way to interactively pass options to commands Date: Wed, 17 Feb 2021 20:50:02 +0100 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="4531"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Wed Feb 17 20:51:39 2021 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lCSrK-000165-I6 for ged-emacs-devel@m.gmane-mx.org; Wed, 17 Feb 2021 20:51:38 +0100 Original-Received: from localhost ([::1]:50514 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lCSrJ-0008Jm-FI for ged-emacs-devel@m.gmane-mx.org; Wed, 17 Feb 2021 14:51:37 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:52962) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lCSpt-0007Lq-IR for emacs-devel@gnu.org; Wed, 17 Feb 2021 14:50:09 -0500 Original-Received: from mout02.posteo.de ([185.67.36.66]:60665) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lCSpr-0006TD-Hs for emacs-devel@gnu.org; Wed, 17 Feb 2021 14:50:09 -0500 Original-Received: from submission (posteo.de [89.146.220.130]) by mout02.posteo.de (Postfix) with ESMTPS id B26F52400FC for ; Wed, 17 Feb 2021 20:50:03 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1613591403; bh=OJGWbe4tDEmREN9y547XynwqbbzdCkIAKeRbVj/VWzI=; h=To:From:Subject:Date:From; b=Uau9xTLP7DwPqfQctuyLlXBAq0VscOY5LNXqEqbJUUE9Bn6hx3BzPpiu3YXtPECFC h9sLJuCJI06KesMdvC/We5DG81baatMMl81TmNUC4Dhf5axUfar9JaCSwbbbZH2ZJd AaicPgg7U4okJ4r+08Kh8Wje8OLh1AN5HI+vnsn+StXEsq3meXXt8oT1yF9zPiDv4W VRcSbD6FyGk/gHc+WYzrjz4f/6BibmPfm4wju9JW7Z4UbYLEFX4R275x1Ip8K93ZtS kRD7ozeholSOCeTBYKj94t/vxBr0ahDNn5eMxUnUhXop890zETTLntQfgNyF8KxZw3 xfGYN2LrSZIoQ== Original-Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4DgpMv1Sm4z9rxD for ; Wed, 17 Feb 2021 20:50:03 +0100 (CET) Content-Language: en-US Received-SPF: pass client-ip=185.67.36.66; envelope-from=clemera@posteo.net; helo=mout02.posteo.de X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:265065 Archived-At: Adjusting commands on call is traditionally done via universal prefix argument. This is mostly nice for numeric repetitions but often it is also used to change the behavior of a command in other ways and sometimes even multiple ways depending on the number of times `C-u` is used. The recent discussion around changing `interactive' made me think about ways to improve that. Magit has shown a real nice UI approach to pass options with its transient menus. Maybe a simpler but similar mechanism could be added which could also be configured via `interactive'. Any opinions on this?