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: [External] : bookmark+ keybinding question Date: Thu, 24 Oct 2024 02:19:44 +0000 Message-ID: References: <87msiuvhhq.fsf@librehacker.com> <87bjzav5lo.fsf@librehacker.com> 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="14554"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Help Gnu Emacs Mailing List To: Christopher Howard Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Thu Oct 24 04:20:46 2024 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 1t3nSu-0003bS-Vd for geh-help-gnu-emacs@m.gmane-mx.org; Thu, 24 Oct 2024 04:20:45 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1t3nS7-0007Bd-I0; Wed, 23 Oct 2024 22:19:55 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1t3nS4-0007B9-F6 for help-gnu-emacs@gnu.org; Wed, 23 Oct 2024 22:19:52 -0400 Original-Received: from mx0b-00069f02.pphosted.com ([205.220.177.32]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1t3nS2-0000X5-Dq for help-gnu-emacs@gnu.org; Wed, 23 Oct 2024 22:19:52 -0400 Original-Received: from pps.filterd (m0246632.ppops.net [127.0.0.1]) by mx0b-00069f02.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 49NKcSQv005207; Thu, 24 Oct 2024 02:19:48 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=cc :content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to; s= corp-2023-11-20; bh=7pMEg/QMmJUVFg1qPHWGZXDeFKMFVBFFtjEu+jT3brQ=; b= gqTVdCnDhYOrGK/avh6oe78afhELaYTZ0fTnXlNdiO1u01hu92/6KCJJvAfayYE+ shyK1ps5XxUWDnpf7xVbTdaKO1nh6nwcy7pLtrI6GpTyI/Ui81LH01Ypo1Dc8mHu rygqn6+OVGmJyjni902VdNwfXhNm5FkCX/XavogUuF0XV2E9CasUaS1D8GLwR5TL R+A7HKx+42Ga6eqXgjxCEpGgkdx27DOzRrqJ1H1TixVlHaH0buRLyPF3GhdwwCLX ya2T/m/mMg7IKBaFZCMJKB53bNPoDBfYPEk+qOTKJKNximc8HGvtjsXruK6kKQua gqiTt7ABXt6pL6u/RYxeqw== Original-Received: from phxpaimrmta02.imrmtpd1.prodappphxaev1.oraclevcn.com (phxpaimrmta02.appoci.oracle.com [147.154.114.232]) by mx0b-00069f02.pphosted.com (PPS) with ESMTPS id 42ckkr0t7t-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 24 Oct 2024 02:19:48 +0000 (GMT) Original-Received: from pps.filterd (phxpaimrmta02.imrmtpd1.prodappphxaev1.oraclevcn.com [127.0.0.1]) by phxpaimrmta02.imrmtpd1.prodappphxaev1.oraclevcn.com (8.18.1.2/8.18.1.2) with ESMTP id 49O0iHxt025475; Thu, 24 Oct 2024 02:19:47 GMT Original-Received: from nam12-bn8-obe.outbound.protection.outlook.com (mail-bn8nam12lp2169.outbound.protection.outlook.com [104.47.55.169]) by phxpaimrmta02.imrmtpd1.prodappphxaev1.oraclevcn.com (PPS) with ESMTPS id 42emha9b0h-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 24 Oct 2024 02:19:47 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=hASyRBhM6yMwZliY9Wkg7TGDtSOK0lXye8z/7nI067kOMPOcqw8/9kw/0KxHnzrW7CHiJ6Eu2ePNzRpj+jbYC0YLKjp57IFz6pu5pi+Wx+E+/w8pT3O7jmCdRa3EBN/CZUnWYy9Rx7XFJ0yprjsBivDVuAxo/suJWQCNyWm1/jOJJAERIfiepGKBtlMgEPmCuahey5PoKbAKOfS5VTf78H1daTPw5Dt4peYUCdLu3g22oF007h3cgLLesbLQPwAEEAuxjtBV8vGC08Y/vkvJaNn+DCzfMDsBhF5IUk71f422egc0HbKd88mXXgCh9i78MvxeouG8ByAu4BuYQyXCQA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=7pMEg/QMmJUVFg1qPHWGZXDeFKMFVBFFtjEu+jT3brQ=; b=BmAVx7v31nDZI2p03LNNw6Z2MCxer40982ENUeQqoI+3YdFx4pguse17O9rZ4kibr1faL6n2PcHaVdxJDmUKplfAG8g8EbOZoefi7ZV0juFn2Krqnd09Y0dNpr405tLLSGJpoAxG+flMMrCLvEnD180TGbnCK85VfIaJc1W7VvY0YhK5QLzJQLeNhNJiOIROU4J4FBtaMsTrQeC/ENjpC5zUUT4XYlSPo5turQSclOTvKA6YODpGC2SJdm9qqtxrxpWIJlKGZ/5lg6Way1qqEiDcl2LVK4nYGcUqvKCDDLgY5Jl+8df1kYuxI4oFHRwAHbfJmbY0Aw+JnFj2J8fTcQ== 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=7pMEg/QMmJUVFg1qPHWGZXDeFKMFVBFFtjEu+jT3brQ=; b=IJBjLXBlwYjYAQn1zlZ+bHpQXjX8mGQb+54TZvDzu4Vw5DfdPDSjtjk6padYYIbAJwgnq+3gJrziyT80lmr/tBLtAd/qgns7bkQTlBm2bF96l4YUYDC+qXZXk9iCsGleFiv9KfcIvJ0sPIPUulV4cV7fw7ccSiQ1SpWfM8Gtqk4= Original-Received: from DS7PR10MB5232.namprd10.prod.outlook.com (2603:10b6:5:3aa::24) by SJ2PR10MB6962.namprd10.prod.outlook.com (2603:10b6:a03:4d1::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8069.27; Thu, 24 Oct 2024 02:19:44 +0000 Original-Received: from DS7PR10MB5232.namprd10.prod.outlook.com ([fe80::8303:658f:14f8:2324]) by DS7PR10MB5232.namprd10.prod.outlook.com ([fe80::8303:658f:14f8:2324%4]) with mapi id 15.20.8093.018; Thu, 24 Oct 2024 02:19:44 +0000 Thread-Topic: [External] : bookmark+ keybinding question Thread-Index: AQHbJZeJKSYSDg0Me0yEyDUhqL+rbLKVJm8Q In-Reply-To: <87bjzav5lo.fsf@librehacker.com> Accept-Language: en-US Content-Language: en-US x-ms-publictraffictype: Email x-ms-traffictypediagnostic: DS7PR10MB5232:EE_|SJ2PR10MB6962:EE_ x-ms-office365-filtering-correlation-id: 4087b4e9-6f8b-4c4f-ebb7-08dcf3d25326 x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; ARA:13230040|366016|376014|1800799024|38070700018; x-microsoft-antispam-message-info: =?us-ascii?Q?l8YGi2SKW7qj32bUo2mR0VX2tE+pmWojm40xJkuvvF0G44Gx/nctyDG8nP/H?= =?us-ascii?Q?ibxs1FceK9+Qrerx2cLZ4eVCEyv9IUkQVythPy/ZHzZ8ixl51T6SiEBlQWJA?= =?us-ascii?Q?aptLCxqwjKU0N2U2y6npH1NTpat3GxrAsf9FZNp/7xqOcmvmgSx2JvaOs6co?= =?us-ascii?Q?F7F/zGeXK7Lwdn6F/Mllxrbloc8y8HJgyEKvSNSrGdGkvWyUgMGAXfA2opif?= =?us-ascii?Q?M6m+5ug6fZ0hYIV6L5pv5KqwVWtuUNibhD/BEVEb+PM8je4hRh59k6coKEwB?= =?us-ascii?Q?pMWruC88O5Bd+0VEtwxEFPNjzb29ioNhjD7k8OF7A9vSdZu/C8Io9s2WzijP?= =?us-ascii?Q?wt8VxLw6NKvTyrEjMigT1An/exK8xy+hTTidBqz+B8oGxJawYPf/97ZDnfAF?= =?us-ascii?Q?VMaAyLUTTZPz9wlop+MayYBn17kvSItL39f1q/VIpkWzxEHJ8g3NIlXq5mKL?= =?us-ascii?Q?ZkErnrwRnVh3q2d1XsSuw3UKnLLYU8Eu8EeNvZCDlCVc9DPynp9PaHo6WZ78?= =?us-ascii?Q?nUzAJUVYcnuYgD65na64Ul3N6raqeJVbL3ROa2FwBIVzMRs6MEWW5bCT5Pnk?= =?us-ascii?Q?Vmono9ofG2VhO9vrXUswJLllD2hNSeIxIRaWAYF+uFH3uyV45h8da4Cy7Ape?= =?us-ascii?Q?BBbIS x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:DS7PR10MB5232.namprd10.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230040)(366016)(376014)(1800799024)(38070700018); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?PmOc0jM2pGiDVaC/qND8jtMZixEU+pbTG+6tgk4YL24TsvidRdznlVBXdR+c?= =?us-ascii?Q?3v5IJNXXQHT/2z3mQaziSHgPZHD0dxET/Up7fYtkzWveCpv0qBzcAk+JAx52?= =?us-ascii?Q?+eADM5gzPKY5kQanqi7rYPMief5Qe7eNTdfYq6q50mg74yQRvsTBhKBsG/j6?= =?us-ascii?Q?UisSFKlAngy4qJlmW9a4lRrBpOOjrw8nXjMEIwDqeRpVOiIYG085f+yEdOEd?= =?us-ascii?Q?MRAos1QyfO0BNzSqM1KfWqvLyJsdCsnNEwt/X8LMWfEW+uqCmpToojytrBCQ?= =?us-ascii?Q?7hjSteIyVerxS+7CRc5ZEJdQvEwt4wR+aTcnuVnMsFEzaFI00msKAiztH3+Y?= =?us-ascii?Q?EhSTAPZLGGe+cgl214PsUwQNktg+DCaLs0meNwHM7c5ngjUyQU5oG52UDdi/?= =?us-ascii?Q?TlI1G0hnKmWQTtWUOvuzfLEtqymgIU+c9iiNjRTVoJLOhreae+1Sn6bwMbWy?= =?us-ascii?Q?SXbzlWqsnrIf+Y4UURiREtrGeqtEbYKUd6aClg20nSRQrJNn+q5/4FyRBDAg?= =?us-ascii?Q?yjvRftp8fCR2wDaHdu8QPuKWKfYmH2ahZ4iVGEL9ZFeIczFvotwnNIlyb6JH?= =?us-ascii?Q?TCdI1VxRSSXgLnMgnRDu7+mQjRXscg2Vg5j05Kq53bujFTfJqYK6tmF8Wf/Z?= =?us-ascii?Q?ep X-MS-Exchange-AntiSpam-ExternalHop-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-ExternalHop-MessageData-0: x9Mmd68xO1678PWZ6G/m5MZJfpRZIjgmm3QpTodQy4eDTX6ppyk3ON1583IDwXGRzyZ/+gfYzCG4aErxQt1M7hsZjlEa66dwH82YnJ+c5fgF8tbGkBOPI++HDpzDsuuBRmC1XHUOabxf/m9bz9d8JZjqTzkIawf+ruZn6t3tpFPpy4Sn/UiGS6iMrdNdF/3VoHy0hkDtAPEjfI5Zh8Po1kKdEIaued59iK+SRP4eZWx7GE0WNtCd8aIQX360q6zAb9UYy+/34dvZ4Qv24Jif09cdUphGiZOZJIAbMFkseq+g0jtziyzI3BBoJFQPJ4PjNT9riGL5fHjh6rBMxwnW0EV6fLbAVU9vvQG9n3SeJ4HX8zTTsxRZrW9nnrtVNGuphVSmbQ2YwUuQI263gLHf+jEFCE3T+qRL17scJ1gf9tObXp7Dz3Aa6jQW+/Tgj/QgQWfgbbZafh+O62Ybv9C1wgBRmtyRwWh0qxy+YVv1De6hTTfavCLHfooVtPRb9W5pb4GbPQGQ+9v6r6znHAMSJLTkR5C6gtP/6TC9TBVt/km6cEbby4ADhRBCI+MNOPowaUDpqlUg7VhW8Ozm2wy4M86+U58Djt/5RzYrdsxqKIU= X-OriginatorOrg: oracle.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: DS7PR10MB5232.namprd10.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 4087b4e9-6f8b-4c4f-ebb7-08dcf3d25326 X-MS-Exchange-CrossTenant-originalarrivaltime: 24 Oct 2024 02:19:44.2896 (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: 5vuw2Q099lvRzoQmMYC2HWJge17yuJ8Cqb5RdEmaMANXDiaBPcpFX8Evq/ySP6Dc+BEkCVRCy59iwilOvdHrBw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: SJ2PR10MB6962 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1051,Hydra:6.0.680,FMLib:17.12.62.30 definitions=2024-10-24_01,2024-10-23_01,2024-09-30_01 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 malwarescore=0 spamscore=0 adultscore=0 suspectscore=0 mlxscore=0 bulkscore=0 mlxlogscore=818 phishscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2409260000 definitions=main-2410240015 X-Proofpoint-GUID: BCO5BseD_8N-CEa1xxDmQ8buI6BpUDjm X-Proofpoint-ORIG-GUID: BCO5BseD_8N-CEa1xxDmQ8buI6BpUDjm Received-SPF: pass client-ip=205.220.177.32; envelope-from=drew.adams@oracle.com; helo=mx0b-00069f02.pphosted.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 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_LOW=-0.7, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, RCVD_IN_VALIDITY_CERTIFIED_BLOCKED=0.001, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, SPF_HELO_NONE=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.29 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-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.help:148228 Archived-At: > > The first step is finding out what keymap to use. > > In this case, it's `bookmark-bmenu-mode-map'. >=20 > Thank you. Is there an automated way to figure out what the correct > keymap is? I find that C-h k does not provide any information regarding > that. Not really, that I'm aware of. But often it's a map for the current major mode, and in that case its name is conventionally similar. (But there are also minor modes, with their own maps.) `C-h v major-mode' gives you the name of the major mode. For the bookmark-list display that's `bookmark-bmenu-mode'. And its main keymap is ... `bookmark-bmenu-mode-map'. `M-x describe-keymap' shows you all of the bindings in a given keymap. I say "main keymap" because there can be others. For example, the menu-bar menus for mode `bookmark-bmenu-mode' are on keymap `bmkp-bmenu-menubar-menu'. (Menu keymaps often end in `-menu' - they don't even contain the word "keymap".) As always, the source code is your friend. There you find keymap `bmkp-bmenu-menubar-menu' defined on the pseudo-key sequence [menu-bar bmkp] in keymap `bookmark-bmenu-mode-map': (defvar bmkp-bmenu-menubar-menu (make-sparse-keymap "Bookmark+") "`Boomark+' menu-bar menu.") (define-key bookmark-bmenu-mode-map [menu-bar bmkp] (cons "Bookmark+" bmkp-bmenu-menubar-menu)) And there are submaps off of that menu keymap. Here's one: (defvar bmkp-bmenu-bookmark-file-menu (make-sparse-keymap "Bookmark File") "`Bookmark File' submenu for menu-bar `Bookmark+' menu.") (define-key bmkp-bmenu-menubar-menu [bookmark-file] (cons "Bookmark File" bmkp-bmenu-bookmark-file-menu)) HTH. Maybe someone else has some better help for keymap discovery. (You can also use completion (`TAB') with command `describe-keymap', to see the names of available maps, and if you use a completion framework that lets you filter/narrow then that might help you find maps.)