From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id 8Gc+CqUIC2HAlgAAgWs5BA (envelope-from ) for ; Wed, 04 Aug 2021 23:37:41 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id 4J0IBqUIC2EtXAAA1q6Kng (envelope-from ) for ; Wed, 04 Aug 2021 21:37:41 +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 15DC615908 for ; Wed, 4 Aug 2021 23:37:40 +0200 (CEST) Received: from localhost ([::1]:47096 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mBOa2-0000Jr-Qg for larch@yhetil.org; Wed, 04 Aug 2021 17:37:38 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:35930) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mBOZZ-0000JP-DH for emacs-orgmode@gnu.org; Wed, 04 Aug 2021 17:37:09 -0400 Received: from forward106j.mail.yandex.net ([2a02:6b8:0:801:2::109]:38182) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mBOZU-0006qG-1U for emacs-orgmode@gnu.org; Wed, 04 Aug 2021 17:37:08 -0400 Received: from myt6-0d043a4812e9.qloud-c.yandex.net (myt6-0d043a4812e9.qloud-c.yandex.net [IPv6:2a02:6b8:c12:212b:0:640:d04:3a48]) by forward106j.mail.yandex.net (Yandex) with ESMTP id 8207411A18D0 for ; Thu, 5 Aug 2021 00:36:56 +0300 (MSK) Received: from myt3-5a0d70690205.qloud-c.yandex.net (myt3-5a0d70690205.qloud-c.yandex.net [2a02:6b8:c12:4f2b:0:640:5a0d:7069]) by myt6-0d043a4812e9.qloud-c.yandex.net (mxback/Yandex) with ESMTP id jB2hXMcHNc-auJiJphX; Thu, 05 Aug 2021 00:36:56 +0300 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ya.ru; s=mail; t=1628113016; bh=ts8+tumDBpdyJm4WVxPezqPlu7lL1DLJz/7FLOC1TS0=; h=In-Reply-To:References:Date:Message-ID:From:To:Subject; b=fslNd38Ql0HfoCLBxk591DWm2lYv9UtGJDxs8tWT2clQ4c5rp443+cWNK76jkcTqc YEmzRqimHuAMo3HrG4Fr1eG+51LezzAjxnSjRnIKuYGq7pQVsvsA8gmIdg155Ybm3F 360nh1HBYlcTeS0Tj1WJt6so/sKBOka8T9W9muMU= Received: by myt3-5a0d70690205.qloud-c.yandex.net (smtp/Yandex) with ESMTPSA id KRk7dV3ER6-aun86m5I; Thu, 05 Aug 2021 00:36:56 +0300 (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (Client certificate not present) Subject: =?UTF-8?Q?Bug=3a_org-agenda-highlight-todo=3a_Symbol=e2=80=99s_func?= =?UTF-8?Q?tion_definition_is_void=3a_string-empty-p_=5b9=2e4=2e6_=289=2e4?= =?UTF-8?Q?=2e6-11-g1ee52c-elpa_=40_/home/vmg/=2eemacs=2ed/elpa/org-20210726?= =?UTF-8?B?Lyld?= To: emacs-orgmode@gnu.org References: <09a29a60-b254-9207-0d44-eaf0b1ba964b@ya.ru> <87im0mq77j.fsf@gmail.com> From: =?UTF-8?B?0JLRj9GH0LXRgdC70LDQsiDQk9GA0LjRiNC40L0=?= Message-ID: <96ae2e80-b815-6011-e896-f20415385d6a@ya.ru> Date: Thu, 5 Aug 2021 00:36:55 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.12.0 MIME-Version: 1.0 In-Reply-To: <87im0mq77j.fsf@gmail.com> Content-Type: text/plain; charset=utf-8 Content-Language: ru-RU Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=2a02:6b8:0:801:2::109; envelope-from=w201403@ya.ru; helo=forward106j.mail.yandex.net X-Spam_score_int: -24 X-Spam_score: -2.5 X-Spam_bar: -- X-Spam_report: (-2.5 / 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_LOW=-0.7, 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=1628113060; 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: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=ts8+tumDBpdyJm4WVxPezqPlu7lL1DLJz/7FLOC1TS0=; b=KmcVZhzlSM/xU9cduOj0fhG5vY3BU265xpGWbedYMiaEjjdBZaIMLZjGNO4YwX7b+saxhq KaA84FzJLm/PSZUB4TjVxd4ohd31lfRyLzwfNAndD1ywV0q6ZpNCY+dC5qCdlh3NpJzLYl HZWDTJslOhEwHYLW9WvJ9mAopnsKluX7zrcSENJXaKYSHViOFifqjkyY8eZ89IAH37UmwL tbpm0w/+VHCGmm6t42orb8KJwx0EmdmRAwjqvmy7Nfux5JZsCGDeUZn1VOi4cV9E4l1s1e YIR9HiOLd7WYXvCgNFcN7F1zEnf/BbmCUifvaSgqTaubBYkM/9CFDnYQnzH0iA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1628113060; a=rsa-sha256; cv=none; b=I9ci1Hq+tnSlbyk3zlbBgfrVCc8Ox3HdgGCf736oDKcop4BQPEXQHzJ0ZByoGzqKtISpwg SjbbNCGbcIXA7DApBOA1Opns0GVtThCfUt0IOjbm31IfrwIuisP4j1KyeD9gjeLeZ+06mq OvpnWjyjuY97mFBkPPuskBvK/l4iXWWtIfAtJydggra1LYzREz3gBejdF+zkLhkfTz3I5v YRqUVN2D8Aw6QdUC3xuB3b0zklRLdFSL/s0Keez0hRyNf/+GRxjDtoC8hZD7RX7NwogaUX TRmmycgCpGnr5btSSU58/DAvPgcdBV2rBs3hDQZ3/vh+PL7iSeoFI8ai/UR6zw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=ya.ru header.s=mail header.b=fslNd38Q; 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=ya.ru header.s=mail header.b=fslNd38Q; dmarc=pass (policy=none) header.from=ya.ru; 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: 15DC615908 X-Spam-Score: -3.11 X-Migadu-Scanner: scn1.migadu.com X-TUID: znczszKFilW5 I am grateful to you for your explanations and patience with my inexperience. I made several mistakes, the main one being haste. I should have checked my emacs first.. The fact is that, in addition to the built-in version of orgmode, for some reason I installed another one. Your recommendation helped: when I removed the extra (newer) version of Orgmode and removed the extraneous code from .emacs, everything worked. Thank you for helping me master emacs — it is incredibly useful and hardly replaceable. > I suspect that adding that line has actually hidden a larger problem. > The above line is essentially telling emacs to load the subr-x package > when your compiling an emacs-lisp file. However, your not compiling your > .emacs file, so this will not have any effect unless your compiling your > .emacs file. It is rarely worthwhile compiling your init file. Far > better off to keep your init file relatively small and pushing > complex/large configuration stuff into separate files which can be > compiled. There are a number of complications you often need to deal > with when compiling your init file and dealing with these often adds > enough complexity to outweigh the any benefits to startup time, which > are typically very small anyway. > > The symptoms you are seeing are frequently seen with a broken org > install. This can easily happen if you attempt to upgrade org when you > already have org functions loaded. Basic problem is that you end up with > a broken mixed installation with parts from the old version and parts > from the upgraded version. > > Note that if the issue was as you described, many people would be > experiencing this bug, but they aren't. This suggests the problem is > local to your setup. > > I would remove the upgraded org package and try re-installing. However, > it is really important to make sure your .emacs does not call any org > functions because this will load org during startup and then when you > attempt to upgrade the package, you will get the same issue. This may > require some re-organisation of your .emacs file - possibly wrapping org > related code in an eval-after-load or using something like use-package > etc. > > An easy way to verify which avoids large refactoring of your init file > would be to comment out any org related configuration from your init > file, restart emacs. upgrade org, uncomment what you commented and then > restart emacs. > >> >> The org-agenda-highlight-todo function (org-agenda.el file) uses the >> string-empty-p function from the emacs-lisp/subr-x.el module, but >> somewhere is not done (require ' subr-x), so when calling the >> org-agenda-highlight-todo function, string-empty-p is not defined, >> which leads to an error — org-agenda-highlight-todo: Symbol’s function >> definition is void: string-empty-p >> >> 2. >> >> For checking I called the emacs -Q and put in it scratch: >> (string-empty-p "test") >> (require 'subr-x) >> Then I executed the command >> C-x C-e >> on >> (require 'subr-x) >> output was >> Debugger entered--Lisp error: (void-function string-empty-p) >> (string-empty-p "test") > > When you did C-x C-e, either you evaluated the first sexp or it tried to > evaluate all sexps in the scratch buffer, calling string-empty-p first > and before require 'subr-x, so the library was not yet loaded and the > function was not found. the require needs to be before functions from > the required library are called. >