From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id aFJVIr2QFmK/UgEAgWs5BA (envelope-from ) for ; Wed, 23 Feb 2022 20:53:33 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id eHIAH72QFmKMSQAAauVa8A (envelope-from ) for ; Wed, 23 Feb 2022 20:53:33 +0100 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 2BBB23768A for ; Wed, 23 Feb 2022 20:53:33 +0100 (CET) Received: from localhost ([::1]:46000 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nMxhb-0000ZB-Ve for larch@yhetil.org; Wed, 23 Feb 2022 14:53:31 -0500 Received: from eggs.gnu.org ([209.51.188.92]:54962) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nMxgg-0000Yx-4a for emacs-orgmode@gnu.org; Wed, 23 Feb 2022 14:52:34 -0500 Received: from mout01.posteo.de ([185.67.36.65]:58897) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nMxgd-0001OS-DM for emacs-orgmode@gnu.org; Wed, 23 Feb 2022 14:52:33 -0500 Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id EB79C24002A for ; Wed, 23 Feb 2022 20:52:27 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1645645948; bh=kMuBUq1Nvb2uY2pp90RkpPBR5iSDSXvCzl1Shrd67j4=; h=From:To:Cc:Subject:Date:From; b=fYvqxjUeL6rQLAznQbML/GIVj02L9T23FViLpZ1c8YDM8LgqquRxlXGq73gWTMYKz R1wTDZ0ryeKBuFxvv8nYolJ3mm6kBkgVQjKytV8SpTVdlFAwrI+z05pKC+b27OAbIk BGxmYRLBpdLq8Odc+OLtQhUWuEfOzuHvSa+VEcuUp8qyg+BJHr3yIpFe30855HGhkE FCAze6krUjXiNDtqGiRyko8nqXqlMs6LD9rvT05o4eTP6o8FjWEeuGygxpJS8uL62G 6BWvaZWzUzDZOdivnbNB8zGRbFChBzdYfyQLRGsTcZsOiWw4se7PvSypdw/ENsv2QY wQdrocCillqzw== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4K3msR1GpCz6tpb; Wed, 23 Feb 2022 20:52:26 +0100 (CET) From: =?utf-8?Q?Juan_Manuel_Mac=C3=ADas?= To: Samuel Wales , Ypo Subject: Re: Footnote tooltips (an attempt) References: <63ab1106-8aa7-4dd1-923b-04ac8fd4470a@gmail.com> <87ee3u8gjr.fsf@posteo.net> Date: Wed, 23 Feb 2022 19:52:24 +0000 In-Reply-To: (Samuel Wales's message of "Tue, 22 Feb 2022 20:34:24 -0700") Message-ID: <87czjdgy2v.fsf@posteo.net> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Received-SPF: pass client-ip=185.67.36.65; envelope-from=maciaschain@posteo.net; helo=mout01.posteo.de 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_H5=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: orgmode Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Migadu-Flow: FLOW_IN X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1645646013; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=ABNxvHjLcPPSJiy7oIWQkvQ6wELrNMAtJRTYC4REvw8=; b=j5WkVu9+AeowFTbTpkIgUXU8WiEKSGgh2ohRhJ9Wwlv8vAzFA/IHqTjVrPbkF1f5q+kfpl qPyxthAswZu5aC3stkkuuFIgMwB2m43HfWbocR7YQdR8ExiK/sZPRIt2g+ZO3EFvRl/IKr OUWRDkgLNdPfvuHBJ4hzafMZ5d37/moK7j1A8eZFRdlheI36zZZvRlaOtSC1Z4AQAlwqnW r93XT8Eya9hsxrXN0TYfjyReFj6L0BVzupU/UMZES8bzjL1taGyVkQyDcmSW5Upaivq9Nm kVX5pW8MbCAVlgFDIRniw6lAcYRLm6wp2dYgzWYmVt5Pmteu9/gaFQZZGMrGCQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1645646013; a=rsa-sha256; cv=none; b=gmWbL8sD4cjn2olG+TB8EJetIunTIycv4/qK+ZWHmmKE6VS85ZvVoXzm4BrQucUx7Ltt7O xCF6tddp4eq3Cm41iWLyKd+yQi3L9DKDpMy7un+YRXDzIsom+FYa2EKbTeQdkqmrflboAp lzgOheGX6zZiXpfTMwWBPWKglUTeDox5UzhdzpcCjZjeJlX+FjLUAb9jBdCouAITbVAbI+ XziUyU9iuj6ePflvbLN9UrMgoB0cN0vwgXzsGTuIeCkh7iaIRYLOrc5fb4KdMECnUGOiW2 fcjrsz6oey7CId0qBUE+8oGDa5Wv6MRIbmnSz4nEXZd6qppicMWYYKAhh/eRaA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=fYvqxjUe; dmarc=pass (policy=none) header.from=posteo.net; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -4.53 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=fYvqxjUe; dmarc=pass (policy=none) header.from=posteo.net; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: 2BBB23768A X-Spam-Score: -4.53 X-Migadu-Scanner: scn1.migadu.com X-TUID: ok+p2JNDGJ3G --=-=-= Content-Type: text/plain Hi Samuel, Samuel Wales writes: > what a great idea. i am interested in your comments. emacs has lots > of tooltip-related features. eldoc, help-at-pt, mouse-avoidance, etc. > you don't want tooltips when your mouse happens to end up over. or > for your mouse to go haywire just because you ended up over. i ran > into a lot of confusion with various mechanisms. > > [e.g. i like having tooltips in echo area, and don't like eldoc for > function sigs, and do want cursor/mouse consistency.] > > i found that some tooltip features actually break others. just > wondering if you noticed this and what you think of it. I don't have much experience with Emacs tooltips and I haven't studied them much, because I hardly use the mouse in Emacs :-) But I noticed that you can also display the content of a tooltip in the echo area, with `' (`display-local-help'), or even set to non-nil `help-at-pt-display-when-idle' and evaluate `help-at-pt-set-timer', so that a tootltip is displayed at point; and in this scenario, they can be useful to me to quickly have some type of information. You can also set this variable to force tooltips always in the echo area: (setq tooltip-use-echo-area t) Anyway, I haven't given up on the idea of footnote tooltips yet. Here's a new version of the code I attached in my first post in this thread, and I think it's simpler now and works better, though I don't know if it might have any side effects... Footnote tooltips are activated with the minor mode `my-org-fn-tooltip-mode'. A new demo video: https://cloud.disroot.org/s/sBGJjCzbYgYbn5k Best regards, Juan Manuel --=-=-= Content-Type: application/vnd.lotus-organizer Content-Disposition: attachment; filename=fn-tooltips.org Content-Transfer-Encoding: base64 IytUSVRMRTogRm9vdG5vdGUgVG9vbHRpcHMgKFRlc3QgdjIpOiBhbiBBdHRlbXB0CiMrQVVUSE9S OiBKdWFuIE1hbnVlbCBNYWPDrWFzCgoKIytiZWdpbl9zcmMgZW1hY3MtbGlzcCA6dGFuZ2xlIG5v IDpyZXN1bHRzIHNpbGVudAogIChvcmctYmFiZWwtbG9hZC1maWxlIChidWZmZXItZmlsZS1uYW1l KSkKIytlbmRfc3JjCgojK2JlZ2luX3NyYyBlbWFjcy1saXNwCiAgOzs7ICAtKi0gbGV4aWNhbC1i aW5kaW5nOiB0OyAtKi0KIytlbmRfc3JjCgojK2JlZ2luX3NyYyBlbWFjcy1saXNwCiAgKGRlZmlu ZS1taW5vci1tb2RlIG15LW9yZy1mbi10b29sdGlwLW1vZGUKICAgICJUT0RPIgogICAgOmxpZ2h0 ZXIgImZudCIKICAgIDpnbG9iYWwgbmlsCiAgICAoaWYgbXktb3JnLWZuLXRvb2x0aXAtbW9kZQoJ KHByb2duCgkgIChhZHZpY2UtYWRkICdvcmctYWN0aXZhdGUtZm9vdG5vdGUtbGlua3MKCQkgICAg ICA6b3ZlcnJpZGUKCQkgICAgICAjJ215LW9yZy1hY3RpdmF0ZS1mb290bm90ZS1saW5rcykKCSAg KGFkdmljZS1hZGQgJ29yZy1tYXJrLXJpbmctZ290bwoJCSAgICAgIDphZnRlcgoJCSAgICAgICMn bXktb3JnLWZuLW1ha2UtdG9vbHRpcHMpCgkgIChhZHZpY2UtYWRkICdvcmctZWRpdC1zcmMtZXh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