From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:403:478a::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms8.migadu.com with LMTPS id WM66HmUvMmVOWQAA9RJhRA:P1 (envelope-from ) for ; Fri, 20 Oct 2023 09:42:29 +0200 Received: from aspmx1.migadu.com ([2001:41d0:403:478a::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id WM66HmUvMmVOWQAA9RJhRA (envelope-from ) for ; Fri, 20 Oct 2023 09:42:29 +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 4490B6DE21 for ; Fri, 20 Oct 2023 09:42:29 +0200 (CEST) Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20230601 header.b=E6bvaRt4; 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"; dmarc=pass (policy=none) header.from=gmail.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1697787749; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=Woc3IQ3jrk9lFYRXRn9un9qNvhRQz6DmeGtiXsT/htY=; b=p7aGksQtGBZ5Kr0/uNtdARlGlANrhGSkb4FD++mLyapkMCPOm5bgWIoRUpmlC8iyNRb0ud Q+M33htt7Of+zvjpmjmpqLEzb3N8m0AZbxet52+ALSlzyFZjFekOy0GeVdNHvs7/HNK/8e XmrpGH2AVRf8ZWmLA1XGtZRgiRwJFq5eJdjmA2X+q4Z0YhmTVvNct0/Mh7Re3FZTdU6tsu MeW0Dt3fMXz1TrzHs3YK62iK3Xb22L7RRp0znwmx1mIl4BE1kEBzZHX2d4t19F5uhaKsQn lNKe6UXlx/4b9hEcMxwiXE4OY/r9y/w1HHsJYqE6we5KWNnIexCGNUP+YdJO5w== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1697787749; a=rsa-sha256; cv=none; b=MmrvFZSMjN0NuU8ZSSgeQ3JiryGmL5ClFQ8a7IM2q8QFhwkPvWkWBEtVc7dlxhX4kNTH6+ RVRJ7Ly5Jeua5Tv0zQYO0rFc/ykqnNVAcEH+jHbpGbPnL1ZjQzylPrlMeckIfT6ApbHufn /uExZKEVBVmWn0rLapI6v/KIg+x7TX0dVQubC6SUAYiLM4Tj6oPin8CiH3vLSKOZB0qN3h aRDHfjxcb15cYDdM018bZeAjDPpRY2ecb46wQt9Y40qbQKYNOPFdOPI9kAwTpTONPC+my4 ttDu72brQFsz1S4JSEvsA/2E2DixXjVbyXQQhU9Vq1AUJCOH7CK6pkmSKg/7QQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20230601 header.b=E6bvaRt4; 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"; dmarc=pass (policy=none) header.from=gmail.com Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qtk8m-0001gQ-3s; Fri, 20 Oct 2023 03:41:52 -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 1qtk8l-0001gB-3P for emacs-orgmode@gnu.org; Fri, 20 Oct 2023 03:41:51 -0400 Received: from mail-ej1-x62e.google.com ([2a00:1450:4864:20::62e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qtk8j-0002CF-Ek for emacs-orgmode@gnu.org; Fri, 20 Oct 2023 03:41:50 -0400 Received: by mail-ej1-x62e.google.com with SMTP id a640c23a62f3a-9c5b313b3ffso77302366b.0 for ; Fri, 20 Oct 2023 00:41:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1697787707; x=1698392507; darn=gnu.org; h=content-transfer-encoding:mime-version:message-id:in-reply-to:date :subject:cc:to:from:user-agent:references:from:to:cc:subject:date :message-id:reply-to; bh=Woc3IQ3jrk9lFYRXRn9un9qNvhRQz6DmeGtiXsT/htY=; b=E6bvaRt4nhmDoowfnmm2Pnv2I3jYtz+2hbFiyLy81xvPo1BT0JFVbSQDo7pbdQmX3Q W3oV50+PPtnoGVlB9XmXem/MVkaIE/XpxSa1y3YYUFHBNlKHprTkUJKujtCHP+MYN7Kt AhwTGxxMRSa44k7SLx5VZDDV47DnC8W2JPwTDNzOmyTi0c3kbR4Q7neV1npFN2Slwj4E LldpP5Ug8N+dXnHqHb81Jh8hnLfAOfcoToAouI/Y4OQVBRxiuEJNqIJ8RGAt5ZvpcH0d mGL0vCV1eIrLzrZ/onYE2ssWTRRqmL2a0N69n1+u8mi+MPosj7U4VRba3q13l+6IjzAv lTCw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1697787707; x=1698392507; h=content-transfer-encoding:mime-version:message-id:in-reply-to:date :subject:cc:to:from:user-agent:references:x-gm-message-state:from:to :cc:subject:date:message-id:reply-to; bh=Woc3IQ3jrk9lFYRXRn9un9qNvhRQz6DmeGtiXsT/htY=; b=Uz8IKGeI9MvnT6RLN4xmInndrVUPNHLENID0hqTOKKb37KW9i3KNDxrs2WdTsGrPSs PU/fo72RFBB5ZVRmofm9QTB9oI+sXPhfHQiV3SAFZ3BIomyuZLDzioR7KglHQtaW8xFM 711OhLE+YDS+VxOAI+W9Q7gwPmo6lMDKJbhT+wG6HkEBNyjVg5SURxI96ULegOiOQVKs meBLJ+Ec4uRu3x62RV4ObwFKq4pemjnCS89FJaDl9OL17bEEm2gqoyJb6EW7vlbIaLnw vmhNvLvIBn3XInTi43pHbQEafTQMDFIcQVFH6hUwKkCfKXiIZK4jYtSQ4IBx1MqjqVFI 70cw== X-Gm-Message-State: AOJu0YwLrDZGVGgO6amy6fzVzYpHhU0A2V9pxQBkAMKDB2xhY+/94/nm JgPv99N4lxCIE9ofJvUWP4FTclJSg2ObgQ== X-Google-Smtp-Source: AGHT+IH58zlMrzQ6ty0LQs9fDU7AQtp/ZkBK+hF9kAzgGarWgTbgtH/lZshQeH+V+4nVssabvDx9dw== X-Received: by 2002:a17:906:fe4c:b0:9bd:cab6:a34d with SMTP id wz12-20020a170906fe4c00b009bdcab6a34dmr663274ejb.31.1697787707127; Fri, 20 Oct 2023 00:41:47 -0700 (PDT) Received: from laptop.lockywolf.net ([2001:470:24:315::102]) by smtp.gmail.com with ESMTPSA id u2-20020a17090617c200b0098ce63e36e9sm976045eje.16.2023.10.20.00.41.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 20 Oct 2023 00:41:46 -0700 (PDT) References: <871qdq54ol.fsf@laptop.lockywolf.net> <87pm19d9sz.fsf@localhost> User-agent: mu4e 1.10.7; emacs 30.0.50 From: Vladimir Nikishkin To: Ihor Radchenko Cc: emacs-orgmode@gnu.org Subject: Re: [BUG] org-contrib: org-eldoc has an autload, but is incompatible with modern emacs. [9.6.8 (release_9.6.8-3-g21171d @ /usr/share/emacs/30.0.50/lisp/org/)] Date: Fri, 20 Oct 2023 15:39:07 +0800 In-reply-to: <87pm19d9sz.fsf@localhost> Message-ID: <87ttql4u6l.fsf@laptop.lockywolf.net> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=2a00:1450:4864:20::62e; envelope-from=lockywolf@gmail.com; helo=mail-ej1-x62e.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 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 X-Spam-Score: -7.54 X-Migadu-Queue-Id: 4490B6DE21 X-Migadu-Scanner: mx0.migadu.com X-Migadu-Spam-Score: -7.54 X-TUID: /g1g1nD8rz2l Ihor Radchenko writes: > Vladimir Nikishkin writes: > >> org-contrib has the following lines 206 and 207 in org-eldoc: >> #+begin_src elisp >> ;;;###autoload >> (add-hook 'org-mode-hook #'org-eldoc-load) >> #+end_src >> >> which set up that hook automatically when the package org-contrib is >> installed. >> >> that hook is, seemingly, incompatible with the recent org-element, > > May you elaborate about incompatibility? > Yes. With org-eldoc loaded, and having a property '#+date: unpublished' in an org file, I am having the '*Messages*' buffer filled with #+begin_src elisp =E2=9B=94 Warning (org-element-cache): org-element--cache: Org parser error= in 2015_Passwords.org.rclignore::53653. Resetting. The error was: (error "Invalid search bound (wrong side of point)") Backtrace: " backtrace-to-string(nil) org-element-at-point() org-eldoc-get-src-lang() org-eldoc-documentation-function(#f(compiled-function (string &rest plist= ) #)) #(org-eldoc-d= ocumentation-function) eldoc-documentation-default() eldoc--invoke-strategy(nil) eldoc-print-current-symbol-info() #() apply(# nil) timer-event-handler([t 0 0 500000 nil # nil idle 0 nil]) " Please report this to Org mode mailing list (M-x org-submit-bug-report). #+end_src >> Could those lines be removed? If someone is interested in >> patching/using/maintaining that code, he can probably try to refactor it >> in a better way. >> >> (In any case, it is probably better to add such hooks in the :hook >> clause of use-package.) > > That would constitute incompatible change for the existing users. > Although, autoload may cause org-eldoc to be loaded for users of > org-contrib, who are not interested in org-eldoc. > What we might do as a compromise is removing the autoload cookie only > and leaving the (add-hook ...) to be executed upon (require 'org-eldoc). Yes, maybe that is even better. Why would one (require 'org-eldoc) with no intention of using it? --=20 Your sincerely, Vladimir Nikishkin (MiEr, lockywolf) (Laptop)