From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id 2HImNKrzc2T7TAAASxT56A (envelope-from ) for ; Mon, 29 May 2023 02:36:58 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id oOazM6rzc2S7GgEAauVa8A (envelope-from ) for ; Mon, 29 May 2023 02:36:58 +0200 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 6151F335E for ; Mon, 29 May 2023 02:36:58 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1q3Qrg-0002T4-Or; Sun, 28 May 2023 20:36:00 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1q3Qrf-0002Ss-ED for emacs-orgmode@gnu.org; Sun, 28 May 2023 20:35:59 -0400 Received: from mail-oi1-x233.google.com ([2607:f8b0:4864:20::233]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1q3Qrd-0001ia-09 for emacs-orgmode@gnu.org; Sun, 28 May 2023 20:35:59 -0400 Received: by mail-oi1-x233.google.com with SMTP id 5614622812f47-392116ae103so1748717b6e.0 for ; Sun, 28 May 2023 17:35:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1685320555; x=1687912555; h=mime-version:message-id:date:subject:to:from:from:to:cc:subject :date:message-id:reply-to; bh=TfaN4hqt3Picd2QLeJb0kcOuZ8Q6QNP1qSEhb8qIIZ4=; b=YysIXbi6/Pt7prMPVDMUssw+KyuWiKshPmaHVFvyY5XrAN9T2xGwK0DMumJyR284KE rHORfG5qL6+8/KyLsfZ102DNUfQm7LKF0X5Oi+yqP+3nRlxNvaBophZAZMx6piuxBvOe 4Vfn14ReIfiFSLdL6zBVf9/6/iQsxcHisNBF8uREi4O5O2w5E3m/pXGB8CodeOE8KIVf PL3iL5lBfYInXkiYwThARl2haFb/InPTwOI/w2bHx3sUFr/B8JIXlDnlxYtbcUgNJ+se cnczd/TFTiuibme+tHyReQF0Ju1ttXopEPCwTO5uun9fr5JtVJENkiu8jnLHRjia6uaY GhTQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1685320555; x=1687912555; h=mime-version:message-id:date:subject:to:from:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=TfaN4hqt3Picd2QLeJb0kcOuZ8Q6QNP1qSEhb8qIIZ4=; b=Qf1CSemd9knDjVH6Xzgd/KS+RBGBLsZgdXEldddas5yRyKygLZoQEPvleYPbzSk55k C84pGlgXmNsfsfC6mD91May5Qkadss2gS78ACLCU90IJ3yot7yc5UeGiWtyi9QUN44m5 5myhUNiPCTGv2+ukIJAGy3pJFAXao18AHtzuOeyZuU6Ba5C7r36OpWwKREp1ZXeBWUoh ZjAxpoMWHyY8f0QYSJS1ZSbNe9a4C3Zfgc8WkyfGXVjt9kdMWnTD28RS5gsuVt8/vw9d lI3/hsbvboQlISBgmg/3UUN7BUl8x6LUK3BVbR17KL0IHtiXoJeKR0YvxPrW657htTtz h2Hg== X-Gm-Message-State: AC+VfDyPCUNS6eiahXAzNb601jGocx8qJHuc6ACiiVuyaiL5sdFAOG3J BqmqLF7Kr1b2w3zihpVs4xhNmTb+oPM= X-Google-Smtp-Source: ACHHUZ6vW+ZVLCbSrLpzijt2EEU7Qf424GWl4/KZNFBErZ5/CqkXdEw7sKzneHpP/1UmZzhmRkLJnA== X-Received: by 2002:a54:4492:0:b0:397:fb0f:c35a with SMTP id v18-20020a544492000000b00397fb0fc35amr4632831oiv.53.1685320555599; Sun, 28 May 2023 17:35:55 -0700 (PDT) Received: from storimasta ([2804:14c:5bb1:5200::1dac]) by smtp.gmail.com with ESMTPSA id j63-20020acab942000000b00397be3b2e3asm3067602oif.0.2023.05.28.17.35.54 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 28 May 2023 17:35:55 -0700 (PDT) From: Bruno Cardoso To: emacs-orgmode@gnu.org Subject: [BUG] lisp/org-eldoc.el: Eldoc does not work in org source blocks Date: Sun, 28 May 2023 21:35:52 -0300 Message-ID: <874jnwynx3.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=2607:f8b0:4864:20::233; envelope-from=cardoso.bc@gmail.com; helo=mail-oi1-x233.google.com 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, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.29 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-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US ARC-Seal: i=1; s=key1; d=yhetil.org; t=1685320618; a=rsa-sha256; cv=none; b=SYaJdzGfgu8SKodbMMqHPPWeiBspYYRz01CJrDH1pdzJTpiQInVwES2GxcW9k6Bi6rWHS4 xPUg5oXdp7GH4pY1pWZNkIyZO3rGu1xX0eHBwqgSY6auG7Dl7OGh3CEiS99pHggxBlZX1r BxM7qiApNTJmLspJkXTPKgBHO9RoDuq/nIxNcvZQ9AtJ9ca131UXL0bdvuOmVcKTU+cTKy JIcnQ9LgYYEafDyqR3FKcYx/Erx1uoJOo8sHw+me5cwbK82Jq6Rsn18t9N3TEvyyVS79Jw 87xwcbJ4N6IOQxJYAGmHnoI9xCwJ6D4KmePP+t8WoI8NKlJx9qa6LKofruQsOw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20221208 header.b=YysIXbi6; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1685320618; 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=TfaN4hqt3Picd2QLeJb0kcOuZ8Q6QNP1qSEhb8qIIZ4=; b=fw4SxBcX5j3sSVd3qYM1/jeKOpqrFI1HZPaVWYxB+iO9i291LqiSZOVjDelrO2mounprE3 7KUN96K32nU6OGop1XmqoxQUZMgJYUUk5+IHZCjNKL5Dt++Vp8MPK5S1IM5wDpWWLOgLA/ wxmi9EaOV10oEVlZc6w3pUrFbq16kGUUAWrakNJ4DTfF6WvNVJ/T9OgAA1gTMY89cDBzWS gP5z15++fLgVRZjn2geaaYPAxFmMFsPA2Dvwbudq75UoNs2OTmfpCx9TC7TdvkP2PspVbO bUC7ts/+BnRH0QuraBlgHJD2y07E5h+bt/xfWPONmRz1kxAL6S6TnvmkRZWLVw== X-Migadu-Scanner: scn1.migadu.com Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20221208 header.b=YysIXbi6; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -4.81 X-Spam-Score: -4.81 X-Migadu-Queue-Id: 6151F335E X-TUID: bwicK5fLWcvx Hello everyone. The Eldoc interface `eldoc-print-current-symbol-info' works everywhere just fine for me (Emacs 28.2), but it does not work inside org source blocks for elisp code. Yet, reverting to the obsolete `elisp-eldoc-documentation-function' in org-eldoc's `org-eldoc-documentation-function' works (see below). I tested it both in my own config and "emacs -Q" with same results. --- lisp/org-eldoc.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lisp/org-eldoc.el b/lisp/org-eldoc.el index 7137c46..24f0aa3 100644 --- a/lisp/org-eldoc.el +++ b/lisp/org-eldoc.el @@ -156,7 +156,8 @@ (fboundp 'elisp-eldoc-funcall)) (let ((eldoc-documentation-functions '(elisp-eldoc-var-docstring elisp-eldoc-funcall))) - (eldoc-print-current-symbol-info))) + ;;(eldoc-print-current-symbol-info))) + (elisp-eldoc-documentation-function))) ((fboundp 'elisp-eldoc-documentation-function) (elisp-eldoc-documentation-function)) (t ; Emacs<25 -- 2.40.1 Is this in fact a bug or should I have configured something else? Best, Bruno.