[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#42484: 26.1: org-mode should display value of links in mini-buffer
From: |
Boruch Baum |
Subject: |
bug#42484: 26.1: org-mode should display value of links in mini-buffer |
Date: |
Mon, 12 Oct 2020 09:11:56 -0400 |
User-agent: |
NeoMutt/20180716 |
This turned out to be so suspiciously trivial, it may well be a bug-fix
rather than a feature request. The org-mode code-base had already been
setting the 'help-echo property for links, etc. in over a dozen places
across several files, so there was clearly at one point an intention to
do something with the property, but I don't see it being used *anywhere*,
just defined. My guess is that at some point, this feature existed and
got removed, but I don't have the resources (full git and email
histories) to do that research.
Here's an example implementation of the fix:
#+BEGIN_SRC emacs-lisp
(defun my-org-mode-post-command-hook ()
"Show POINT's \"help-echo\" information in the echo area.
This could be information about an org-link at POINT, or some other data."
(let ((message-log-max)) ; suppress output to *Messages* buffer
(message(get-text-property (point) 'help-echo))))
(add-hook 'post-command-hook 'my-org-mode-post-command-hook t t)
#+END_SRC
If you want me to re-submit this as a formal patch with a NEWS entry,
let me know. The org developers may also have some other implementation
they prefer, or some other buffer-local hook they would prefer to use.
On 2020-09-06 10:21, Bastien wrote:
> Hi Boruch,
>
> Boruch Baum <boruch_baum@gmx.com> writes:
> Can you suggest this feature to the Org list at emacs-orgmode@gnu.org?
> Such "electric" display could sure be useful, but I would like to get
> feedback from other Org contributors and users before accepting a
> patch.
Done, with only one response evincing any interest (see below).
> I'm closing this as this is not an Emacs bug.
See paragraph #1, above
From: Kévin Le Gouguec <kevin.legouguec@gmail.com>
To: Boruch Baum <boruch_baum@gmx.com>
Cc: emacs-orgmode@gnu.org
Subject: Re: [bzg@gnu.org: Re: bug#42484: 26.1: org-mode should
display value
of links in mini-buffer]
That would be very welcome, IMO. FWIW, markdown-mode does that (when
markup is hidden) using ElDoc; cf. markdown-eldoc-function.
--
hkp://keys.gnupg.net
CA45 09B5 5351 7C11 A9D1 7286 0036 9E45 1595 8BC0
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- bug#42484: 26.1: org-mode should display value of links in mini-buffer,
Boruch Baum <=