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 ms5.migadu.com with LMTPS id 8HgIFpS+ZGKqhAAAbAwnHQ (envelope-from ) for ; Sun, 24 Apr 2022 05:05:56 +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 aD3lFZS+ZGLkZgEAauVa8A (envelope-from ) for ; Sun, 24 Apr 2022 05:05:56 +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 3F4272C9E9 for ; Sun, 24 Apr 2022 05:05:55 +0200 (CEST) Received: from localhost ([::1]:36072 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1niSZN-0007Uz-LY for larch@yhetil.org; Sat, 23 Apr 2022 23:05:53 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:43008) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1niSYW-0007Uk-Jn for emacs-orgmode@gnu.org; Sat, 23 Apr 2022 23:05:00 -0400 Received: from mail-pl1-x632.google.com ([2607:f8b0:4864:20::632]:33335) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1niSYT-00039D-CE for emacs-orgmode@gnu.org; Sat, 23 Apr 2022 23:05:00 -0400 Received: by mail-pl1-x632.google.com with SMTP id c23so19588427plo.0 for ; Sat, 23 Apr 2022 20:04:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:from:date:message-id:subject:to :content-transfer-encoding; bh=o56D39E7NX7ErZmJSyKFWeqJCS25xSxfMSMKreaeaL8=; b=J9L10ltuK95gkNs/z9cfI2HWdHIwI5lMAMc/+AtD5ue+i60c9gpn8FQwrs5/KUINmL rNsaSAWkjdqDCUZfkgycYLoQgpAF8+0lyOzBBsumoxe762qX/QXa7O0SNLu06pMofgYY SlHzkPQvVcyvQiKaT4tS8rGOHXcDpMLxxkHaS4lcsuCvZMyAXVJjVxGv3ZtTdqXwHebM AiZcZxHC5WFNNFqItQLulqj7yEl/+oL0uPUts7ltuZa+rkwcUhUBuP8dC2qo0OgnFKqj tz3idAWyjCPAyAkThPo63PZEAJgEgR2N9gTPgHB+zSMSwRr1HLFvaGzCXS1KiKHJ8zOd 9QCA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:from:date:message-id:subject:to :content-transfer-encoding; bh=o56D39E7NX7ErZmJSyKFWeqJCS25xSxfMSMKreaeaL8=; b=QyG12GIuEIQPBkW4CeabkIR7l/+1ioMb67E0PhxntRxa7r9ExZ0RYgysaqEpzyN2Kn BZ2G6ENStRnvmN9fLkhcbUrRCayFp2JGUVI2nKSdSlVaBB6FzhaxoYHnYO2QmyH1vfqz SlutJFwOeXBjNzL9RZ1CfnGue+J9/iUniGZos130t6PocmtYcfWJj43zWpiEj/hKdTQg hJNMRFXgHR785LulBmlN2Ab7FytdrcIGjbg2g+r52NXfvGm13Gr6QEBh4us1JupmYouh X2l78iYwoQLmoBwlDj8piDEzjzByYY8WieEkCcbD+pPEfMRZZKU6hT1+YQygtRYiK2tE UkKQ== X-Gm-Message-State: AOAM532o4t/TSxq9TEgtm36cbxGJ4a1Fpk1v4yCBYAYAZUxmNpKhxKdC nc/KUZ2Qzzc8Lui6rMBSWVzaMKG3vV74o/rWKe12Cnn8f6Q= X-Google-Smtp-Source: ABdhPJwTc1KoAbZyjszHxw23qGch++slAxX+lGJRQ2MuqEsEXdPUUW56xz6SNkkJR9wN/VB4Fej9OLzrd975vvjB+gA= X-Received: by 2002:a17:902:db08:b0:15b:f17a:dc96 with SMTP id m8-20020a170902db0800b0015bf17adc96mr10515436plx.65.1650769493943; Sat, 23 Apr 2022 20:04:53 -0700 (PDT) MIME-Version: 1.0 From: Kaushal Modi Date: Sat, 23 Apr 2022 23:04:17 -0400 Message-ID: Subject: [BUG] org-eldoc inf-loops when point is in an org src block To: emacs-org list Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=2607:f8b0:4864:20::632; envelope-from=kaushal.modi@gmail.com; helo=mail-pl1-x632.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" X-Migadu-Flow: FLOW_IN X-Migadu-To: larch@yhetil.org X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1650769555; 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: content-transfer-encoding:content-transfer-encoding:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=o56D39E7NX7ErZmJSyKFWeqJCS25xSxfMSMKreaeaL8=; b=sDRyM0iqIeuPlf8uEEaxEnrPyt7fGLpruMEetOwAn+V0rAl/BizcmJJr/bMHFT4lb6S4p2 Aavd0smFp4cfGopZR/uQwoRRybj2sxWAnkNV38UbiW/ZNmKDauI7c85/EFKfCGgqqCScwf BO3cEylXfHApqAF4xy3/QpnAeZwL9D/HvZu/odxlNsGJ3r3Rgn2m4QTYAIzKOUc5ilESsk vG0Hio36VDt+xKQpXqRLBKt/XvgXF+Wrs071oqTHTATZDsaAFZzT/+itMvGdxbsSGXcbhw 4oJorx2ocsRXa4BvthdJ5MMzhXl9wleYH4xR8c0l0hHfoeM6foVFFwYSeL8UBQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1650769555; a=rsa-sha256; cv=none; b=PpdacVSlAPJLBEY/Mp6ScQqY1bj4i4wx0aOTrAIysUILv5tzcCyMdQxr12ceXQhWb9tiRg O6wIX/Gfu4lJX+alBVKhAheewpHexavy25MkyYqMop1GwQmYGj4VQCp/bhKNRCkvkK1yrZ 9AgfkXDUn2t4xFBr2QlBqf9fwhHTp2x94hIzEw3U9eyGWbJ9uwDopo8o5Txe8MQdVHbwNe bVyNjEwsZFb7QqkVhHEEQ248LHaKXnbS/AoIoo89/Tui6et5s0IUwd//0MlOmfaDnCUWhx VBVa3ZQetb8ojcH0ns0hM3l+yoYDs+nXs9PhdZY/6ox35shQPVSHFf/M4WVwSA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=J9L10ltu; 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.01 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=J9L10ltu; 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-Queue-Id: 3F4272C9E9 X-Spam-Score: -4.01 X-Migadu-Scanner: scn1.migadu.com X-TUID: ycBZ1rcBAS+K Hello all, For quite some time, this small issue had been bugging me. I enable org-eldoc by default and each time I put the point in an org src block, I would see this error: eldoc error: (error Lisp nesting exceeds =E2=80=98max-lisp-eval-depth=E2=80= =99) Here's a snippet of the full backtrace where we see the `org-eldoc-documentation-function` being entered repeatedly until we hit the max-lisp-eval-depth: =3D=3D=3D=3D=3D Debugger entered--Lisp error: (error "Lisp nesting exceeds =E2=80=98max-lisp-eval-depth=E2=80=99") (if (looking-at org-complex-heading-regexp) (progn (setq cur (match-string 4)) (org-format-outline-path (append (org-get-outline-path) (list cur)) (frame-width) "" org-eldoc-breadcrumb-separator))) (progn (if (looking-at org-complex-heading-regexp) (progn (setq cur (match-string 4)) (org-format-outline-path (append (org-get-outline-path) (list cur)) (frame-width) "" org-eldoc-breadcrumb-separator)))) (unwind-protect (progn (if (looking-at org-complex-heading-regexp) (progn (setq cur (match-string 4)) (org-format-outline-path (append (org-get-outline-path) (list cur)) (frame-width) "" org-eldoc-breadcrumb-separator)))) (set-match-data save-match-data-internal 'evaporate)) (let ((save-match-data-internal (match-data))) (unwind-protect (progn (if (looking-at org-complex-heading-regexp) (progn (setq cur (match-string 4)) (org-format-outline-path (append (org-get-outline-path) (list cur)) (frame-width) "" org-eldoc-breadcrumb-separator)))) (set-match-data save-match-data-internal 'evaporate))) (save-excursion (beginning-of-line) (let ((save-match-data-internal (match-data))) (unwind-protect (progn (if (looking-at org-complex-heading-regexp) (progn (setq cur (match-string 4)) (org-format-outline-path (append ... ...) (frame-width) "" org-eldoc-breadcrumb-separator)))) (set-match-data save-match-data-internal 'evaporate)))) (let ((case-fold-search t) cur) (save-excursion (beginning-of-line) (let ((save-match-data-internal (match-data))) (unwind-protect (progn (if (looking-at org-complex-heading-regexp) (progn (setq cur ...) (org-format-outline-path ... ... "" org-eldoc-breadcrumb-separator)))) (set-match-data save-match-data-internal 'evaporate))))) org-eldoc-get-breadcrumb() (or (org-eldoc-get-breadcrumb) (org-eldoc-get-src-header) (let ((lang (org-eldoc-get-src-lang))) (cond ((or (string=3D lang "emacs-lisp") (string=3D lang "elisp")) (cond ((and (boundp ...) (fboundp ...) (fboundp ...)) (let (...) (eldoc-print-current-symbol-info))) ((fboundp 'elisp-eldoc-documentation-function) (elisp-eldoc-documentation-function)) (t (let (eldoc-documentation-function) (eldoc-print-current-symbol-info))))) ((or (string=3D lang "c") (string=3D lang "C")) (if (require 'c-eldoc nil t) (progn (c-eldoc-print-current-symbol-info)))) ((string=3D lang "css") (if (require 'css-eldoc nil t) (progn (css-eldoc-function)))) ((string=3D lang "php") (if (require 'php-eldoc nil t) (progn (php-eldoc-function)))) ((or (string=3D lang "go") (string=3D lang "golang")) (if (require 'go-eldoc nil t) (progn (go-eldoc--documentation-function)))) (t (let ((doc-fun (org-eldoc-get-mode-local-documentation-function lang)) (callback (car args))) (if (functionp doc-fun) (progn (if ... ... ...)))))))) org-eldoc-documentation-function(#f(compiled-function (string &rest plist) #)) run-hook-with-args-until-success(org-eldoc-documentation-function #f(compiled-function (string &rest plist) #)) (let ((eldoc-documentation-functions doc-funs)) (run-hook-with-args-until-success 'eldoc-documentation-functions callback)) (closure ((doc-funs org-eldoc-documentation-function t) (temp-buffer . #) (doc-func . #0) (mode-func . org-mode) (cached-func . empty) (lang . "org") t) (callback) (let ((eldoc-documentation-functions doc-funs)) (run-hook-with-args-until-success 'eldoc-documentation-functions callback)))(#f(compiled-function (string &rest plist) #)) funcall((closure ((doc-funs org-eldoc-documentation-function t) (temp-buffer . #) (doc-func . #1) (mode-func . org-mode) (cached-func . empty) (lang . "org") t) (callback) (let ((eldoc-documentation-functions doc-funs)) (run-hook-with-args-until-success 'eldoc-documentation-functions callback))) #f(compiled-function (string &rest plist) #)) (if (functionp callback) (funcall doc-fun callback) (funcall doc-fun)) (progn (if (functionp callback) (funcall doc-fun callback) (funcall doc-f= un))) (if (functionp doc-fun) (progn (if (functionp callback) (funcall doc-fun callback) (funcall doc-fun)))) (let ((doc-fun (org-eldoc-get-mode-local-documentation-function lang)) (callback (car args))) (if (functionp doc-fun) (progn (if (functionp callback) (funcall doc-fun callback) (funcall doc-fun))))) (cond ((or (string=3D lang "emacs-lisp") (string=3D lang "elisp")) (cond ((and (boundp 'eldoc-documentation-functions) (fboundp 'elisp-eldoc-var-docstring) (fboundp 'elisp-eldoc-funcall)) (let ((eldoc-documentation-functions '...)) (eldoc-print-current-symbol-info))) ((fboundp 'elisp-eldoc-documentation-function) (elisp-eldoc-documentation-function)) (t (let (eldoc-documentation-function) (eldoc-print-current-symbol-info))))) ((or (string=3D lang "c") (string=3D lang "C")) (if (require 'c-eldoc nil t) (progn (c-eldoc-print-current-symbol-info)))) ((string=3D lang "css") (if (require 'css-eldoc nil t) (progn (css-eldoc-function)))) ((string=3D lang "php") (if (require 'php-eldoc nil t) (progn (php-eldoc-function)))) ((or (string=3D lang "go") (string=3D lang "golang")) (if (require 'go-eldoc nil t) (progn (go-eldoc--documentation-function)))) (t (let ((doc-fun (org-eldoc-get-mode-local-documentation-function lang)) (callback (car args))) (if (functionp doc-fun) (progn (if (functionp callback) (funcall doc-fun callback) (funcall doc-fun))))))) (let ((lang (org-eldoc-get-src-lang))) (cond ((or (string=3D lang "emacs-lisp") (string=3D lang "elisp")) (cond ((and (boundp 'eldoc-documentation-functions) (fboundp 'elisp-eldoc-var-docstring) (fboundp 'elisp-eldoc-funcall)) (let ((eldoc-documentation-functions ...)) (eldoc-print-current-symbol-info))) ((fboundp 'elisp-eldoc-documentation-function) (elisp-eldoc-documentation-function)) (t (let (eldoc-documentation-function) (eldoc-print-current-symbol-info))))) ((or (string=3D lang "c") (string=3D lang "C")) (if (require 'c-eldoc nil t) (progn (c-eldoc-print-current-symbol-info)))) ((string=3D lang "css") (if (require 'css-eldoc nil t) (progn (css-eldoc-function)))) ((string=3D lang "php") (if (require 'php-eldoc nil t) (progn (php-eldoc-function)))) ((or (string=3D lang "go") (string=3D lang "golang")) (if (require 'go-eldoc nil t) (progn (go-eldoc--documentation-function)))) (t (let ((doc-fun (org-eldoc-get-mode-local-documentation-function lang)) (callback (car args))) (if (functionp doc-fun) (progn (if (functionp callback) (funcall doc-fun callback) (funcall doc-fun)))))))) (or (org-eldoc-get-breadcrumb) (org-eldoc-get-src-header) (let ((lang (org-eldoc-get-src-lang))) (cond ((or (string=3D lang "emacs-lisp") (string=3D lang "elisp")) (cond ((and (boundp ...) (fboundp ...) (fboundp ...)) (let (...) (eldoc-print-current-symbol-info))) ((fboundp 'elisp-eldoc-documentation-function) (elisp-eldoc-documentation-function)) (t (let (eldoc-documentation-function) (eldoc-print-current-symbol-info))))) ((or (string=3D lang "c") (string=3D lang "C")) (if (require 'c-eldoc nil t) (progn (c-eldoc-print-current-symbol-info)))) ((string=3D lang "css") (if (require 'css-eldoc nil t) (progn (css-eldoc-function)))) ((string=3D lang "php") (if (require 'php-eldoc nil t) (progn (php-eldoc-function)))) ((or (string=3D lang "go") (string=3D lang "golang")) (if (require 'go-eldoc nil t) (progn (go-eldoc--documentation-function)))) (t (let ((doc-fun (org-eldoc-get-mode-local-documentation-function lang)) (callback (car args))) (if (functionp doc-fun) (progn (if ... ... ...)))))))) org-eldoc-documentation-function(#f(compiled-function (string &rest plist) #)) run-hook-with-args-until-success(org-eldoc-documentation-function #f(compiled-function (string &rest plist) #)) (let ((eldoc-documentation-functions doc-funs)) (run-hook-with-args-until-success 'eldoc-documentation-functions callback)) (closure ((doc-funs org-eldoc-documentation-function t) (temp-buffer . #) (doc-func . #0) (mode-func . org-mode) (cached-func . empty) (lang . "org") t) (callback) (let ((eldoc-documentation-functions doc-funs)) (run-hook-with-args-until-success 'eldoc-documentation-functions callback)))(#f(compiled-function (string &rest plist) #)) funcall((closure ((doc-funs org-eldoc-documentation-function t) (temp-buffer . #) (doc-func . #1) (mode-func . org-mode) (cached-func . empty) (lang . "org") t) (callback) (let ((eldoc-documentation-functions doc-funs)) (run-hook-with-args-until-success 'eldoc-documentation-functions callback))) #f(compiled-function (string &rest plist) #)) (if (functionp callback) (funcall doc-fun callback) (funcall doc-fun)) (progn (if (functionp callback) (funcall doc-fun callback) (funcall doc-f= un))) (if (functionp doc-fun) (progn (if (functionp callback) (funcall doc-fun callback) (funcall doc-fun)))) (let ((doc-fun (org-eldoc-get-mode-local-documentation-function lang)) (callback (car args))) (if (functionp doc-fun) (progn (if (functionp callback) (funcall doc-fun callback) (funcall doc-fun))))) (cond ((or (string=3D lang "emacs-lisp") (string=3D lang "elisp")) (cond ((and (boundp 'eldoc-documentation-functions) (fboundp 'elisp-eldoc-var-docstring) (fboundp 'elisp-eldoc-funcall)) (let ((eldoc-documentation-functions '...)) (eldoc-print-current-symbol-info))) ((fboundp 'elisp-eldoc-documentation-function) (elisp-eldoc-documentation-function)) (t (let (eldoc-documentation-function) (eldoc-print-current-symbol-info))))) ((or (string=3D lang "c") (string=3D lang "C")) (if (require 'c-eldoc nil t) (progn (c-eldoc-print-current-symbol-info)))) ((string=3D lang "css") (if (require 'css-eldoc nil t) (progn (css-eldoc-function)))) ((string=3D lang "php") (if (require 'php-eldoc nil t) (progn (php-eldoc-function)))) ((or (string=3D lang "go") (string=3D lang "golang")) (if (require 'go-eldoc nil t) (progn (go-eldoc--documentation-function)))) (t (let ((doc-fun (org-eldoc-get-mode-local-documentation-function lang)) (callback (car args))) (if (functionp doc-fun) (progn (if (functionp callback) (funcall doc-fun callback) (funcall doc-fun))))))) (let ((lang (org-eldoc-get-src-lang))) (cond ((or (string=3D lang "emacs-lisp") (string=3D lang "elisp")) (cond ((and (boundp 'eldoc-documentation-functions) (fboundp 'elisp-eldoc-var-docstring) (fboundp 'elisp-eldoc-funcall)) (let ((eldoc-documentation-functions ...)) (eldoc-print-current-symbol-info))) ((fboundp 'elisp-eldoc-documentation-function) (elisp-eldoc-documentation-function)) (t (let (eldoc-documentation-function) (eldoc-print-current-symbol-info))))) ((or (string=3D lang "c") (string=3D lang "C")) (if (require 'c-eldoc nil t) (progn (c-eldoc-print-current-symbol-info)))) ((string=3D lang "css") (if (require 'css-eldoc nil t) (progn (css-eldoc-function)))) ((string=3D lang "php") (if (require 'php-eldoc nil t) (progn (php-eldoc-function)))) ((or (string=3D lang "go") (string=3D lang "golang")) (if (require 'go-eldoc nil t) (progn (go-eldoc--documentation-function)))) (t (let ((doc-fun (org-eldoc-get-mode-local-documentation-function lang)) (callback (car args))) (if (functionp doc-fun) (progn (if (functionp callback) (funcall doc-fun callback) (funcall doc-fun)))))))) (or (org-eldoc-get-breadcrumb) (org-eldoc-get-src-header) (let ((lang (org-eldoc-get-src-lang))) (cond ((or (string=3D lang "emacs-lisp") (string=3D lang "elisp")) (cond ((and (boundp ...) (fboundp ...) (fboundp ...)) (let (...) (eldoc-print-current-symbol-info))) ((fboundp 'elisp-eldoc-documentation-function) (elisp-eldoc-documentation-function)) (t (let (eldoc-documentation-function) (eldoc-print-current-symbol-info))))) ((or (string=3D lang "c") (string=3D lang "C")) (if (require 'c-eldoc nil t) (progn (c-eldoc-print-current-symbol-info)))) ((string=3D lang "css") (if (require 'css-eldoc nil t) (progn (css-eldoc-function)))) ((string=3D lang "php") (if (require 'php-eldoc nil t) (progn (php-eldoc-function)))) ((or (string=3D lang "go") (string=3D lang "golang")) (if (require 'go-eldoc nil t) (progn (go-eldoc--documentation-function)))) (t (let ((doc-fun (org-eldoc-get-mode-local-documentation-function lang)) (callback (car args))) (if (functionp doc-fun) (progn (if ... ... ...)))))))) org-eldoc-documentation-function(#f(compiled-function (string &rest plist) #)) run-hook-with-args-until-success(org-eldoc-documentation-function #f(compiled-function (string &rest plist) #)) (let ((eldoc-documentation-functions doc-funs)) (run-hook-with-args-until-success 'eldoc-documentation-functions callback)) (closure ((doc-funs org-eldoc-documentation-function t) (temp-buffer . #) (doc-func . #0) (mode-func . org-mode) (cached-func . empty) (lang . "org") t) (callback) (let ((eldoc-documentation-functions doc-funs)) (run-hook-with-args-until-success 'eldoc-documentation-functions callback)))(#f(compiled-function (string &rest plist) #)) funcall((closure ((doc-funs org-eldoc-documentation-function t) (temp-buffer . #) (doc-func . #1) (mode-func . org-mode) (cached-func . empty) (lang . "org") t) (callback) (let ((eldoc-documentation-functions doc-funs)) (run-hook-with-args-until-success 'eldoc-documentation-functions callback))) #f(compiled-function (string &rest plist) #)) (if (functionp callback) (funcall doc-fun callback) (funcall doc-fun)) (progn (if (functionp callback) (funcall doc-fun callback) (funcall doc-f= un))) (if (functionp doc-fun) (progn (if (functionp callback) (funcall doc-fun callback) (funcall doc-fun)))) (let ((doc-fun (org-eldoc-get-mode-local-documentation-function lang)) (callback (car args))) (if (functionp doc-fun) (progn (if (functionp callback) (funcall doc-fun callback) (funcall doc-fun))))) (cond ((or (string=3D lang "emacs-lisp") (string=3D lang "elisp")) (cond ((and (boundp 'eldoc-documentation-functions) (fboundp 'elisp-eldoc-var-docstring) (fboundp 'elisp-eldoc-funcall)) (let ((eldoc-documentation-functions '...)) (eldoc-print-current-symbol-info))) ((fboundp 'elisp-eldoc-documentation-function) (elisp-eldoc-documentation-function)) (t (let (eldoc-documentation-function) (eldoc-print-current-symbol-info))))) ((or (string=3D lang "c") (string=3D lang "C")) (if (require 'c-eldoc nil t) (progn (c-eldoc-print-current-symbol-info)))) ((string=3D lang "css") (if (require 'css-eldoc nil t) (progn (css-eldoc-function)))) ((string=3D lang "php") (if (require 'php-eldoc nil t) (progn (php-eldoc-function)))) ((or (string=3D lang "go") (string=3D lang "golang")) (if (require 'go-eldoc nil t) (progn (go-eldoc--documentation-function)))) (t (let ((doc-fun (org-eldoc-get-mode-local-documentation-function lang)) (callback (car args))) (if (functionp doc-fun) (progn (if (functionp callback) (funcall doc-fun callback) (funcall doc-fun))))))) (let ((lang (org-eldoc-get-src-lang))) (cond ((or (string=3D lang "emacs-lisp") (string=3D lang "elisp")) (cond ((and (boundp 'eldoc-documentation-functions) (fboundp 'elisp-eldoc-var-docstring) (fboundp 'elisp-eldoc-funcall)) (let ((eldoc-documentation-functions ...)) (eldoc-print-current-symbol-info))) ((fboundp 'elisp-eldoc-documentation-function) (elisp-eldoc-documentation-function)) (t (let (eldoc-documentation-function) (eldoc-print-current-symbol-info))))) ((or (string=3D lang "c") (string=3D lang "C")) (if (require 'c-eldoc nil t) (progn (c-eldoc-print-current-symbol-info)))) ((string=3D lang "css") (if (require 'css-eldoc nil t) (progn (css-eldoc-function)))) ((string=3D lang "php") (if (require 'php-eldoc nil t) (progn (php-eldoc-function)))) ((or (string=3D lang "go") (string=3D lang "golang")) (if (require 'go-eldoc nil t) (progn (go-eldoc--documentation-function)))) (t (let ((doc-fun (org-eldoc-get-mode-local-documentation-function lang)) (callback (car args))) (if (functionp doc-fun) (progn (if (functionp callback) (funcall doc-fun callback) (funcall doc-fun)))))))) (or (org-eldoc-get-breadcrumb) (org-eldoc-get-src-header) (let ((lang (org-eldoc-get-src-lang))) (cond ((or (string=3D lang "emacs-lisp") (string=3D lang "elisp")) (cond ((and (boundp ...) (fboundp ...) (fboundp ...)) (let (...) (eldoc-print-current-symbol-info))) ((fboundp 'elisp-eldoc-documentation-function) (elisp-eldoc-documentation-function)) (t (let (eldoc-documentation-function) (eldoc-print-current-symbol-info))))) ((or (string=3D lang "c") (string=3D lang "C")) (if (require 'c-eldoc nil t) (progn (c-eldoc-print-current-symbol-info)))) ((string=3D lang "css") (if (require 'css-eldoc nil t) (progn (css-eldoc-function)))) ((string=3D lang "php") (if (require 'php-eldoc nil t) (progn (php-eldoc-function)))) ((or (string=3D lang "go") (string=3D lang "golang")) (if (require 'go-eldoc nil t) (progn (go-eldoc--documentation-function)))) (t (let ((doc-fun (org-eldoc-get-mode-local-documentation-function lang)) (callback (car args))) (if (functionp doc-fun) (progn (if ... ... ...)))))))) org-eldoc-documentation-function(#f(compiled-function (string &rest plist) #)) =3D=3D=3D=3D=3D Recipe to create this error: 1. Create a file test.org with these contents: #+begin_src org ,#+html: foo #+end_src 2. emacs -Q 3. Load/evaluate org-eldoc.el from https://git.sr.ht/~bzg/org-contrib/tree/master/item/lisp/org-eldoc.el 4. Open the test.org file and place the point *inside* the org src block 5. eldoc error: (error Lisp nesting exceeds =E2=80=98max-lisp-eval-depth=E2= =80=99) ----- Upon inspecting the `org-eldoc-documentation-function` function, I don't see a reason why the control should enter the default of `t' case if the src lang is "org". Just returning with nil works for me if the lang is "org". I will send a patch for this in a follow-up email. -- Kaushal Modi