emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Samuel Wales <samologist@gmail.com>
To: Nicholas Harrison <nicholasharrison222@gmail.com>
Cc: emacs-orgmode@gnu.org
Subject: Re: [FR] Add eldoc support to show cell contents in shrunk table
Date: Thu, 18 Mar 2021 23:43:28 -0700	[thread overview]
Message-ID: <CAJcAo8sLmx0D_kaMu93PY=ND60yzhQEHK5R1CTL1rsitjXpXTw@mail.gmail.com> (raw)
In-Reply-To: <CAGdSj9H4pP-6TXm5V6KPkg24DCAs3XJq6Dzr6xty=DrUV++VqQ@mail.gmail.com>

just a note about what you are getting yourself into.  there be dragons.

emacs actually provides several mechanisms for help text.  idk the
complete list.  perhaps some have done it de novo with timers.

they have different actual [i've seen them] or possible characteristics:

- some being annoying because of subtle showing too much or not enough
issues [like they show even if you did not move the pointer or cursor
into the relevant area]
- possible interactions with scrolling with pointer or cursor over
stuff that flies by
- some working for text cursor but not mouse pointer or vice-versa or
not controllable [kind of a dealbreaker]

i have notes like these scribbles and had to give up trying to figure it out:

;; fixme currently
;;   mouse ignores tooltip delays for things it works for
;;     that is maybe help-echo dunno
;;   mouse ignores my eldoc thing for org tses
;; mode is off, which i think for some reason works for mouse
;; still to put in echo area

that weas referring to tooltip mode i think.

;; 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 if i am using help-at-pt-display-when-idle to show
;; links, then put cursor over ts to activate eldoc, then put it
;; over link, the link does not show until i move cursor again.
;; thus, /eldoc breaks help-at-pt-display-when-idle/.
;; ***** [[https://mail.google.com/mail/u/0/h/chu69nhq3y6w/?&th=176f7fa279b7c934&v=c][Gmail
- bug#42484: 26.1: org-mode should display value of links in
mini-buffer]]
;; fixme capture buffer point is on a link which is annoying.
;; fixme what did i do before?  see git somewhat before
;; [2021-01-22 Fri 00:32].  perhaps i used eldoc.  perhaps htat
;; will not activate if already on link.

as you can see i wasn't too pleased with the elisp ball of wax in this
particular case.


On 3/18/21, Nicholas Harrison <nicholasharrison222@gmail.com> wrote:
> I'm trying to create an automatic way to see the full contents of an
> org table cell while keeping the table compact. I've discovered
> org-table-shrink and then display-local-help to see the contents, but
> I want this to be done automatically using eldoc. I grabbed and
> modified a function from org-eldoc.el which could be added into
> org-eldoc-documentation-function:
>
> (defun org-eldoc-get-cell-contents ()
>   "Return cell contents if in a shrunken table cell."
>   (let ((case-fold-search t))
>     (save-excursion
>       (save-match-data
>         (when (org-at-table-p)
>           (display-local-help))))))
>
> I don't really know what I'm doing since I'm not a developer of Emacs
> or org-mode and straight up using display-local-help doesn't seem
> right to me. I think I have unneeded code in there too. Does anyone
> have a better direction on how to get the cell contents when in an org
> table or corrections to this function?
>
> Nicholas
>
>


-- 
The Kafka Pandemic

Please learn what misopathy is.
https://thekafkapandemic.blogspot.com/2013/10/why-some-diseases-are-wronged.html


      reply	other threads:[~2021-03-19  6:44 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-03-19  6:06 [FR] Add eldoc support to show cell contents in shrunk table Nicholas Harrison
2021-03-19  6:43 ` Samuel Wales [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAJcAo8sLmx0D_kaMu93PY=ND60yzhQEHK5R1CTL1rsitjXpXTw@mail.gmail.com' \
    --to=samologist@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=nicholasharrison222@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).