From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:403:4789::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms8.migadu.com with LMTPS id yKw9Kr0FMWXx0QAAauVa8A:P1 (envelope-from ) for ; Thu, 19 Oct 2023 12:32:29 +0200 Received: from aspmx1.migadu.com ([2001:41d0:403:4789::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id yKw9Kr0FMWXx0QAAauVa8A (envelope-from ) for ; Thu, 19 Oct 2023 12:32: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 19C8E4EC49 for ; Thu, 19 Oct 2023 12:32:29 +0200 (CEST) Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=me.com header.s=1a1hai header.b=TGlJCvBG; dmarc=pass (policy=quarantine) header.from=me.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-Seal: i=1; s=key1; d=yhetil.org; t=1697711549; a=rsa-sha256; cv=none; b=spnO4Yy7hA3pftnShn3JxPHyklx8x5aK1l759D1JI3gjj4lGDTKchX3kYytNC7kHfyPYvm +wQMYxSD2o2oyFtL1pJnt5GXxK6yfyPIQ3OSgArpu/vN1FIrC2OyXf3/UBbbhGqZNQCRwd sVqtEE6jrmP0z/967SQamSIEqre6qkzXf1jP2uuaxiqHIXBF1ssc+ggB9YH0V6VAIkHkUu WZcTiCH8NVNsiaUuaJWqCbjwquqgegzLult74m+hi7csMhCaGeuoVzRDlKb21Yfs1BOtUO YA8DFrqZtJxHYOOdStSF2my9R7S8M0IkneOfCeduZWQb3WwXRil+5xF/xUbBJA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=me.com header.s=1a1hai header.b=TGlJCvBG; dmarc=pass (policy=quarantine) header.from=me.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=1697711549; 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=XTUnvsQc1l+iH+012g4YjADzBXT/ZJM+FMf0NzeYv5M=; b=s3V5EZbpNls6GWKmMLSVk9mhfYP/ns85lOaIfQudlhRwRTQpojW5XzZTieabHk1NacKkzs YOdLckbhVzTHUjMxWv753eKpud1MfMMEvLtTxOC4qB91Or2YGZCr6MJwxiTne/o5Phf5hJ V8xHd7+mK/rb4WvhU+fCa3avHLkC1e7Bb945TX2GkGuOAdESIRJit9qniJAuKKakmSXi++ VjSmEibLRSKoOn5OW1H55891kS9HVjrBC4aXQT5ADLt06FClfm+aHSr/off204FK2y3Kgt b+QeCFt/yMtlOLN0Kn9DlCtXegQK6Tc1i4xLxfZBGIUqOaNzVY6KkZMz1JBBbQ== Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qtQIw-0003DD-Su; Thu, 19 Oct 2023 06:31:02 -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 1qtQIu-00037x-Lp for emacs-orgmode@gnu.org; Thu, 19 Oct 2023 06:31:00 -0400 Received: from pv50p00im-zteg10011501.me.com ([17.58.6.42]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qtQIs-0007p0-Uq for emacs-orgmode@gnu.org; Thu, 19 Oct 2023 06:31:00 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=me.com; s=1a1hai; t=1697711455; bh=XTUnvsQc1l+iH+012g4YjADzBXT/ZJM+FMf0NzeYv5M=; h=From:To:Subject:Date:Message-ID:MIME-Version:Content-Type; b=TGlJCvBGgpAM7FdihavXezl8RFC+Bp1TiXEI9dc2ZL06r7+sRRzJMmz3kgB7nFaDU nC1oeMKqw+6egz6h75eHDnfmsOsNCXjqiKS03nhtWmdGCK539k0AjElZD6U56F2bHo Q5gZIJUZoL+yKybNbgz/MDRzt3bu0MUiPE/e8i1CNLAh59/pPDeMnD3tNrrImouF2+ oD8jVm7Hy7FvoRtCNsOmr9euk92wGpCbPLDRyu6T2LVYQseMYYU9KW7wjMUIpA5HSl GT4DjYnwpn+juI7NWgL/tQsHUpUmIGFAM3u55EtNVshe7ln6MrMp6PoLdh9QR1Xjxr d6Ab88GQ3sK1g== Received: from Rudolfs-MacBook-Air.local (pv50p00im-dlb-asmtp-mailmevip.me.com [17.56.9.10]) by pv50p00im-zteg10011501.me.com (Postfix) with ESMTPSA id B40844A0200; Thu, 19 Oct 2023 10:30:53 +0000 (UTC) From: Rudolf =?utf-8?Q?Adamkovi=C4=8D?= To: Ihor Radchenko Cc: emacs-orgmode@gnu.org Subject: Re: Case insensitivity of simple [[links]] In-Reply-To: <87jzrlfrql.fsf@localhost> References: <87o7ht2oak.fsf@localhost> <87zg198b8s.fsf@localhost> <87edi9i3by.fsf@localhost> <87sf6dbmrp.fsf@localhost> <87jzrlfrql.fsf@localhost> Date: Thu, 19 Oct 2023 12:30:49 +0200 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Proofpoint-ORIG-GUID: btJqO73ZG_TBX9hZWLQ96FUoOgjYbY45 X-Proofpoint-GUID: btJqO73ZG_TBX9hZWLQ96FUoOgjYbY45 X-Proofpoint-Virus-Version: =?UTF-8?Q?vendor=3Dfsecure_engine=3D1.1.170-22c6f66c430a71ce266a39bfe25bc?= =?UTF-8?Q?2903e8d5c8f:6.0.517,18.0.883,17.0.605.474.0000000_definitions?= =?UTF-8?Q?=3D2022-06-21=5F08:2022-06-21=5F01,2022-06-21=5F08,2020-01-23?= =?UTF-8?Q?=5F02_signatures=3D0?= X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 clxscore=1015 spamscore=0 malwarescore=0 suspectscore=0 mlxscore=0 adultscore=0 bulkscore=0 phishscore=0 mlxlogscore=999 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2212070000 definitions=main-2310190089 Received-SPF: pass client-ip=17.58.6.42; envelope-from=salutis@me.com; helo=pv50p00im-zteg10011501.me.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 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_LOW=-0.7, RCVD_IN_MSPIKE_H4=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-Country: US X-Migadu-Flow: FLOW_IN X-Migadu-Scanner: mx1.migadu.com X-Migadu-Spam-Score: -6.57 X-Spam-Score: -6.57 X-Migadu-Queue-Id: 19C8E4EC49 X-TUID: 7ofa5e8de5qU Ihor Radchenko writes: >>> Note that there is generally no guarantee that [[name]] link will be >>> exported as "name" by any particular backend. Your workaround with >>> num:nil is just a workaround that may or may not work in future. >> >> I did not know this is considered a workaround! I have always thought >> this is how Org is specified to work (as in tests). Actually, dang! I spoke too soon. While links now work consistently before and after exports, their description matches the destination heading, not the source link. But if we case-fold now, it would make a lot more sense to match the case of the source link, as it enables one to link [[capitalized heading]]s. Otherwise, we case-fold with no significant benefits, as far as I can see. Without also fixing this part, my problem with Org remains. :( >> [...] 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? 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? Rudy --=20 "It is far better to have a question that can't be answered than an answer = that can't be questioned." --- Carl Sagan Rudolf Adamkovi=C4=8D [he/him] Studenohorsk=C3=A1 25 84103 Bratislava Slovakia