From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id IKQIH4Q/VGBqWgAA0tVLHw (envelope-from ) for ; Fri, 19 Mar 2021 06:07:00 +0000 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id MEbOGoQ/VGD8RwAAB5/wlQ (envelope-from ) for ; Fri, 19 Mar 2021 06:07:00 +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 DFD6D268CE for ; Fri, 19 Mar 2021 07:06:59 +0100 (CET) Received: from localhost ([::1]:38936 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lN8Hh-0007Nr-HF for larch@yhetil.org; Fri, 19 Mar 2021 02:06:57 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:55510) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lN8HK-0007NV-30 for emacs-orgmode@gnu.org; Fri, 19 Mar 2021 02:06:34 -0400 Received: from mail-lf1-x12a.google.com ([2a00:1450:4864:20::12a]:45658) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lN8HI-0006wI-LO for emacs-orgmode@gnu.org; Fri, 19 Mar 2021 02:06:33 -0400 Received: by mail-lf1-x12a.google.com with SMTP id g8so1134367lfv.12 for ; Thu, 18 Mar 2021 23:06:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=tcMHPcxHug7kaj0DojeIp+71g+sVx9YZN2sezP4Px3E=; b=ZrStdqB7xpD1IM0Ux1pEnWuqfMWFxVmiMv2Tjb7FqfwQZPAoAjoHgfYPILmZMetIpM ewcTuXczsFFtMKiU5DnkOZbYpAJHyyvEegAIBJQsk3HYw7hnWR0Ca2vhowAToUoWyajK 9wbwHChuE0h9MMiPRfbjdW0ObyU/brdon64B/9WKN0/b5+uV7SRnsKVPUh1wgKXrUjqo J46aBRxcJusg8y5uUGI5UUcekxDk7FiguT/OuOf5i6ByZHmqv0Q8LcAuP5+emidh3r+b 7xx+BEBfRajDL7VBML2HZVMpC+IoTLO8+StMoVstIgC7x+ufyjRbt2I7joWmBvZjnXe/ ZIQw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=tcMHPcxHug7kaj0DojeIp+71g+sVx9YZN2sezP4Px3E=; b=qN4e+nizRLLPLMYxaGGcy4BVsDBZbHurmzd4ICf2GoMGZIZFblRH4B0JCY7yo7blcU tgtqd+l/chh7kpAHF+c9/n8Jnsp5uFUz2uvs/qzWWvxE9b+XeKxU+E2H2yM6ew2XMZVQ tUEoz5bi8k9N1w9S0iq9msX++5XWWqGvdrF34eHDsxKgI/GO4qZFKFAzmFrmeTpM5+xb hdL3kFATkr/dy28DJS0+YIauzeK2K9PDpHmYaVZIxIQHxp/N3Y8ViHs3xZxtFVqLj2iz g1kPdRzYi3Uq+4axh4nSXm7IfgeBK95KJ68IUgZ4oKYvlwhC1rsbsVoPhjYLn1nMVU5R YJBg== X-Gm-Message-State: AOAM5318r6wOVwwu+Mv76uYuHM+/Dl7z7Vv42ndLXOwdULtjF0+EROv+ mbnd80oEr/7rZBBPaO1U5vjxtMEC3pnOHjTwJb08Id6lWcqbcg== X-Google-Smtp-Source: ABdhPJxZLwwHKBalPfsrzLccYSXm9b+bz/T2eYXnOl1ZvkEyJyOulkulVchqd2pwGRQbmQPO6xGaXMRc4sjnmjJ5mN8= X-Received: by 2002:a19:c307:: with SMTP id t7mr7403417lff.413.1616133989645; Thu, 18 Mar 2021 23:06:29 -0700 (PDT) MIME-Version: 1.0 From: Nicholas Harrison Date: Fri, 19 Mar 2021 00:06:18 -0600 Message-ID: Subject: [FR] Add eldoc support to show cell contents in shrunk table To: emacs-orgmode@gnu.org Content-Type: text/plain; charset="UTF-8" Received-SPF: pass client-ip=2a00:1450:4864:20::12a; envelope-from=nicholasharrison222@gmail.com; helo=mail-lf1-x12a.google.com X-Spam_score_int: -17 X-Spam_score: -1.8 X-Spam_bar: - X-Spam_report: (-1.8 / 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_ENVFROM_END_DIGIT=0.25, 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: , Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1616134020; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=tcMHPcxHug7kaj0DojeIp+71g+sVx9YZN2sezP4Px3E=; b=QpGwevOOT69xDqtUJi5wawTiSDe1AGFhtRSW2n4GUSJCPFYbhkueTf3y/yFat8eik6rmSM Y7t/S5G+vl440wXwBcaxcVfyL9wDtMFgxiblUqEjZ5ydFkiqX1ybGtDxdd7iR7PHT9irgC cjz6JtzFK9QJNbU7U68tSeqW98fyvSOSz69URwg3VdyT9+ClQXUl3XaRqmiRtg9wnhljoj fgNstb+Y9Ui4e6708LuxhmSQ/OGvHdsQe64526IEJm/Vskk5kCh4HPQ8wpxQ3zzIpJBJ+0 V86VkixgGuxQ56XHAc7geWeSYA6lAb+zaHZtnzmU/ekP5qBnAtRwI1uCtzXhBw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1616134020; a=rsa-sha256; cv=none; b=EtlIhiDvU87XhX08RjtzsK9JaMnpJzZApnU9PEUW2sktp91CIvBgojHsObUeunOYHPhbl7 pcRBUTkHV/enQDrGkEsx3LfM7V7iikCHT5oJEazdcNzrqawqnjBn9uM3Jt4Yl7/32WGE2w Tt6QIzxkm/Blpi3rTJDbbTRBznF6FyuINH7Av4tPxgHPh15aisEWSgL1Bpy4Bq0CCA9ORF 1lWup40WTtQiU4I/jx9xj5bDZlineEUFqG+eoD5xlH0rti7bT7PaL6HZGI/OFegOm0ecMg 6PjMg9fVLUZrpRvU1lkQwT8uFhYDSNmUJiJU9/UaiTEq/Yb9Pqstn81dCvl1GA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20161025 header.b=ZrStdqB7; 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-Migadu-Spam-Score: -3.11 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20161025 header.b=ZrStdqB7; 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-Migadu-Queue-Id: DFD6D268CE X-Spam-Score: -3.11 X-Migadu-Scanner: scn0.migadu.com X-TUID: rQM2IaEqfkh5 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