From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id +KE2DNGxAGC6JAAA0tVLHw (envelope-from ) for ; Thu, 14 Jan 2021 21:04:17 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id 2IHzB9GxAGBpNgAAbx9fmQ (envelope-from ) for ; Thu, 14 Jan 2021 21:04:17 +0000 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 8386B9402A2 for ; Thu, 14 Jan 2021 21:04:16 +0000 (UTC) Received: from localhost ([::1]:57974 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1l09mx-0007tg-9d for larch@yhetil.org; Thu, 14 Jan 2021 16:04:15 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:38414) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l09lm-0007RF-HT; Thu, 14 Jan 2021 16:03:02 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:56122) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1l09lm-00035Q-A7; Thu, 14 Jan 2021 16:03:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1l09lm-0006ic-6W; Thu, 14 Jan 2021 16:03:02 -0500 X-Loop: help-debbugs@gnu.org Subject: bug#42484: 26.1: org-mode should display value of links in mini-buffer Resent-From: Samuel Wales Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org, emacs-orgmode@gnu.org Resent-Date: Thu, 14 Jan 2021 21:03:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 42484 X-GNU-PR-Package: emacs,org-mode X-GNU-PR-Keywords: To: Juri Linkov Received: via spool by 42484-submit@debbugs.gnu.org id=B42484.161065815325759 (code B ref 42484); Thu, 14 Jan 2021 21:03:02 +0000 Received: (at 42484) by debbugs.gnu.org; 14 Jan 2021 21:02:33 +0000 Received: from localhost ([127.0.0.1]:39428 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l09lI-0006hO-Na for submit@debbugs.gnu.org; Thu, 14 Jan 2021 16:02:33 -0500 Received: from mail-lj1-f175.google.com ([209.85.208.175]:36616) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l09lH-0006hB-7Z for 42484@debbugs.gnu.org; Thu, 14 Jan 2021 16:02:32 -0500 Received: by mail-lj1-f175.google.com with SMTP id n8so8055806ljg.3 for <42484@debbugs.gnu.org>; Thu, 14 Jan 2021 13:02:31 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=RU9L1GjBFUEttYe6rPBRnOo7iZ1vNWTDMExC4u7/v7w=; b=UAu9zJPmWKxNrI1sCWY0SeA/Um3lbDiqMKVWIV4ydvxa7EcaLGMB2Gc6yCTvXl90At PWX0IDQXiDDoOxl+aZYZARK2wtk0HlVFfnq3VaFL5yVJjHBvpq9SKAjWpRvKG02bLYp4 28M7iaoeVga5/23lV0PFa8bPLeQ5KpsKjJpoNk42A9aUj8hxiG82jFFTtik4HkMk89+5 AHSCWGRgHDnQxFtkQeIS6lFjMWxic5AmQfYHQB6bPD3bpe5W0KwnXcBvkmdNjESQWVWb 5ygDQfX7ikb0XgpjHhl412XUWVmuECJ7PUQsKL373Uuqu+wChHPgTPohVCLeN0W3lYAM pBSA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=RU9L1GjBFUEttYe6rPBRnOo7iZ1vNWTDMExC4u7/v7w=; b=G9irEuTHfEAVxgGXCTA6RiPj8sqObaQZ1e5DfE+VZNgUxdp1nPg3rICGzIi/5BJluh gByCj9tsAyYDtSV/bVduYte71RRNKvXS6FRW7dwjAfiWrUs7yMClyKJ/DAyZ6AdLS5KJ 9RvGNB0oL1NAX13UEQRa2u94a03LHenD59wzSD9T/i8HbnIzb+3Jq5eB0rcyCaNW+gqC GQAD/MDQkEndm17R7ccQZYXM7SsMp7VlHT3f2VafF9NZXSdDy1m9wMZ85e25+XvyH87m nmoQMXnXRfU2cGCcTXuPRHtGrskqMdEEGx3HYH/t2gzzAHWE/P7dSwR0ryiCvE7tBnv0 Ua5w== X-Gm-Message-State: AOAM532P/HUjV81n4ZcAqYi2C8iVn3+lUgV+GTMObqKHGfKowBkHTopt ZdFsxc2mVEd3x0e1HYAmDYtwSholW6OEA3iUCI0= X-Google-Smtp-Source: ABdhPJylSH9i2BVzlwnM058S8C3y8yJSKRtdq5Afh2HAXBsFHnyZiEF7Jx+Fp0phZ6cLI66JkTvOMbKJ85ddqjty/Qw= X-Received: by 2002:a2e:5756:: with SMTP id r22mr3995584ljd.481.1610658145145; Thu, 14 Jan 2021 13:02:25 -0800 (PST) MIME-Version: 1.0 Received: by 2002:ab3:6450:0:0:0:0:0 with HTTP; Thu, 14 Jan 2021 13:02:24 -0800 (PST) In-Reply-To: <87k0sf512p.fsf@mail.linkov.net> References: <87v9c35mny.fsf@mail.linkov.net> <20210112094550.lk2rmhohtpbglarw@E15-2016.optimum.net> <87r1mqv2a6.fsf@mail.linkov.net> <20210113054007.7pdl3ykvlku6namu@E15-2016.optimum.net> <20200723035629.7jg2pd2mhqjowvh4@E15-2016.optimum.net> <87lfcxkpk5.fsf@mail.linkov.net> <87k0sf512p.fsf@mail.linkov.net> From: Samuel Wales Date: Thu, 14 Jan 2021 14:02:24 -0700 Message-ID: Content-Type: text/plain; charset="UTF-8" X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: emacs-orgmode@gnu.org List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Boruch Baum , 42484@debbugs.gnu.org Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Migadu-Flow: FLOW_IN X-Migadu-Spam-Score: -1.26 Authentication-Results: aspmx1.migadu.com; dkim=fail (headers rsa verify failed) header.d=gmail.com header.s=20161025 header.b=UAu9zJPm; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Migadu-Queue-Id: 8386B9402A2 X-Spam-Score: -1.26 X-Migadu-Scanner: scn1.migadu.com X-TUID: iJfqqwwbRee3 by activate i mean display, in echo area, whatever it is i want to display. i think help-echo is a text property, and i might or might not want to display it, depending. and i might want to display the other stuff even if there is no help-echo. i use [and adore] org-link-minor mode in elisp mode. it highlights links and timestamps and makes links followable. i even use [[target]] <> within elisp buffers, and org id links that go from elisp to org and vice-versa. if org-link-minor-mode is active in an elisp buffer, i can run the following to detect whether cursor is over an org ts. (defun hoka-eldoc-at-point () (when (eq 'org-date (get-text-property (point) 'face)) (format "%s" (when (fboundp 'alpha-org-time-span) (with-no-warnings (alpha-org-time-span)))))) then i get the time span in the echo area. a time span is e.g. -1 for yesterday. it could just as well be a timestamp in a different format or lang. so that's great. but i want mouse hover to do the same thing, and to do so with a delay. and i want links of course. more generally, i might occasionally want /some/ eldoc type stuff and /some/ help-echo stuff. so org-link-minor-mode was useful in my case because it [i think it is it] adds face property which can be used. and i thought that might be useful to you. idk though. in my case i find it a bit overwhelming to get whatever solution i use for cursor to also work for mouse [with appropriate delays]. and get whatever else to work and to not have anything annoyingly display. On 1/14/21, Juri Linkov wrote: >> this is an interesting discussion. is there any side discussion that >> takes into account both mouse and cursor? > > Indeed, you can see a side discussion at > https://lists.gnu.org/archive/html/emacs-devel/2020-11/msg00885.html > where we discussed highlighting the completion candidate > the same way whether the mouse pointer hovered over it, > or the cursor moved to its buffer position. > > That discussion also mentions another way to display > help-text using cursor-sensor-mode, i.e. after enabling it, > cursor-sensor-functions can detect when the cursor enters > the help-text property, then display it in the echo area. > >> 1] displaying value of link in echo area [the problem you are >> discussing -- don't let me derail it] with a short nonzero delay >> 2] doing so *for both cursor and mouse* -- too much futzing here >> 3] also doing other stuff -- also futzing >> >> other stuff includes maybe [or maybe not] showing function signature >> or docstrings in elisp buffers [possibly with longer delay], and >> showing the time span in number of days from now to the org timestamp >> at point or under mouse in any mode. > > This looks like the 5th possible way to implement this using eldoc, > in addition to tooltips, post-command-hook, help-at-pt, cursor-sensor-mode. > >> i have code for the last thing. the problem is figuring out making >> tooltips, eldoc, help-at-pt, or post-command-hook work with mouse >> and keyboard without verbose help-echo like in dired. also the >> major/minor modes and > > help-at-pt has an option to ignore verbose help-echo in dired. > post-command-hook can be enabled locally only in org-mode buffers. > I don't know how to do the same in eldoc. > >> i guess i am saying [back to topic] this is a bit complex and i wonder >> if a more orthogonal solution is called for? as some might want mouse >> activation also, and eldoc already shows elisp stuff. >> >> and another suggestion: org-link-minor-mode is what i might use to >> identify when to activate org links and timestamps. > > You mean to activate is to display their help-echo? > -- The Kafka Pandemic Please learn what misopathy is. https://thekafkapandemic.blogspot.com/2013/10/why-some-diseases-are-wronged.html