From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id mJLRNTy9Z2K5WgEAbAwnHQ (envelope-from ) for ; Tue, 26 Apr 2022 11:37:00 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id gFXHNTy9Z2LMWgEAauVa8A (envelope-from ) for ; Tue, 26 Apr 2022 11:37:00 +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 68A233A523 for ; Tue, 26 Apr 2022 11:37:00 +0200 (CEST) Received: from localhost ([::1]:50478 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1njHcw-0001q2-VR for larch@yhetil.org; Tue, 26 Apr 2022 05:36:59 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:51956) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1njHUj-0003BF-EO for emacs-orgmode@gnu.org; Tue, 26 Apr 2022 05:28:29 -0400 Received: from mail-ve1eur03olkn0830.outbound.protection.outlook.com ([2a01:111:f400:fe09::830]:44225 helo=EUR03-VE1-obe.outbound.protection.outlook.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1njHUh-0006Go-9P for emacs-orgmode@gnu.org; Tue, 26 Apr 2022 05:28:28 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=gnNSfTMWfA4aKVb+5TW6LN3nTIL2Y3qyXZhPr0QS+dWU024orHb88eDcfGBf1S54WOiSJAReoUS0naAdyhfL02pQn9qexk3aVdV5nSwd8Ogh7uQ0HQgo/5kLU9EoMEZGKsPIPgy8DgPg/sZ6hHB98tu5dToEllRQRNnR6efcguo0QbJUqq4F+kU5r/CphoAf1izpP2ZQp23SSae4rk9unDc4eWOfZQwpppaO85OtTXs7ERUeaMKH6JVOwxZS/dd5nBrK9oKZsnneOeUBdk65gGC4JNNULzmTdTJrKw1kU4B5+FaeNRSWl0cVujpDqhm1ia8BoSJKWuWDnu4P2M06kQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=ws10yoWTXFM/9dVJLAsKobv3zNDRVrecJgsPcBnerAw=; b=Ax0PnqQ14ontljLHgS5pgBtgiPuH7sekVGdp8myyuSh8yR06DnFmadBXVUyjHmtNHS625yE1BeznjsnY044046RwLxqpsHQ5V9zMSLAiG700vTcRPg4wPtZdRGqZLEXj5RebQ5P3n33Ldjz0IWvTfb+JlULnL6H7l2OdCZPimRA0LNUGiuHkZvRvAj134U7XFUtSeozxLMbFFcJoCqe9/qHtLCrJ2t0SWJAqbEMnDuA6+dUuTIPQt6sGFT3QRjdPtWg8ppWVtWzU9XR6z0htADk0hg6LMjhm2ZOgMUOAN7j7vW+aZskcFWl2b7AZg5I17FqOZXjSswueG4YQLlFP3w== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=none; dmarc=none; dkim=none; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=hotmail.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=ws10yoWTXFM/9dVJLAsKobv3zNDRVrecJgsPcBnerAw=; b=AlnmfodYfKTNwePryKrLP7QKWirsfRhxCHiBk7Rt6rhRbluVhhc6vpsqMATDinVj8mTqullNFruzfckVu+LXQ8UN+/iDx0UV2tvdE5i9mUKie9L3pUubkTvqjRSpT6iateLvOplUWFhWI/vFx3JI1of+GQZtLuQhuiM6J83n7T7yA2uqmnvXhaR5I5iz9Aqpnht4Pa+AxDQnPzMUnhdqwHWYv+8Ehk05kzZcR1llPBY/ANv/JXfgsofQvIhWfpc2yneHpYvODylkDAPwrix9AC82ctrHktgfEfmLWMdwtYyLnebbCBptQqJeMs1qj5wXXP1CM7Y9HlTwHrC4LRSK4w== Received: from PAXPR06MB7760.eurprd06.prod.outlook.com (2603:10a6:102:155::8) by HE1PR0601MB2411.eurprd06.prod.outlook.com (2603:10a6:3:95::7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5186.15; Tue, 26 Apr 2022 09:23:24 +0000 Received: from PAXPR06MB7760.eurprd06.prod.outlook.com ([fe80::3d50:522e:f03c:6225]) by PAXPR06MB7760.eurprd06.prod.outlook.com ([fe80::3d50:522e:f03c:6225%7]) with mapi id 15.20.5186.021; Tue, 26 Apr 2022 09:23:24 +0000 References: <87y1zvlyj0.fsf@localhost> <878rrsut3o.fsf@localhost> User-agent: mu4e 1.6.10; emacs 27.2 From: Ignacio Casso To: Ihor Radchenko Subject: Re: [BUG] link abbreviations do not work inside property drawers [9.5.2 (release_9.5.2-38-g682ccd @ /home/ignacio/repos/emacs/lisp/org/)] Date: Tue, 26 Apr 2022 11:07:44 +0200 In-reply-to: <878rrsut3o.fsf@localhost> Message-ID: Content-Type: text/plain X-TMN: [eFKsJ6Iza5ohPuFwIzX3O1pdKwDQBct4] X-ClientProxiedBy: MRXP264CA0002.FRAP264.PROD.OUTLOOK.COM (2603:10a6:500:15::14) To PAXPR06MB7760.eurprd06.prod.outlook.com (2603:10a6:102:155::8) X-Microsoft-Original-Message-ID: <87a6c8fbaw.fsf@hotmail.com> MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: f802de6d-e489-4289-cad4-08da276669b4 X-MS-TrafficTypeDiagnostic: HE1PR0601MB2411:EE_ X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: bCceLi7f2NuMTXbxz3srBPhJgUqGnE6eGi4Uxh01PK7ubDHwrnlanAlPQtcrjpsu1M8XsQOnV8eowLn4q7x3w/F80kxVfSrpYNn8gYFXrXFDknxrExk5HAORx9J+fkAFONs1t8aMB/RHTBJWzRUPnhHIJyjYz1cBwlnLkKYdRHZLGkthBURnZTGlgWlkNKnyA6kB03m6Mo6W43P0UrR9n5W/YFlWJDrqxf3WF0jgWwqcqA1+sWptrAFGN+jiUx+xulNW3kn9VGf1AoxOk/ieBUrVJtbusfqCDgUvSGDNwrlO0FjWiWlncZI6OqkNVxD1+dzMZyyDEAsRiW+RxolcP6EB/KOCyKD+NigAjcvHaQ+4lpD5Fbo/kNazd05blRWZZMOpXA9XEGEmre7lTgL66CrZZXX8755dDkNsFchOPJ3YCpA8ARRlJc1cjluDoDlHFp7F3dQdhXaxRU6+i8h3lut1TaYnokEbH/2rNxzSxfosWsQ6m+08YjtadqsH+gCLcn/0IJjG8fYdDLmMnhP7xbCkz86SWHOHemwbkvOdOzdrm8SN0PWQ2nRvgRUWuZ8OGps/zLts22mQfh/3n1p7qQ== X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?Ru2bu9zUWEuKAS8h+inePe5Cg4vyBWLwcIIrKBtqj8JTTKRIIb3c/FL++4Sy?= =?us-ascii?Q?mlI0FHIjb4yy0DXuoVXhjMwP78n06B1VGd2/KsH0Ju0a+v6OYu1C1EBXbc2R?= =?us-ascii?Q?unULapl9xb10OM6Ss9sO2aIZqJ55o7HgvGco3k66a9hUKBl8iukiMErsXlGQ?= =?us-ascii?Q?5oY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V07sBlDD+su6rDMSDD6NGGW8Hc?= =?us-ascii?Q?mIgqbnGiqS+urluWIkOl/B2gFPVn5a5tcY7b1TSdDCfIxbeCU9H38mvZlcme?= =?us-ascii?Q?ia8xKeS5Bz1wrfnweyPq+g3yvQR19gQHvPJ+M0jgp4N9al0WCOTmtZ+a3Iv3?= =?us-ascii?Q?WdZ/SA6vAhtKe0eWHJ1Sb8ul2ubIvu13tPH2NNqr/swAF6AmcNAe1GwsaxWR?= =?us-ascii?Q?6G7QXK3A2uG7HUF4TEeTRn08Chuk+GHewQ8tZigxdEBk3bB/qHeNXWWYqtOh?= =?us-ascii?Q?kwDSAXdYO8rNFWkl9jmez+kSBHLa/YLZhWa33v+r8y8nvp1bR+7GhQeU7yN/?= =?us-ascii?Q?uRaS1HwXb6ZDbQ/kW3IuvIRkoY+PfOMrVSWxQSGMZZ4Llnzw2Wksanj1FHBg?= =?us-ascii?Q?675SuKFpqZU=3D?= X-OriginatorOrg: sct-15-20-4755-11-msonline-outlook-6e454.templateTenant X-MS-Exchange-CrossTenant-Network-Message-Id: f802de6d-e489-4289-cad4-08da276669b4 X-MS-Exchange-CrossTenant-AuthSource: PAXPR06MB7760.eurprd06.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 26 Apr 2022 09:23:24.3543 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-Transport-CrossTenantHeadersStamped: HE1PR0601MB2411 Received-SPF: pass client-ip=2a01:111:f400:fe09::830; envelope-from=ignaciocasso@hotmail.com; helo=EUR03-VE1-obe.outbound.protection.outlook.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, SPF_HELO_PASS=-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: , Cc: emacs-orgmode@gnu.org 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=2; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1650965820; 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:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=ws10yoWTXFM/9dVJLAsKobv3zNDRVrecJgsPcBnerAw=; b=prcG8fVPvvTxrvvd92qxVlXAkhrxECtPjliI5HndI4Rp8jO4/VIrYFfiNQjQGRIPmWLHoQ tYoBePfZV70A7Jd/t+NqGVedEGm4hgLula9o3SrQIad/y14lpD6HMSe+J+S9os6nLtByXQ Zr1EdVJlyvuJ8CiG1nxbMTDv3eDk5C+dchwchpWFjbB+32mKUUBwlmXIJCbuv4a6av8Arn IK4z5XwzU0xmhUW/0vOWK7na+qwF3225Kl7HJUxIMGuckZ7596ZWJEUybZd9Uw/bDMP7QZ ws0xP4aR5NI7xI3hoDckSm2BblagIFcWHq8ZyLzCV2L11vVMT2etK+W4K2J8hQ== ARC-Seal: i=2; s=key1; d=yhetil.org; t=1650965820; a=rsa-sha256; cv=pass; b=eFIpUf3H3kdbgnEOoAzq/NmNsqEaq106wpQr5VtE54ZzU9+wGihLoxpinplHcIKcj76jGT 7D7/Veh6mB6PnCvhoz8p5y396Kjc2+tCAycnfSlZ+BAzOzFgTNbqRjP896QIuZrpoRgKey lqed1aD10kOegO9KFb/a25fGNUXYZVPYzVMpW9FI/wt7iGFl6OPzGwOLbQzv4VWBac7v8Y BsfNvqQQa/cZMyZvfOiJcOBCsEwXbffcknwF6ujZrixBv06WEqVinQphpYSdBtVz0t+nkx sjIF7MSSFgI7oznt6cvLgK+43G2a3PcTNS+jzoAofBYJuwW2TJrBxjP3NTTBQg== ARC-Authentication-Results: i=2; aspmx1.migadu.com; dkim=pass header.d=hotmail.com header.s=selector1 header.b=AlnmfodY; arc=pass ("microsoft.com:s=arcselector9901:i=1"); dmarc=pass (policy=none) header.from=hotmail.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: -7.01 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=hotmail.com header.s=selector1 header.b=AlnmfodY; arc=pass ("microsoft.com:s=arcselector9901:i=1"); dmarc=pass (policy=none) header.from=hotmail.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: 68A233A523 X-Spam-Score: -7.01 X-Migadu-Scanner: scn0.migadu.com X-TUID: PkMp+4pDsDDZ Ihor Radchenko writes: > Ignacio Casso writes: > >> So a simple solution to this would be preserving the value of >> `org-link-abbrev-alist-local' when switching to the temporal buffer. I >> think this is orthogonal to the issue of the parser, and it's a bug on >> its own, since as a user I would expect that evaluating >> `org-link-open-from-string' would use my current buffer's local values >> of variables. > > I am not sure if using current buffer in `org-link-open-from-string' is > to be expected. This function is not tied to buffer, just to string. > Imagine a situation when user function retrieves the link string from > another buffer and then calls `org-link-org-from-string' in the context > of current buffer. What you are proposing is going to change the current > behaviour of `org-link-open-from-string' beyond the discussed problem. > > Instead of changing the default behaviour of > `org-link-open-from-string', I would introduce an optional parameter > holding the desired context. The parameter can be set to an Org buffer. > That buffer's context will be used. I agree that changing the current behavior of `org-link-open-from-string' may be problematic, however I don't think that it's worth to introduce the optional argument just for this "bug". I would just use the let from I suggested: (let ((org-link-abbrev-alist (append org-link-abbrev-alist org-link-abbrev-alist-local))) ...) but instead of doing it in the definition of `org-link-open-from-string', do it in `org-open-at-point-global', like this: (cond ((org-in-regexp org-link-any-re) (let ((org-link-abbrev-alist (append org-link-abbrev-alist org-link-abbrev-alist-local))) (org-link-open-from-string (match-string-no-properties 0)))) ...) or in `org-open-at-point', like this: (cond ... ((memq type '(comment comment-block node-property keyword)) (let ((org-link-abbrev-alist (append org-link-abbrev-alist org-link-abbrev-alist-local))) (call-interactively #'org-open-at-point-global))) ...) What do you think? --Ignacio