From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.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 aI+0DTVLMmVuMgEAG6o9tA:P1 (envelope-from ) for ; Fri, 20 Oct 2023 11:41:09 +0200 Received: from aspmx1.migadu.com ([2001:41d0:403:478a::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id aI+0DTVLMmVuMgEAG6o9tA (envelope-from ) for ; Fri, 20 Oct 2023 11:41:09 +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 0270A502AC for ; Fri, 20 Oct 2023 11:41:09 +0200 (CEST) Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=rSIdk7PC; 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=posteo.net ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1697794869; 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=nMLmwz3taapsSoZCA8+jKHLeF6Gp0LfHoPjM/ducJq8=; b=joZh0I8BsyWtVeqsYrPHsU9T/u/8bp1Y6RG1v7Hdfj67x7qR8ACfTegRb/lfPSsFYuWnU3 DAmkuw9ta84qKac2dGpEQJMuxGKoYF1PuQfbuMH1oIGJ+Y/Ql0aNfG0M+Zg4vzGeMV6R22 UsIiKUjdjnrunMAGsMY0eNq5h1eCkFnZxyM+67oCRuSwsYlr7qX64nhwVE4XlZrE1Loot7 mNwmh92rJ6ddMsjpRzCcNwhmOyjb98e6l9kZzU7t5tZd+DtAjX/wMGaxOLudGIWBT7OngM Z/s/uLt5SoTFzahIQw8D0kN5l2EayH6unEsGX36ZeBozTEP/Bwjcyhk88O5k0w== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1697794869; a=rsa-sha256; cv=none; b=heT7fhRsbr+sVkOZyLPMQ0mgPKwW4j8c+uo3QGiRJHFE6h9dxcsEDpzt+kt+e2RuC6xPjQ Fzm+BFNAYvRfdMrpxw5Yj2RA2fLcLyEL9lXE7hHVuYKBKI+n/umKvcnJNf3xfYaaYHsdQ4 +PIyhy8Qwvlk6ZtR+lX4TL4gefdZKVp5Cf0yQSSydpdPTS1AyxSkqG2rttoTuLg2O+z2st 8e+mlKsok1mqc4idPB5U7s/OWq28UNBKZeoWXBWxMZ6p3e6wqFpgWen5x8pi97hOG2UKm9 IfYUXkY9Fk3W0aRyTq+7lfxIIvtaUan7iOTEmxvT5QC3NjI4IdhQsbg+/KNUKw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=rSIdk7PC; 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=posteo.net Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qtlzN-0006OR-B0; Fri, 20 Oct 2023 05:40:17 -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 1qtlzL-0006J9-C5 for emacs-orgmode@gnu.org; Fri, 20 Oct 2023 05:40:15 -0400 Received: from mout02.posteo.de ([185.67.36.66]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qtlzJ-0006bQ-Ap for emacs-orgmode@gnu.org; Fri, 20 Oct 2023 05:40:15 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id 47758240103 for ; Fri, 20 Oct 2023 11:40:10 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1697794810; bh=w2Ve0qu08skY6THUGjaLD8l52MPtRRS5iYgXcajuTHo=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version: Content-Transfer-Encoding:From; b=rSIdk7PC+eHZDsIdYs3KARzD1IzKAQGWk3ctBN2Bg6gvXxmRqbIzqgfsbq38ZHA4W EpyY9JCDc/se4W7GIDqPxBXBgdzRRt08qSjZtjvq8PfN63GA+QosPx91dFeFn/DwxH F1SmdIzri8th15ywy0OHFvJ3J8lh6js0TEzfF7pWeNs7f16Ov7IzdENeIID/FVIzqI T4hgnrsVcdHjg0BZWGFkmjfbCHvlsQXxXPl4yO8L5vgZQ0fLoKInI3I3HyMfMtqTbW +Tmb/7Ss+dlarprU5NiyKXt2+m0Pe/p71e8v5U7XoqLmaXkN87uh6xTUZrutGCNa8f qRkXiNptsKskw== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4SBfh963MZz9rxX; Fri, 20 Oct 2023 11:40:09 +0200 (CEST) From: Ihor Radchenko To: Rudolf =?utf-8?Q?Adamkovi=C4=8D?= Cc: emacs-orgmode@gnu.org Subject: Re: Case insensitivity of simple [[links]] In-Reply-To: References: <87o7ht2oak.fsf@localhost> <87zg198b8s.fsf@localhost> <87edi9i3by.fsf@localhost> <87sf6dbmrp.fsf@localhost> <87jzrlfrql.fsf@localhost> Date: Fri, 20 Oct 2023 09:41:53 +0000 Message-ID: <877cnhd40u.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=185.67.36.66; envelope-from=yantar92@posteo.net; helo=mout02.posteo.de X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 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, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H5=0.001, RCVD_IN_MSPIKE_WL=0.001, 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: -6.73 X-Migadu-Queue-Id: 0270A502AC X-Migadu-Scanner: mx0.migadu.com X-Migadu-Spam-Score: -6.73 X-TUID: gZC8H94WV4+i Rudolf Adamkovi=C4=8D writes: >>> [...] call to 'org-toggle-link-display' does nothing. > >> It does nothing because it is one of the options that must be set before >> Org mode is loaded. Resolving buffer-local variables happens after the >> major mode is loaded. > > I have noticed that 'org-use-extra-keys', for example, is documented as > "must set it before loading Org", but there is nothing similar in the > 'org-link-descriptive' docstring. So perhaps this is a bug, not a > feature? I was not precise. `org-link-descriptive' must be set before Org major mode is loaded in current buffer. In general, all the Emacs customization are not guaranteed to do anything when the major mode is already loaded. There is a mechanism with :set function for defcustom, but most people use setq that ignores this mechanism. Anyway, I just added a :set function for `org-link-descriptive' on main. It will be used when customization interface, `setopt', or `custom-set-variables' is used. > Upon a quick look, 'org-toggle-link-display' does exactly two things: > > 1. (setq org-link-descriptive (not org-link-descriptive)) and > 2. (org-link-descriptive-ensure), > > where 'org-link-descriptive-ensure' wraps exactly one expression: > > (org-fold-core-set-folding-spec-property > (car org-link--link-folding-spec) > :visible (not org-link-descriptive)) > > Could Org execute this expression after loading a document, given the > buffer-local value of 'org-link-descriptive' necessitates it? No. Because the code execution during Org loading happens before Emacs loads file-local variables. This is by major mode design and we cannot do much about this. See https://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D570= 03 --=20 Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at