From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id aKwKLB6pWl+mVQAA0tVLHw (envelope-from ) for ; Thu, 10 Sep 2020 22:30:54 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id iJ3zJx6pWl9xewAA1q6Kng (envelope-from ) for ; Thu, 10 Sep 2020 22:30:54 +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 F30759404D2 for ; Thu, 10 Sep 2020 22:30:53 +0000 (UTC) Received: from localhost ([::1]:43160 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kGV5f-00073G-Lj for larch@yhetil.org; Thu, 10 Sep 2020 18:30:51 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:60982) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kGV5G-00072j-3P for emacs-orgmode@gnu.org; Thu, 10 Sep 2020 18:30:26 -0400 Received: from mail-pj1-x1042.google.com ([2607:f8b0:4864:20::1042]:35333) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kGV5E-0004Ds-90 for emacs-orgmode@gnu.org; Thu, 10 Sep 2020 18:30:25 -0400 Received: by mail-pj1-x1042.google.com with SMTP id jw11so737868pjb.0 for ; Thu, 10 Sep 2020 15:30:23 -0700 (PDT) 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:content-transfer-encoding; bh=4twiXpk8ixRXLMtzCmBXx+G2kP3BCcbf+HkhxjXFjP4=; b=hokWK1vWH/dilOf5QUWiRmugSOmj2hpeEiqlasJXB0WGn+T5BhW43yHY4S4I1g1EwR JgfP6aSjIismx8yucKMwkLWQPzTPQcvMIzYlzYT/wHSIbjX51iRkdZT1Qmn5PYcBBWOy cNv/GSBL1+fKCMxibnbKn7bP93c/uANAJSEFDf5p8gX6TptqzB8LORwfXQ9pSH7KHY6y SmvOWc1RFLjglgvi9C+3qCyz0MiyH8NsHRFnCMrw4d+ThdqGTn6q8Lqn/M7hFhCp9Iw/ Vn0TSPC4615MJTKuEunkuIVwH0yZ82RsDiiEr2xl5zyD2vmnBTlO+ygoMsPH24PnYeda JWDg== 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:content-transfer-encoding; bh=4twiXpk8ixRXLMtzCmBXx+G2kP3BCcbf+HkhxjXFjP4=; b=l9yBUBOsjGyP9/fge81R41cu/tgnmx+cQaM/NG+5UMxS3OfXdhXjXiZt61O1fpco3r HzqIT8t/rSVisjgFxZRpoTGjAR4uNdt8ViktLdPmVS02FJd184LenWZ/4IKnqWHV5j0m 9WhYQ9tnFg9GWBIq4RcziMTnmOKQ80yVzF5Cu2zznWoEfqiG2yIn+VMZbMncS6fmNBQ3 AIslxSUZ6T2wS/uhRrPhKS+cO7FHwgXvzgzXDphCP5ibhXmlXRsGPDXfWY4sBSdcIpax iTFDB6zlnCg3l1wmmkwON7AZDWVp6AYsHXexU00N0lo8UYSNQGHtQbrmV66ct8V5MKzd lODg== X-Gm-Message-State: AOAM5311+oGCcaXU1xK2CzVIeUolQggpU0i6zzF9XzrqxAaJJ7AD8jXb cXHFRaahkImyPtAol1G+VTLpH1BACtLcEYZ8jS4= X-Google-Smtp-Source: ABdhPJylNPCPFwQMtvJEBCS6IAOSXRu5dxo7YhCzcNY7Jk14exTLay3RhPUN2SfKvLsVeEwNUPh7ihO9cVPG//dNBLU= X-Received: by 2002:a17:90a:de87:: with SMTP id n7mr1969065pjv.208.1599777022691; Thu, 10 Sep 2020 15:30:22 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:a05:6a10:8371:0:0:0:0 with HTTP; Thu, 10 Sep 2020 15:30:22 -0700 (PDT) In-Reply-To: References: <20200906090348.ok52235yjmpdmtyn@E15-2016.optimum.net> <87sgbvf0oh.fsf@gmail.com> From: Samuel Wales Date: Thu, 10 Sep 2020 15:30:22 -0700 Message-ID: Subject: Re: bug#42484: org-mode should display value of links in mini-buffer To: Maxim Nikulin Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=2607:f8b0:4864:20::1042; envelope-from=samologist@gmail.com; helo=mail-pj1-x1042.google.com X-detected-operating-system: by eggs.gnu.org: No matching host in p0f cache. That's all we know. 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: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: emacs-orgmode@gnu.org Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Scanner: scn0 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20161025 header.b=hokWK1vW; dmarc=pass (policy=none) header.from=gmail.com; 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-Spam-Score: -0.21 X-TUID: ZpObTJBp+DVx the problem for eldoc for me is that for some reason it gets pretty confusing trying to implement lots of things all at once, at least when emacs is already using it for something, or so. here is my current jumble of code. it does work. and has comments but idk if it is of any use. or even understandable to anybody. one other use for it that i have not gotten to in yeras but woulkd be good is to have hovering over timestamps show you the number of days from now to that timestamp. so lots of uses for eldoc. ;; hover text (with-no-warnings (if (< emacs-major-version 24) (setq tooltip-use-echo-area t) (tooltip-mode -1))) (unless (version< emacs-version "25") ;; i find this annoying in at least elisp, and prefer my ;; function enabled in elisp, which does interesting things for ;; org-link-minor-mode. emacs 25 enables this by default. it ;; might be itneresting to see where eldoc is useful. (global-eldoc-mode -1)) ;; make pointer emit help-echo ;; over org links ;; (setq eldoc-idle-delay 8.0) ;; (setq eldoc-idle-delay 0.0) ;; (add-hook 'prog-mode-hook 'eldoc-mode) ;; [[http://google.com][test]] ;; fixme why does this not work in either org or elisp? ;; because there is no help-echo ;; fixme add help-echo ;; [2017-01-16 Mon 12:48] ;; fixme why does this work on links in elisp without this hook? ;; (add-hook 'prog-mode-hook 'alpha-eldoc-help-echo-mode) ;; (add-hook 'org-link-minor-mode-hook 'alpha-eldoc-help-echo-mode) (add-hook 'org-mode-hook 'alpha-eldoc-help-echo-mode) ;; in elisp we might want both link eldoc and elisp eldoc ;; we also want org ts eldoc (defun hoka-eldoc-help-echo-at-point () "Eldoc thingy for help-echo text properties. This works for links, should work for tses in at least org-link-minor mode and org mode, and is/was broken by emacs 25 enabling eldoc at some point. Fixing these things one by one." ;; does this mean we do this every movement? ;; apparently eldoc does (let ((val (or (get-text-property (point) 'help-echo) ;; fixme if at a timestamp (alpha-eldoc-time-span) ;; adding help echo time span to every timestamp ;; seems like it would require org ;; ;; (add-hook 'alpha-eldoc-non-help-echo-hook 'alpha-eldoc-timestamp-hook) ;; (run-hooks alpha-eldoc-non-help-echo-hook) ))) val)) ;; (alpha-eldoc-help-echo-mode) (defun alpha-eldoc-help-echo-mode () "Enable eldoc mode with e.g. org links to display in minibuffer when cursor is over them. Call in the relevant buffer. M-x eldoc-mode to turn off. /Add this to mode hooks/." (interactive) (eval-when-compile (require 'eldoc)) (setq-local eldoc-documentation-function 'hoka-eldoc-help-echo-at-point) (eldoc-mode)) On 9/10/20, Maxim Nikulin wrote: > 06.09.2020 21:18, K=C3=A9vin Le Gouguec wrote: >>> Boruch Baum writes: >>> >>>> In org-mode, when POINT is moved over an org-mode link, wouldn't it be >>>> reasonable for the value of that link to appear in the mini-buffer? Th= e >>>> advantage of that is the user would know where the link points and wha= t >>>> would happen if the link is opened (eg. would an external program open= , >>>> would the network be queried). >> >> That would be very welcome, IMO. FWIW, markdown-mode does that (when >> markup is hidden) using ElDoc; cf. markdown-eldoc-function. > > There was a similar question in May. A message in the middle of that > thread: > https://orgmode.org/list/CAJ51ETo0x=3DZRAV7LFuDVAp7D2Pz-DUHzCrUt+GUby0sLS= Swi7w@mail.gmail.com/ > > > --=20 The Kafka Pandemic Please learn what misopathy is. https://thekafkapandemic.blogspot.com/2013/10/why-some-diseases-are-wronged= .html