From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Juri Linkov Newsgroups: gmane.emacs.devel Subject: Re: Tabs Date: Mon, 21 Oct 2019 01:38:34 +0300 Organization: LINKOV.NET Message-ID: <87y2xfdr9h.fsf@mail.linkov.net> References: <87a7bpysm8.fsf@mail.linkov.net> <87muf56wwf.fsf@mail.linkov.net> <87ef00gqst.fsf@mail.linkov.net> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="28534"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (x86_64-pc-linux-gnu) Cc: Emacs developers To: Stefan Kangas Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Oct 21 00:42:53 2019 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1iMJuX-0007IO-1k for ged-emacs-devel@m.gmane.org; Mon, 21 Oct 2019 00:42:53 +0200 Original-Received: from localhost ([::1]:50454 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iMJuV-00027R-RG for ged-emacs-devel@m.gmane.org; Sun, 20 Oct 2019 18:42:51 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:32809) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iMJtJ-00026w-Co for emacs-devel@gnu.org; Sun, 20 Oct 2019 18:41:38 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iMJtH-00035D-0Q for emacs-devel@gnu.org; Sun, 20 Oct 2019 18:41:36 -0400 Original-Received: from blue.elm.relay.mailchannels.net ([23.83.212.20]:20119) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1iMJtF-00034N-3Y for emacs-devel@gnu.org; Sun, 20 Oct 2019 18:41:33 -0400 X-Sender-Id: dreamhost|x-authsender|jurta@jurta.org Original-Received: from relay.mailchannels.net (localhost [127.0.0.1]) by relay.mailchannels.net (Postfix) with ESMTP id 5929E140DCD; Sun, 20 Oct 2019 22:41:31 +0000 (UTC) Original-Received: from pdx1-sub0-mail-a8.g.dreamhost.com (100-96-84-88.trex.outbound.svc.cluster.local [100.96.84.88]) (Authenticated sender: dreamhost) by relay.mailchannels.net (Postfix) with ESMTPA id EFF3014118E; Sun, 20 Oct 2019 22:41:30 +0000 (UTC) X-Sender-Id: dreamhost|x-authsender|jurta@jurta.org Original-Received: from pdx1-sub0-mail-a8.g.dreamhost.com ([TEMPUNAVAIL]. [64.90.62.162]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384) by 0.0.0.0:2500 (trex/5.18.5); Sun, 20 Oct 2019 22:41:31 +0000 X-MC-Relay: Neutral X-MailChannels-SenderId: dreamhost|x-authsender|jurta@jurta.org X-MailChannels-Auth-Id: dreamhost X-Vacuous-Cold: 0c4f458d3c6a80c9_1571611291181_1989201220 X-MC-Loop-Signature: 1571611291180:1406593146 X-MC-Ingress-Time: 1571611291180 Original-Received: from pdx1-sub0-mail-a8.g.dreamhost.com (localhost [127.0.0.1]) by pdx1-sub0-mail-a8.g.dreamhost.com (Postfix) with ESMTP id 768EA97EDA; Sun, 20 Oct 2019 15:41:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=linkov.net; h=from:to:cc :subject:references:date:in-reply-to:message-id:mime-version :content-type:content-transfer-encoding; s=linkov.net; bh=CBdYA9 Ukk5P9bpts842jPpqlySM=; b=BszKhXSEI5u7zQ2fS470BpGrQ5n1t/+KA4I1sq bmdGtlRd+x+JMikmUlZC1Mbtj5fcytYO6Bct4JnNLE21Kc3cJ9cy9LcDgQUBIaWX JCyBo+f1HySUfwW3fhzcNcQ4/M0aM8/6sMpT8zUluNYd36PYYEde6cGenkRytWVB MT3bM= Original-Received: from mail.jurta.org (m91-129-98-153.cust.tele2.ee [91.129.98.153]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: jurta@jurta.org) by pdx1-sub0-mail-a8.g.dreamhost.com (Postfix) with ESMTPSA id D640197ED4; Sun, 20 Oct 2019 15:41:24 -0700 (PDT) X-DH-BACKEND: pdx1-sub0-mail-a8 In-Reply-To: <87ef00gqst.fsf@mail.linkov.net> (Juri Linkov's message of "Sat, 28 Sep 2019 22:52:34 +0300") X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 23.83.212.20 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.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:241270 Archived-At: >>> > 2. None of these interactive commands work when run with M-x: >>> > >>> > command-execute: tab-line-add-tab must be bound to an event with pa= rameters >>> > command-execute: tab-line-close-tab must be bound to an event with = parameters >>> > command-execute: tab-line-select-tab must be bound to an event with= parameters >>> > command-execute: tab-line-switch-to-next-tab must be bound to an ev= ent >>> > with parameters >>> > command-execute: tab-line-switch-to-prev-tab must be bound to an ev= ent >>> > with parameters >>> >>> Mouse commands don't work with M-x. For example, try M-x Buffer-menu= -mouse-select >> >> True. >> >>> but we could declare the EVENT arg optional for these commands, >>> and perform non-mouse logic when it's nil. >> >> This is what I would prefer. I think users will naturally try to use >> these commands and be surprised when they don't work. > > But the EVENT arg in these commands already is optional. > And executing them with M-x fails because interactive spec is > (interactive "e"). Do you know what interactive spec to use > to not raise the error "must be bound to an event with parameters" > when executing with M-x? I realized this is possible to do by replacing =E2=80=98(interactive "e")= =E2=80=99 with =E2=80=98(interactive (list last-nonmenu-event))=E2=80=99, implement= ed.