From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Van Ly via Users list for the GNU Emacs text editor Newsgroups: gmane.emacs.help Subject: How to global-set-key combine "f1-" and "f1-"? Date: Mon, 7 Aug 2023 08:34:15 GMT Message-ID: <202308070834.3778YFcA006972@sdf.org> Reply-To: Van Ly Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="1156"; mail-complaints-to="usenet@ciao.gmane.io" To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Mon Aug 07 10:35:20 2023 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 1qSvhu-000AYH-UN for geh-help-gnu-emacs@m.gmane-mx.org; Mon, 07 Aug 2023 10:35:19 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qSvhE-0003MP-Ny; Mon, 07 Aug 2023 04:34:36 -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 1qSvhD-0003MF-98 for help-gnu-emacs@gnu.org; Mon, 07 Aug 2023 04:34:35 -0400 Original-Received: from mx.sdf.org ([205.166.94.24]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qSvh4-0004zS-AL for help-gnu-emacs@gnu.org; Mon, 07 Aug 2023 04:34:33 -0400 Original-Received: from sdf.org (IDENT:van.ly@faeroes.freeshell.org [205.166.94.9]) by mx.sdf.org (8.16.1/8.14.5) with ESMTPS id 3778YF4M001664 (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256 bits) verified NO); Mon, 7 Aug 2023 08:34:16 GMT DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=sdf.org; s=sdf.org; t=1691397257; bh=CY4vb04gtaWMyY5/KqRokMgyRB7eiPgoGRXe8RLIuSI=; h=Date:From:To:Subject; b=bms6/jiHxfnS1RyJkMtsFbXuLDGs1d4FNXpRbmqq2aYMfd4QwYWJNQEc3ddUdtLr/ LeDRdviDMf3I0nvp3MfAgMS8/HJi7VI4B+PowD3IrUm+Hj3mwldrkspArZA6bUDl40 VdtAFk5d46b4R3n+P+Av8VSoXEgFjNB8XZcHJXzw= Original-Received: (from van.ly@localhost) by sdf.org (8.16.1/8.12.8/Submit) id 3778YFcA006972; Mon, 7 Aug 2023 08:34:15 GMT Received-SPF: pass client-ip=205.166.94.24; envelope-from=van.ly@sdf.org; helo=mx.sdf.org X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 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, 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.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:144660 Archived-At: I have the following configuration that works in view-mode 1 (defun hnxb/quail-show-key-define-char () 2 "Show input sequence and character definition in message buffer." 3 (interactive) 4 (progn (hnxb/quail-show-key) (hnx/define-char))) 5 6 (add-hook 'view-mode-hook 7 (lambda () 8 (define-key view-mode-map (kbd "S-") 'mouse-set-point) 9 (define-key view-mode-map (kbd "S-") 'hnxb/quail-show-key-define-char))) I would like to have something like the following outside of view-mode (global-set-key (kbd "f1- f1-") 'hnxb/mouse-move-quail-show-key-define-char) that implicitly repositions the cursor to where the mouse points as done by line 8 to be followed by line 9 in the above block quote. What happens is "f1-" repositions the cursor but "" button event is yanking from the clipboard where "f1-" is intended.