From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id YPmOHA7emGEGWAAAgWs5BA (envelope-from ) for ; Sat, 20 Nov 2021 12:37:50 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id oCsSGA7emGHZXgAAbx9fmQ (envelope-from ) for ; Sat, 20 Nov 2021 11:37:50 +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 1039B35900 for ; Sat, 20 Nov 2021 12:37:50 +0100 (CET) Received: from localhost ([::1]:42054 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1moOgm-0005MC-QH for larch@yhetil.org; Sat, 20 Nov 2021 06:37:48 -0500 Received: from eggs.gnu.org ([209.51.188.92]:51238) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1moOgF-0005M0-Lw for emacs-orgmode@gnu.org; Sat, 20 Nov 2021 06:37:15 -0500 Received: from mail-vi1eur05olkn2073.outbound.protection.outlook.com ([40.92.90.73]:29250 helo=EUR05-VI1-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 1moOgD-000287-MF for emacs-orgmode@gnu.org; Sat, 20 Nov 2021 06:37:15 -0500 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=lP/u8SmUod+2X7e1lwrcdwMXbOlNDG1yYL9tL2i/ryCcQfvp3JIyc1MEKzsRr/5J3Sb/VVjMgixSRzCov45B1b4ByaFYlN9+gEdE7cEIougJlAuGh8/7FfnktngskgV9VClUBDTwmKNW/5vLSaylcJBF6omgK0QaA372naXU6k4rluC21LTSe00agWjyjn+jlQQ0fj9HxVWPQS9p2leTtSHsek7vyhXz5/Xo67RUXSaowylczXwK8VA5xI252aLvSXWgUahN3n9gBWZZt4iYUpfBTTxBo/PDX54A2V/hJZX3TnDA/iHDwl3JmWL8Psxa98IYXac00tmCpppjVzT//w== 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=X0EG3VXpoP9TKJXQE4ie/dwOGAoRVEgrmd/Vj9NbdpU=; b=XcaepVH5fnZJ6k+WF5Or6hzdOhhvuqLqau3XG7YamDsRd0mbL+6sm3Wd7DqRT8Ef25HcZ5gikyffG+X6rp0CkJNg9DVBW01c1t595gKFLT5vVOMXYEoaYDa+KPFnVsr9PB6X6BhA8QmKsggf+Pc1+VudiKAZdWrJdOeZ0hg3dukmDw/0Ty/Px4TmTLiQ3CsPfbpKOwZ+erLq8jBY14gx+F509fWS2VVi5tHbk+laYmTxkvGAakEDqE03RW2flOVf4tlPFc5O2HFjdWGHfY7MApmgsoaF/x6UnlPFR1khWiQP7gvwU7mR0MOVLGfDWrCkc33UU97TQldYsVIkmsnACw== 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=outlook.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=X0EG3VXpoP9TKJXQE4ie/dwOGAoRVEgrmd/Vj9NbdpU=; b=cTMqzUxLMJLY/nJ1HpnWmW80rXF1iHpxdWy605ITG/3b+LNcHYIl9wojQAW0Gn+c8UeO+h6yeEACUNHs2+eVMO9ko9ERU0/Qab6BzyxkxwYUf88ypFCCnbE2yah5clXM+tqE/9npZF0zM+2nKeCL4hxvELR+2ebmoJmGxfnDFF/5b/k6t5IcpV/9aOfvY7rjDv8V7Dzn5hgDwo+NO2PH7hXJH/92cNSnaM2tklrO17ZRTFxy0YJRmk+QMflYFtooAyynj4S1oPMPgWIyhIKMaSfVAoumA6uOUJqeqTO5kV7ITKKDjrICa8ngutzs1/gOc8Eq65RDUmXHvsiHI/t9rg== Received: from PAXPR08MB6640.eurprd08.prod.outlook.com (2603:10a6:102:dd::5) by PR2PR08MB4890.eurprd08.prod.outlook.com (2603:10a6:101:23::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4713.22; Sat, 20 Nov 2021 11:17:38 +0000 Received: from PAXPR08MB6640.eurprd08.prod.outlook.com ([fe80::90c1:4e36:aaac:49d0]) by PAXPR08MB6640.eurprd08.prod.outlook.com ([fe80::90c1:4e36:aaac:49d0%6]) with mapi id 15.20.4713.022; Sat, 20 Nov 2021 11:17:38 +0000 User-agent: mu4e 1.7.0; emacs 28.0.60 From: "Christopher M. Miles" To: Org Mode (org-mode) Subject: [BUG] (org-element-context) on some link does not return search-option correctly Date: Sat, 20 Nov 2021 19:13:45 +0800 Message-ID: Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" X-TMN: [OrAwpmIGMtqJDKl9vz93VjAZ+juXldjU] X-ClientProxiedBy: HK2PR02CA0177.apcprd02.prod.outlook.com (2603:1096:201:21::13) To PAXPR08MB6640.eurprd08.prod.outlook.com (2603:10a6:102:dd::5) X-Microsoft-Original-Message-ID: MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 2 Received: from Mac-mini.local (91.240.163.133) by HK2PR02CA0177.apcprd02.prod.outlook.com (2603:1096:201:21::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4713.22 via Frontend Transport; Sat, 20 Nov 2021 11:17:36 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 8b261ac3-b45e-4555-3ac2-08d9ac175bfc X-MS-TrafficTypeDiagnostic: PR2PR08MB4890: X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: Vs4efvURYm8lXG0wU7M9kkjO2CgvhsRLOKNkmXZVXYm0coM8vEBQ6vJ9SjgpUocasI4dQ83KlAHkyHlgk7Dx69oq2jyhOK/M+fa6qXCqPqT1aotdZ9dKa6PsVOHy4UCbU0QDB+drch7h2jBluyO6RXcNMa2nNGDCupBrHd7BVCnQ11Rx9SQyAz+pykwIE97d+v+tUh6Kg4hnv32zYuXtwzJ6G0EwFaDODjxmaDoQKCFeS3WV6QDZeEtUF5u1+JizD1GCBA1vMKGDKVUmUvboxjibiZfdOEiHgU9Xftw3vqeqlD2/tvvGaiDbfat+pCFh+Kkc7khHRUV7XRXYNr+Hj/P7RIOxTS3a0OmytmpnO6ybUbERgEVus9N1fU3yKGCbox19NNdqOEwc7zbw4k9EkpDnVGi+LIl5nChyyzwGvyeGGKNVJ/hiZNySvqrUZZAodmPMOI574mXaOP1SQPNISiF8TUGUI3zDhFnfwOltuL6wtRMxAu4uUsbBAse3yi9x7vpu1ir2DGUmHX2iOArQB2sspHqposaBWkdPHXksj283TE8ICqi9eFRhspm4Og+tdX+3FCFp2qQrmTd1maYdwWGADcnCBS54a2MBDGr+EbRmyFaTr//0fLCOhK0779Se X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: gBjGSvq/txAyuzJgdt9EYuhxROz6HjZZmAAmgbJ7uHUG7ST5UIhE4phGdie/Ps/y9vkQ0qW4ELBuJJse71kbDZYKl8VokOvb78t9aTeBS36K3unlliRJjG37IUjlZ5/H6pDKzNhp0PEuLkEvUJkyO/ZSJd3BYS1J6FxoF0j4ydz9OyesSEPHaej9dKn24JX6sm46ILYydEei0c5YOXGEZIQm4672dZZcL9PBSwMLq99c84s5sKxwXZyBQBGSrnQpMjCwcPOe7jidoKySorvUN765CBJdsF31n8zs85thl7VYXrPW8WTRSy5hCMNcxs5wgWgCiEuwVt1RpbA6GMOmmgkSXdLnRJEcCa9yn5bfXboD8O+g/o/UBsFJp7n19Eqfs/kXHM/tkXVjDNkI8N4TlQB1b5+0xePj1dOrH7zA/FwT5wWkl99zBZjmbtfLfgTWY/5Z7wyFBI8lq0Yc3Ihvh8WtvOpRsffsJj9MADP4FnHNMgi/Sp53sL1HYk9VxlJJiDdalSzVEg4MAnQJVOAjT2gooeJsukoS+1mEarWiY8XUXlP9xV962Io1SNozgQnfNU5yjIdcZLMHbIN5ByXA588N37OtWiytBPsAsqsnfu+9wjlJ1NHlGtumeKmIXTMO/wB7niz/kskDVSfcWugktlTo5GGemslQ3pZUb7412F0ra9Pzo3t+y6kjUosiiSwroN/1dTcR0ugYS74cxuoYaQ== X-OriginatorOrg: outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 8b261ac3-b45e-4555-3ac2-08d9ac175bfc X-MS-Exchange-CrossTenant-AuthSource: PAXPR08MB6640.eurprd08.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 20 Nov 2021 11:17:38.2145 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-Transport-CrossTenantHeadersStamped: PR2PR08MB4890 Received-SPF: pass client-ip=40.92.90.73; envelope-from=stardiviner@outlook.com; helo=EUR05-VI1-obe.outbound.protection.outlook.com X-Spam_score_int: 4 X-Spam_score: 0.4 X-Spam_bar: / X-Spam_report: (0.4 / 5.0 requ) BAYES_00=-1.9, DKIM_ADSP_CUSTOM_MED=0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_EF=-0.1, FORGED_GMAIL_RCVD=1, FREEMAIL_FORGED_FROMDOMAIN=0.248, FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.249, MSGID_FROM_MTA_HEADER=0.001, NML_ADSP_CUSTOM_MED=0.9, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=no 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: , Reply-To: numbchild@gmail.com Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1637408270; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=X0EG3VXpoP9TKJXQE4ie/dwOGAoRVEgrmd/Vj9NbdpU=; b=tFNODU00v0ovc2//2K/utDF1mYKlMOAVNhMliknDbNqmH4k6Jba73r5cd5Y56+MzA2JdIN ZPaIEbnEc52kjh11hdpwdUlOkqGElFz3/8JAkERQpo1qTCc/VB+BuHD1k1iDgsISsv2Nyn tE524pFT1mX5hAclAxdTWPJ5Imkhm0tdg944xFI1VjYs61JpAw8UC1X/4d4cIofEZQwgv1 BZHcR4Vz7MEGE/BQkHIK9axAjNCfWErYUNJYL0SlLujPqy49ipw7lD4ss7c3KuIbzcbd7h kO4LkSFxTMvBrrWfXkrFcwLFSo3FLFWPBGKMy/daUrMqHuivSTmwZRWTCAYV2Q== ARC-Seal: i=2; s=key1; d=yhetil.org; t=1637408270; a=rsa-sha256; cv=pass; b=YeVJqVlXlXV3JUMmWxoF7dVv2st8khhcuixop9qefFbwD90vaF6GmirJ4AxYHhKdDTKOug 3DNmfhVueUWqc0cT//QD9GjkGTglCwzD2InEtl4KjjPq7xTF0mz4wbGnf0DQ9VR1vBBJw6 pWcBda6tcwsrDWPdlK6/4tcUWwPpekqL9GfeWspLw9Wfo7jNT+grI07EjradI+sRf0U95V p1jkwPp0KC9lNn+QL/kTmozWzacjR2lTRpaaOeUNtX5ZmhE3pjnNHrkJIUVbXzafziHeRh Bq3il4UvtJnAQGO8LVrRM82Khdw9eBGEnV6viWSGk6ELpIQT4T6TvUyMVwqlSw== ARC-Authentication-Results: i=2; aspmx1.migadu.com; dkim=pass header.d=outlook.com header.s=selector1 header.b=cTMqzUxL; arc=pass ("microsoft.com:s=arcselector9901:i=1"); dmarc=fail reason="SPF not aligned (relaxed), DKIM not aligned (relaxed)" header.from=gmail.com (policy=none); 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: -6.57 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=outlook.com header.s=selector1 header.b=cTMqzUxL; arc=pass ("microsoft.com:s=arcselector9901:i=1"); dmarc=fail reason="SPF not aligned (relaxed), DKIM not aligned (relaxed)" header.from=gmail.com (policy=none); 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: 1039B35900 X-Spam-Score: -6.57 X-Migadu-Scanner: scn1.migadu.com X-TUID: QJmJNFynAxZy --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable When I put point on an custom org link: #+begin_src org [[pdf:~/Org/Wiki/Computer Technology/Programming/Programming Languages/Cloj= ure/data/Books/Clojure=E7=BB=8F=E5=85=B8=E5=AE=9E=E4=BE=8B.pdf::40++0.00][C= lojure=E7=BB=8F=E5=85=B8=E5=AE=9E=E4=BE=8B.pdf: Page 40]] #+end_src Then press =3D[M-: (org-element-context) RET]=3D to get link element proper= ties. I got: #+begin_example (link (:type "pdf" :path "~/Org/Wiki/Computer Technology/Programming/Progra= mming Languages/Clojure/data/Books/Clojure=E7=BB=8F=E5=85=B8=E5=AE=9E=E4=BE= =8B.pdf::40++0.00" :format bracket :raw-link "pdf:~/Org/Wiki/Computer Techn= ology/Programming/Programming Languages/Clojure/data/Books/Clojure=E7=BB=8F= =E5=85=B8=E5=AE=9E=E4=BE=8B.pdf::40++0.00" :application nil :search-option = nil ...)) #+end_example You can see the result ~:search-option nil~. It suppose to be ~40++0.00~. I tested with other link like this: #+begin_src org [[file:hs_err_pid20491.log::kkk+2]] #+end_src It returns ~:search-option~ correctly: #+begin_example (link (:type "file" :path "hs_err_pid20491.log" :format bracket :raw-link "= file:hs_err_pid20491.log::kkk+2" :application nil :search-option "kkk+2" ..= .)) #+end_example =2D-=20 [ stardiviner ] I try to make every word tell the meaning that I want to express. Blog: https://stardiviner.github.io/ IRC(freenode): stardiviner, Matrix: stardiviner GPG: F09F650D7D674819892591401B5DF1C95AE89AC3 --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAEBCAAdFiEE8J9lDX1nSBmJJZFAG13xyVromsMFAmGY2UoACgkQG13xyVro msNyEggAiiMHu02HMqO1J8az4s9R8Z6KGntM40ZXy1MHAkWTtBf1AVtVITtaWqmo H0vmNHhUsJowTtNAimW1ajBGfWU6mgHUzvu/KT6V0+dzN8LgbRmT/k7vfKlRc6nZ e2iGWycHJbzVmkYcJ4re3Rx2THzijIDCcuio+giJy93uhosBKtyEXMBrnrPpWvwC NbrR2E81ZkfluSARjit033J8o5JhHIfyxLz4T/uQhNYN9nisqf84/hZu9fL6OwIf oltlwbTzx5oAua2fFyMti3SprJhwJFBDCbW4hhyqn8OAAmY3Vvr1K6SV9xJms74i 7HEbTogkUpF9Gzv3EDgud9wgDx3T6w== =VPLN -----END PGP SIGNATURE----- --=-=-=--