From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: =?ISO-8859-1?Q?Andreas_R=F6hler?= Newsgroups: gmane.emacs.devel Subject: Re: more than one prefix argument Date: Wed, 27 Jul 2011 08:25:49 +0200 Message-ID: <4E2FAF6D.2050905@online.de> References: <4E2F1C8C.9010802@easy-emacs.de> <4E2F1F1C.2040100@gmail.com> <850340AFD6324E979275501249A9240C@us.oracle.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1311747974 12815 80.91.229.12 (27 Jul 2011 06:26:14 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 27 Jul 2011 06:26:14 +0000 (UTC) Cc: Daniel Colascione , Drew Adams To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Jul 27 08:26:09 2011 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1QlxZD-0000dI-OV for ged-emacs-devel@m.gmane.org; Wed, 27 Jul 2011 08:26:03 +0200 Original-Received: from localhost ([::1]:53444 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QlxZC-0007PH-V4 for ged-emacs-devel@m.gmane.org; Wed, 27 Jul 2011 02:26:02 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:59466) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QlxZA-0007P1-EX for emacs-devel@gnu.org; Wed, 27 Jul 2011 02:26:01 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QlxZ9-0007tv-FB for emacs-devel@gnu.org; Wed, 27 Jul 2011 02:26:00 -0400 Original-Received: from moutng.kundenserver.de ([212.227.17.9]:50120) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QlxZ9-0007th-1B for emacs-devel@gnu.org; Wed, 27 Jul 2011 02:25:59 -0400 Original-Received: from [192.168.178.27] (brln-4dbc767f.pool.mediaWays.net [77.188.118.127]) by mrelayeu.kundenserver.de (node=mreu1) with ESMTP (Nemesis) id 0MTKyZ-1QsrQa3nBH-00SO3W; Wed, 27 Jul 2011 08:25:56 +0200 User-Agent: Mozilla/5.0 (X11; U; Linux i686; de; rv:1.9.2.18) Gecko/20110616 SUSE/3.1.11 Thunderbird/3.1.11 In-Reply-To: <850340AFD6324E979275501249A9240C@us.oracle.com> X-Provags-ID: V02:K0:oCaQ10Q8pPIsoR0h+36pREl1fYPuH7n3r6nXCc4NmmS ehILVlfB432OOS362+FJ5o2bnM41eOOPu/4zsj9e8Ctj7SZp8o xmPBoHfK3BaOHR5HZKslaD0ZSM3S8IuL+XY/26UK3fJIh+H11M hkjy4KzHGGYuL8jNwb7wqSGdziX9walo215RjHblbu/DVRKx4b 7/icqtXEpyTuFvjFmyJgTHLTM3Z8/Ma6uzIPDpCY0o= X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 212.227.17.9 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 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.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:142342 Archived-At: Am 26.07.2011 22:36, schrieb Drew Adams: >>> what about allowing more than one prefix argument >>> by making interactive codes "p" and "P" sending >>> truly separated. >> >> We already have more than one kind of prefix argument: see >> universal-coding-system-argument for an example. You can >> already define as many kinds of "prefix argument" as you'd >> like: just define a global flag and a command to set that >> flag, and have post-command-hook clear the flag unless (eq >> this-command 'my-prefix-setting-function). > > I don't think that's what Andreas is asking about. He's not asking about being > able to define alternative "prefix arg"-like things (to be used separately). I > think he wants the same user input to somehow distinguish two different things > (?). > > At least that's my understanding. IMO, he is simply confused, Hi Drew, maybe you are right. Then we must wait. I'll try to sum up the matter for the moment: current use of "p" and "P" might be enhanced. There is an intermix between both, doing nearly, but not precisely, the same. "P" quite often is used for completely different things than sending a number. (if (eq 4 (prefix-numeric-value)) is used as a branch command. That's the interesting about it indeed. However, that's not clean. It's bad to read, because the fact of "4" has no meaning by themselves here. That's obscure programming style. In general let me stress: I'm living very well with Emacs as it is. Just saying: we can live still better. Cheers and thanks, Andreas and defining > alternative prefix-arg-like things won't help him here. > > Put differently, having the user use different prefix-arg-like things is similar > to having the user use a positive vs negative prefix arg. And that's apparently > not what he wants. > > He seems to want the user to use the _same_ behavior (no key difference) to > somehow get two different command behaviors. Again, that's my guess about what > he's asking. > > >