From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Drew Adams Newsgroups: gmane.emacs.devel Subject: RE: [External] : Re: Current mode command discovery Date: Sat, 20 Feb 2021 19:45:41 +0000 Message-ID: References: <87v9aubm96.fsf@gnus.org> <87r1laomak.fsf@gnus.org> <83pn0uzubj.fsf@gnu.org> <87im6molnq.fsf@gnus.org> <83o8geztvt.fsf@gnu.org> <871rdaokhi.fsf@gnus.org> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="10106"; mail-complaints-to="usenet@ciao.gmane.io" Cc: "emacs-devel@gnu.org" To: Lars Ingebrigtsen , Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sat Feb 20 20:48: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 1lDYF4-0002Xk-Jo for ged-emacs-devel@m.gmane-mx.org; Sat, 20 Feb 2021 20:48:38 +0100 Original-Received: from localhost ([::1]:51350 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lDYF1-0000Xy-Uq for ged-emacs-devel@m.gmane-mx.org; Sat, 20 Feb 2021 14:48:35 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:52326) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lDYCi-00081O-Gs for emacs-devel@gnu.org; Sat, 20 Feb 2021 14:46:12 -0500 Original-Received: from userp2120.oracle.com ([156.151.31.85]:55938) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lDYCW-0000jl-8j; Sat, 20 Feb 2021 14:46:12 -0500 Original-Received: from pps.filterd (userp2120.oracle.com [127.0.0.1]) by userp2120.oracle.com (8.16.0.42/8.16.0.42) with SMTP id 11KJjDt5147571; Sat, 20 Feb 2021 19:45:56 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=from : to : cc : subject : date : message-id : references : in-reply-to : content-type : content-transfer-encoding : mime-version; s=corp-2020-01-29; bh=7tZjTZl3MEZ99OWkrW1EcXnTdhw7WlataBhthNPzX0Q=; b=pi7RHECSk5RtT/kKVmeBDuB74i3IFaVTkodPNMYTpzFzKyCm8eqJ/NcPcQLQeko2lndw y7505AcYwLNQnpH1i1f9BX19tICYBAlrtdEHci5vq0nK32tE60TnUsEstfFuK/bStmIP CaPfUFJdep/l0Dam49FE3kV55XOlmuV1yyrVtrv6N85okV+dJA0+YymrA7r7Jo4TKxYv 8i4oHf++LDE+iXUQpvxU5aUngnJwmz5BFBPA6yoRkpPM48vtQVQhswBO7EF/XhyrSEoD PFy0jEFAp7lucd3PscrgjGwremYVn4o44drsR5MBkbnLmDHZ+EIgL4RIZpeWarnmTmV6 lQ== Original-Received: from userp3020.oracle.com (userp3020.oracle.com [156.151.31.79]) by userp2120.oracle.com with ESMTP id 36tu2n0ssb-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Sat, 20 Feb 2021 19:45:56 +0000 Original-Received: from pps.filterd (userp3020.oracle.com [127.0.0.1]) by userp3020.oracle.com (8.16.0.42/8.16.0.42) with SMTP id 11KJjsGE006211; Sat, 20 Feb 2021 19:45:56 GMT Original-Received: from nam12-bn8-obe.outbound.protection.outlook.com (mail-bn8nam12lp2174.outbound.protection.outlook.com [104.47.55.174]) by userp3020.oracle.com with ESMTP id 36tsrhg6sr-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Sat, 20 Feb 2021 19:45:55 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=G4YpXab9wvPj1AgQzA0Avfyr4YLofkm67OyGKKJzY2xTpou1IjpBaWfkcb6WfiDI+F56ZwWxo4zYJuBBwtTNfoya3LpwK6rtvnmDJJ2c8ocS3L5wc0CCkRQZ28pfdOoIscMmzDg/aBb+ug/1pePZtVY91m5Im6nvduZ1H1Vsvkzvu64lvyj8T/LWwtCb+cZ+nBibZ5bV2Srq7DYRHWOCNZx6KY7b82kZaFCGDZkAyeHe0qNwreImhK7Yl3ExVnOuSZU8Ub1ZjFaOI1AzQ/KM7f2RO2Xw4KqUAzhq6i7XhSBmYucnJ9XVl2TJBFz8glM0lOyvg/2AokSSaIg/lYybOw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=7tZjTZl3MEZ99OWkrW1EcXnTdhw7WlataBhthNPzX0Q=; b=WstDc6T5Uq6Vi9c0Q13xFIB1FmgM9Q54JsDeubosMoDby9T07mxb/SN+ij+iCCQFxAc2G27rNJytPpMsNrCgD3QFwLsVmswchu3uOVg9+n5C41gRcXLXXBWAQtAMXJcPLtwP1B4c1qH/4bHPIPLpcPTbdlZTZMjaS3onIfkQonJeTBxRbx1E8F5VSUmJ3uKOJZq1QFareB3EllYSCTsey20phdh6CwIN0BQWg31SCGcVYH6yHoGRRt1Yu6PvzWe4AtKI0yf6CMGQCp1qCw5xh1Yp1E0mAG5GbW3vf9dGwkp7LM+jVclaCdBzY4eU383yGmAwgohzxAOWCiJRSQaCdw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=oracle.com; dmarc=pass action=none header.from=oracle.com; dkim=pass header.d=oracle.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.onmicrosoft.com; s=selector2-oracle-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=7tZjTZl3MEZ99OWkrW1EcXnTdhw7WlataBhthNPzX0Q=; b=dnvJ845sdpCx576MROJMrZencZm++39M9oovJKnD+U3jPLUgq3012EXjBKgte78B04YLxF1i3DnPRugEuqO5SBzoT9MQOv5TvArexXK+XRdv5vAdSrnnfXpokB+wgfCsARZVMbteYGRbRzxWdJX3j4q+fC2scbE4wwtfV/6AIb4= Original-Received: from SA2PR10MB4474.namprd10.prod.outlook.com (2603:10b6:806:11b::15) by SN6PR10MB2590.namprd10.prod.outlook.com (2603:10b6:805:45::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3868.31; Sat, 20 Feb 2021 19:45:42 +0000 Original-Received: from SA2PR10MB4474.namprd10.prod.outlook.com ([fe80::b8d2:db6d:3e4b:d315]) by SA2PR10MB4474.namprd10.prod.outlook.com ([fe80::b8d2:db6d:3e4b:d315%5]) with mapi id 15.20.3846.043; Sat, 20 Feb 2021 19:45:42 +0000 Thread-Topic: [External] : Re: Current mode command discovery Thread-Index: AQHXB5irAcw3exOIcUaxCYWW4/uIwaphbEww In-Reply-To: <871rdaokhi.fsf@gnus.org> Accept-Language: en-US Content-Language: en-US authentication-results: gnus.org; dkim=none (message not signed) header.d=none;gnus.org; dmarc=none action=none header.from=oracle.com; x-originating-ip: [73.170.83.28] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 4fd42d19-d3a3-4f0b-5ecc-08d8d5d81b4a x-ms-traffictypediagnostic: SN6PR10MB2590: x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:9508; x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: 1JqoIPrThtQUOkwaEswAxBvQM1zjx7S+MlDoHOw/Zh3rKOg+m9EnlpcqnUXaeYavHJx4UjkvUh7oYpNBqrZ8Fito5gTlPkte0Y+G/0sXgJAzaFJHH3bEMMrQtImlIufBorqQuI7p/x+E1oDx0N15RK94HlWI1m/q2YghYAINscbU2Y5f0nJ7jy2ewh2QXZv3Q+/znN1pnwgrQI02lHT/9gPg6cU0AGckzW63p+/rrWi87G0wtAe6iiNAAz/zoi/2xEdohDJVDIyq54mfWSd5uQXgr1IvKd4adcuHm88QIPKaf4IlUF5vm+hvabUUl1UHJykRocsMFpKFdyHpZ6Vlrj25SCe9YdMhOlebQJAUxpmwFXqWEt+TkRlEtrcwQ1Fi5ec6fLpbMJ0EB9l1puclmvtzcIOedOaEzq4deBn3gnNetAeF8drdC4uvUezVMWC15BvYcRadwYhUBThR8oaLNsXSBStBk8mgj4r9/vlb3vT8d48CqBGHg7VE8y7cwTWYwFK7XczmbX7xgNY/JwLgLQ== x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:SA2PR10MB4474.namprd10.prod.outlook.com; PTR:; CAT:NONE; SFS:(366004)(346002)(376002)(136003)(396003)(39860400002)(86362001)(5660300002)(52536014)(4326008)(66946007)(64756008)(66446008)(66556008)(66476007)(316002)(76116006)(7696005)(110136005)(478600001)(6506007)(33656002)(71200400001)(44832011)(9686003)(8936002)(26005)(8676002)(186003)(55016002)(2906002); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata: =?us-ascii?Q?7pJX50WP1Ts423Ixp/EbSvAMQovMa6gTan+lDQCo4VRpUYHXXiVOg5PfGRnS?= =?us-ascii?Q?5C+E/PrS4ObJy3czYtioYrOUDO1UrwyZe78ta20uPWY09aIeOBEPVVoLFDKf?= =?us-ascii?Q?Ugiuclio7CbFKsqxhZP0Xdtbz7Ny36YZa8a8+28i2GzEMkVGgiwuMbhQit5M?= =?us-ascii?Q?RmP/mRCvvDMG6UbCfwZTjt42d312OJjCuopjElDpgXKwJWI0XLWiZFAq+xG7?= =?us-ascii?Q?GmXJKiLu3tC9bScn9OAflSHGPXgLJBWtaMb5CjJVF67ThTkHrYd4ETbsJOv1?= =?us-ascii?Q?fYQizwLim221fmYN4cigwy9xfy31TqXvGgJuyv3KX/xGMoDK1fGgMZN0E52v?= =?us-ascii?Q?zkrrM7gAmnRW367L/VcGQuCp/EnsmrEZn5yo7kvi2jaS6SlG/C3HtnRpFxRm?= =?us-ascii?Q?9dErLAdzk0bhMLI4H2siptO2qvllDBedICzdBuMpUPELB2UkHZeG9tM7oRQb?= =?us-ascii?Q?TBrTuXu0LbeokYa/UYvilAbwEOzAADBNcWho4DXIKaxvZve7dXVU9kXN4cyW?= =?us-ascii?Q?8Mm+WXhLy7FcvEbDxrYPNWuBrburWjp1ivCIUFlGNxcDO3KgpkJJem1gMqbw?= =?us-ascii?Q?sd2SsY4RCht+4lSISunKBcIgnc50DvGU414XJlRHqGAQx9OpoBWXxunNkfr3?= =?us-ascii?Q?VXR+ x-ms-exchange-transport-forked: True X-OriginatorOrg: oracle.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: SA2PR10MB4474.namprd10.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 4fd42d19-d3a3-4f0b-5ecc-08d8d5d81b4a X-MS-Exchange-CrossTenant-originalarrivaltime: 20 Feb 2021 19:45:41.9669 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 4e2c6054-71cb-48f1-bd6c-3a9705aca71b X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: RWmCAQEmQhOHT7b9SMvk1ip99TN5kYV3cN+R0UcgaycAmIb42uENQDBHTv+2pCPUYiW9ThTdUsfRzrQzgPdrwA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: SN6PR10MB2590 X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=9901 signatures=668683 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 mlxlogscore=999 mlxscore=0 suspectscore=0 malwarescore=0 spamscore=0 adultscore=0 phishscore=0 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2009150000 definitions=main-2102200183 X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=9901 signatures=668683 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 suspectscore=0 adultscore=0 mlxlogscore=999 clxscore=1015 phishscore=0 mlxscore=0 impostorscore=0 spamscore=0 priorityscore=1501 bulkscore=0 malwarescore=0 lowpriorityscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2009150000 definitions=main-2102200183 Received-SPF: pass client-ip=156.151.31.85; envelope-from=drew.adams@oracle.com; helo=userp2120.oracle.com 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_H2=-0.001, SPF_HELO_PASS=-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:265350 Archived-At: > ;; This isn't strictly correct if `execute-extended-command' > ;; is bound to anything else (e.g. [menu]). > ;; It could use (key-description (this-single-command-keys)), > ;; but actually a prompt other than "M-x" would be confusing, > ;; because "M-x" is a well-known prompt to read a command > ;; and it serves as a shorthand for "Extended command: ". >=20 > Anybody got an opinion on what the best fix here would be? > The obvious fix is to do what the comment says, which would > also make this be more consistent if the user has rebound > the command. Opinion? Sure. Do what Icicles does (or similar): use a prompt that _prompts what to enter_, instead of just echoing the key sequence that invoked the command. Just "M-x " as prompt doesn't even _look_ like it's prompting - there's not even a colon (:), let alone some indication of what you're being prompted to type. That "prompt" looks like just a keystroke echo. In Icicles there are two different commands (which is what you're also doing now - you intend one command for `M-x' and one for `M-S-x'): 1. `icicle-execute-extended-command' - `M-x' Like vanilla Emacs (but a multi-command etc.). 2. `icicle-command-abbrev' - `M-ESC C-x' (`ESC ESC C-x') Read command name or its abbreviation; read command args; invoke command. Their prompts are: 1. "Execute command: " 2. "Command or abbrev: " So instead of using "M-x " as prompt, use something like "Execute command: ".