From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Christopher Miles Newsgroups: gmane.emacs.help Subject: [SOLVED] Re: [QUESTION] Mouse click on an text-property object displayed as image not working Date: Sat, 16 Jan 2021 04:35:19 +0000 Message-ID: References: <8735z3g4bv.fsf@web.de> <8735z3e8sx.fsf@web.de> Reply-To: Christopher Miles Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="40266"; mail-complaints-to="usenet@ciao.gmane.io" Cc: "help-gnu-emacs@gnu.org" To: Michael Heerdegen Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Sat Jan 16 05:47:56 2021 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 1l0dVD-000ALX-O1 for geh-help-gnu-emacs@m.gmane-mx.org; Sat, 16 Jan 2021 05:47:55 +0100 Original-Received: from localhost ([::1]:52964 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1l0dVC-0001tF-IC for geh-help-gnu-emacs@m.gmane-mx.org; Fri, 15 Jan 2021 23:47:54 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:37000) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l0dTr-0001rZ-3h for help-gnu-emacs@gnu.org; Fri, 15 Jan 2021 23:46:31 -0500 Original-Received: from mail-ej1-x62a.google.com ([2a00:1450:4864:20::62a]:43104) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1l0dTo-0006Pm-B9 for help-gnu-emacs@gnu.org; Fri, 15 Jan 2021 23:46:30 -0500 Original-Received: by mail-ej1-x62a.google.com with SMTP id jx16so16203297ejb.10 for ; Fri, 15 Jan 2021 20:46:27 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:thread-topic:thread-index:date:message-id :references:in-reply-to:reply-to:accept-language:content-language :mime-version; bh=wRVZrArkhKyvmUUA2v0ec6ohJdg2ZPyYfX4NxU/er4g=; b=nELFVXabJPr+0cfsQKX0eWCh2Zkkk9wMHocCtPsnEtIDeoW3I4SZoEYY5rvywgb3Rw /c3XoSGS2kdFuxE2hFJXVdJKq/6ut2fJ5qyk118y4vvWolRztaRP8kfJtyOqGcdhcU0Z P7zy1uUfd5rSq8Mp6Tu7ELaFJFg7G1U//pRy5jpGTOPVoXsZPsAYpRWfRfY4/Fs7kVmi 0lDvTH3Kzt0G64T1AnTHB4RZHFn5ba+aT0domA/xv8fDGGM4cUB7jzrUasyvMc5aeWIP G6DgArdRPmvhFmVc+GiPfERLAUuCRpm68GB/k1Tkke0S/Y2R2hBHb3FD6xNNvh54MWyd DgCg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:thread-topic:thread-index :date:message-id:references:in-reply-to:reply-to:accept-language :content-language:mime-version; bh=wRVZrArkhKyvmUUA2v0ec6ohJdg2ZPyYfX4NxU/er4g=; b=VbVSGyzeSwqvqxUgA1pcV+hEme+MTqI4qMVvMCAluBpGDB2K4mQiCx1sfNwwhkJxO8 liGdfcnjpSgFYKAykFC42UbOfWyZrrq+Irv2FbAlaoz9/ogMa9KQjfe6x0isyuzDu1pb 8xur0+LMn90gLntxX1nPcgi0OaP6FkvZRoZEcfvEQoHWv8k1OIad+zILkfBhjP0y8G1x ZlpKyN4jrS4/JUG2GTUXX/gIKqRZCyyzIHpO5pb2qTC2yKqrfuEwtzlZl0Tc5vW6/j5g gKaah5R2u39FFELjrXNtIZFDOiueDdF/1Q81WvUkCVYbCGb15LueU5SCfFIm16MVlcQU PxOA== X-Gm-Message-State: AOAM531pXiEfnwwAe6MlRRpD4c1C7jZECWSGB6oCk9LcCNbeWMj7N0cb jCqAkQGfo2dPf1kpwb1Fzw== X-Google-Smtp-Source: ABdhPJxkpSVgM+ZdMCkDCyRWtK3tdRR7PiI4g7DCtAePQP6zh4z93k5txMcNpN/P+OeBhELmQ05t8Q== X-Received: by 2002:a17:906:17c3:: with SMTP id u3mr10746163eje.304.1610772384809; Fri, 15 Jan 2021 20:46:24 -0800 (PST) Original-Received: from VI1PR1001MB1070.EURPRD10.PROD.OUTLOOK.COM ([2603:1026:300:5a::5]) by smtp.gmail.com with ESMTPSA id f17sm5961104edu.25.2021.01.15.20.46.23 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Fri, 15 Jan 2021 20:46:23 -0800 (PST) Original-Received: from dark (183.246.146.67) by HK2PR03CA0066.apcprd03.prod.outlook.com (2603:1096:202:17::36) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3784.7 via Frontend Transport; Sat, 16 Jan 2021 04:35:17 +0000 Thread-Topic: [SOLVED] Re: [QUESTION] Mouse click on an text-property object displayed as image not working Thread-Index: AQHW6VVneNY3W5ZutEeHmAOE/FVcvaoprveA X-MS-Exchange-MessageSentRepresentingType: 1 In-Reply-To: <8735z3e8sx.fsf@web.de> Accept-Language: zh-TW, en-US Content-Language: en-US X-MS-Exchange-Organization-AuthAs: Internal X-MS-Exchange-Organization-AuthMechanism: 06 X-MS-Exchange-Organization-AuthSource: VI1PR1001MB1070.EURPRD10.PROD.OUTLOOK.COM X-MS-Has-Attach: yes X-MS-Exchange-Organization-Network-Message-Id: 5043af0f-7f94-4372-abe2-08d8b9d82064 X-MS-Exchange-Organization-SCL: -1 X-MS-Exchange-Organization-RecordReviewCfmType: 0 x-clientproxiedby: HK2PR03CA0066.apcprd03.prod.outlook.com (2603:1096:202:17::36) To VI1PR1001MB1070.EURPRD10.PROD.OUTLOOK.COM (2603:10a6:800:69::18) Received-SPF: pass client-ip=2a00:1450:4864:20::62a; envelope-from=numbchild@gmail.com; helo=mail-ej1-x62a.google.com 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, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, 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.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:127271 Archived-At: --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Michael Heerdegen writes: > Christopher Miles writes: > >> keymap [Show] > > That button is clickable btw. Thanks for hint, I checked it out. > >> So I should define keymap on ~image-map~. But this is global. Is there >> any other good solution to get around this adding keybinding on global >> map? Maybe make this ~image-map~ buffer locally? > > This is the harder part of the question. Seems in your case > `org-display-inline-images' is attaching the keymap property. You could > try to override the property, depending on when your code is run. The > overlays seem to be collected in `org-inline-image-overlays'. If a > changed buffer-local binding of `image-map' does not make sense in your > case you could also advice `org-display-inline-images'. > Yes, I tested with setting buffer-local `image-map', now it works fine. > Regards, > > Michael. Thanks, Michael. =2D-=20 [ stardiviner ] I try to make every word tell the meaning that I want to express. Blog: https://stardiviner.github.io/ IRC(freenode): stardiviner, Matrix: stardiviner GPG: F09F650D7D674819892591401B5DF1C95AE89AC3 --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAEBCAAdFiEE8J9lDX1nSBmJJZFAG13xyVromsMFAmACbPoACgkQG13xyVro msOW1gf/SVvCeXA1FbQouWSK5HMbeOWTFqWWtXiWzILWb5sc1jHkABvgMV9qYOaL CKTlWiooB7yM8qiXoOLdn9G5JlHiBEEoGRUZg+ik+bMIY6OU1RCT5do1SqFTVlrh J+rMhJux2G2TnjpCfFx2yTy1xDxthqI50KjnW35lvKhDFwka1vZLnmCykv4ToqlS 0kB2pquRqr1oQ1iCrm6uCZj0V5U8yZ8JI/yN4Ef92qOXcKXIRXJ4Z6c3kS+OZQ9M QwmhCtpAWXwO4+nvJleaophHyyEdMMn2ofj41iZpMHCrvExNRoCT2zNnmPX/+EdL ts/yymQIO5CWEYVQ5R5kSJecfh8TXA== =ELpc -----END PGP SIGNATURE----- --=-=-=--