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.help Subject: RE: Which modifier to use? Date: Sat, 5 Dec 2020 07:52:44 -0800 (PST) Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="30343"; mail-complaints-to="usenet@ciao.gmane.io" Cc: help-gnu-emacs@gnu.org To: Jean Louis , =?utf-8?B?U3RlZmFuIE3DtmRpbmc=?= Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Sat Dec 05 16:53:24 2020 Return-path: Envelope-to: geh-help-gnu-emacs@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 1klZsB-0007nN-IV for geh-help-gnu-emacs@m.gmane-mx.org; Sat, 05 Dec 2020 16:53:23 +0100 Original-Received: from localhost ([::1]:47416 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1klZsA-0001FN-G7 for geh-help-gnu-emacs@m.gmane-mx.org; Sat, 05 Dec 2020 10:53:22 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:40448) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1klZrh-0001FE-RL for help-gnu-emacs@gnu.org; Sat, 05 Dec 2020 10:52:53 -0500 Original-Received: from aserp2130.oracle.com ([141.146.126.79]:51772) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1klZrf-0000aw-0G for help-gnu-emacs@gnu.org; Sat, 05 Dec 2020 10:52:53 -0500 Original-Received: from pps.filterd (aserp2130.oracle.com [127.0.0.1]) by aserp2130.oracle.com (8.16.0.42/8.16.0.42) with SMTP id 0B5FTDCg068294; Sat, 5 Dec 2020 15:52:48 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=mime-version : message-id : date : from : sender : to : cc : subject : references : in-reply-to : content-type : content-transfer-encoding; s=corp-2020-01-29; bh=HAR+46IfOp+LhMcWFF1y1vveot/RBymgAmGKSe+IbKU=; b=m5XiH919DvT+ftJEo2eXq7t3nOxY6Z9W8ZzCW2mS6JS29G/nzq7+vBR+2t0LfR7oI0Fr FUTqa0m8Iu/aRyzPF5VMMdZmCYKGVJ3NJb9uTb4S/xkzQ8i+koXrQPqvDz8o3olqSO0n M5Lc8Kr2/Krl5zxZ3C7gAnPS/rJiB0ttN3lKZUVwq3Ya+AOsxFODAZpD9598mtWmEMHr Lh016MYhLNQPzr7mUNccut90nEGSKJASl3OhVhy06wGzYERNYtXoT0S+jlnMO6eRdAXP nQ5vt8CH4kRy8PX/2w6Y3mwKkBvh5EY6jsUGFFPL744u/DnDkNfB2WtF7pS2IBq7veeX LA== Original-Received: from aserp3020.oracle.com (aserp3020.oracle.com [141.146.126.70]) by aserp2130.oracle.com with ESMTP id 357yqbh4sq-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL); Sat, 05 Dec 2020 15:52:48 +0000 Original-Received: from pps.filterd (aserp3020.oracle.com [127.0.0.1]) by aserp3020.oracle.com (8.16.0.42/8.16.0.42) with SMTP id 0B5FoIoQ146935; Sat, 5 Dec 2020 15:52:47 GMT Original-Received: from userv0121.oracle.com (userv0121.oracle.com [156.151.31.72]) by aserp3020.oracle.com with ESMTP id 35820ymv27-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Sat, 05 Dec 2020 15:52:47 +0000 Original-Received: from abhmp0015.oracle.com (abhmp0015.oracle.com [141.146.116.21]) by userv0121.oracle.com (8.14.4/8.13.8) with ESMTP id 0B5FqkX0010089; Sat, 5 Dec 2020 15:52:46 GMT In-Reply-To: X-Priority: 3 X-Mailer: Oracle Beehive Extensions for Outlook 2.0.1.9.1 (1003210) [OL 16.0.5071.0 (x86)] X-Proofpoint-Virus-Version: vendor=nai engine=6000 definitions=9826 signatures=668682 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 suspectscore=0 adultscore=0 bulkscore=0 mlxscore=0 malwarescore=0 mlxlogscore=999 phishscore=0 spamscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2009150000 definitions=main-2012050105 X-Proofpoint-Virus-Version: vendor=nai engine=6000 definitions=9826 signatures=668682 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 suspectscore=0 mlxlogscore=999 clxscore=1011 malwarescore=0 bulkscore=0 phishscore=0 adultscore=0 spamscore=0 priorityscore=1501 mlxscore=0 lowpriorityscore=0 impostorscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2009150000 definitions=main-2012050104 Received-SPF: pass client-ip=141.146.126.79; envelope-from=drew.adams@oracle.com; helo=aserp2130.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, DKIMWL_WL_HIGH=-0.001, 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: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.io gmane.emacs.help:126030 Archived-At: > > (define-prefix-command 'stm-launcher-map) > > (global-set-key (kbd "s-z") 'stm-launcher-map) >=20 > Thank you. This is good and useful tip. Then I could do s-z for new > map and get plethora of other keys. I did not know it works that way > nicely. >=20 > > (define-key stm-launcher-map (kbd "=3D") #'ipcalc-at-point) ... In that case, you asked the wrong question. That answer, which I guess is what you were really looking for, is about using a _prefix key_, not a modifier key. Completely different animal. ___ And yes, prefix keys are wonderful. When bound to keymaps they also let you easily move whole sets of commands/keys around as units. E.g.: A library can identify a set of commands that belong together in UI terms, by putting them on a keymap. And it can put that keymap (optionally, i.e., under user control) on a given prefix key by default. But a user can easily move that whole set of commands and their bindings from the default prefix key to another prefix key.