From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms13.migadu.com with LMTPS id WMo3LVDkjGeHxQAAe85BDQ:P1 (envelope-from ) for ; Sun, 19 Jan 2025 11:38:56 +0000 Received: from aspmx1.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2.migadu.com with LMTPS id WMo3LVDkjGeHxQAAe85BDQ (envelope-from ) for ; Sun, 19 Jan 2025 12:38:56 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20230601 header.b=fsPCsFU3; 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=gmail.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1737286735; 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=URh3bcgiJpxfegsbhgbgm7qs1AG99KXiSPXqQ+SuUI8=; b=hl1pjlKwJQMNjtXsnY9swcWunDAKR+aBmvgWlKLC055gEphCLGaXsiEqcUxM+fQCx8ZFHd J7i8UL25ZOb9mcQ+lfXUfPaFqdm9PiGSGOtRieckd+XADxj/L+6Kjqu7JfHK3kcpahnJ2s ekolA26FvYzH4tUDBqQW1A2EsZ9oiwWJbNK72ncvLtVjYsWfP52ulkedi0A8g9DVL1FBZS ROd2U53NMVbQ4zupoItrYrKHC25xnq54DHhoGUP+nBiIK8VSqIf3uaderqZKAv/O85GD19 pD2TQus3NJvmDTIQsYqJTeaQVUN6sqriVx1DVU/4DzNfhRXGZeOHNAPQiuo6Dg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20230601 header.b=fsPCsFU3; 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=gmail.com ARC-Seal: i=1; s=key1; d=yhetil.org; t=1737286735; a=rsa-sha256; cv=none; b=bYkOResAw4S0oSOwbtT7ZoIMpBnz8smJNC2aQUc5cuDCJNAur77LpLOix9TVC3fYYgt8+t 01u6ieLu9eiaVK40N9k4dID+PqG1H+XqM2h9he6prJXNYhq73OiugsA7/3pmYmRAcyuYPW ND/kIGz9ekJdZ013SjM+DwbRekw8h0lrJxg2Xlj3uHEC2jQtHV8QoKZI2jRUTxRXgYDgjW 75jQqPat2rSZgy2XV7KvE8IZHbYT6HR1Kqc7ARMoYMpfNSY6PJXnBhkm/RTOTRmhV7pqq0 PKwSDiQ85PwUh5CQNnl4kYFjbbu2G1NxJt2Ug3Scpy9FnkGP2FHW6o8/o2qaBA== 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 A27B6A41D3 for ; Sun, 19 Jan 2025 12:38:55 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tZTcz-0005S6-Tu; Sun, 19 Jan 2025 06:38:06 -0500 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 1tZTcv-0005Ra-Ve for emacs-orgmode@gnu.org; Sun, 19 Jan 2025 06:38:01 -0500 Received: from mail-oo1-xc31.google.com ([2607:f8b0:4864:20::c31]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tZTcu-0007UW-B0 for emacs-orgmode@gnu.org; Sun, 19 Jan 2025 06:38:01 -0500 Received: by mail-oo1-xc31.google.com with SMTP id 006d021491bc7-5f32f5b0631so2462421eaf.3 for ; Sun, 19 Jan 2025 03:37:59 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1737286678; x=1737891478; darn=gnu.org; h=content-transfer-encoding:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=URh3bcgiJpxfegsbhgbgm7qs1AG99KXiSPXqQ+SuUI8=; b=fsPCsFU3Mghs7tPYg3NKDMqd8uN0AsiOoEH/BdU3CIeX+bHBT34akefl86w+Oei6YH 2sfwLAJEzUyqyTg4r22s91AtZO4eKNr83ci5oW59eydM5LBt4IB4BYfMgkQAilR/Ihr0 nG6BrPISrJh89KJ8a5sqZEMMXhh7WxL5PJuxYTP932HhS3VfuQ1YmYaBcbgyrnKSMVQq BKlQAjmQwNoouTNj+uxHVfJv6heEyWdOz2Zj2zJBhW52DzUNhEmDulpQ+w9WbHdb0TvC yu4WRjCh9fIsb2b1whNPDTnJpr7VTGMB6pTmXpCZHLm+lglMK8RWoZZKKHyXdt8k3xGW 7utg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1737286678; x=1737891478; h=content-transfer-encoding:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=URh3bcgiJpxfegsbhgbgm7qs1AG99KXiSPXqQ+SuUI8=; b=tvWj41X/DhpA8+wlPAg3G47CQa/EzSMjfQWqichhW1wCfMNBj1g2WnCmDbUzE/HhL+ GTfPKwDTdA7Gveas7RiWT1HBJc2Dlabgq7MHOPqaY0CE7WaNA1l9eKk2Cc/D6Lxp/Li7 EGEOz+AcmDdecu0475Rx3OYz5BOEkN8RVPb4kJ2UxKMiMLsfRdpO3ebN7sisHhO0RNbz 4vWzDW9ODAB13FlVhh2GuPES47GFuwf8vv0pKD5IOqoZddRvwEoFZXZkYrWUX+5o9AuK keBzK1SgFbwlAZQCQl6xQYsd9SOuV2s9DhEHgZp7hsl4c67aWobrxq5ZNF2NSv0DIQSv CsqA== X-Gm-Message-State: AOJu0Yyv/esDhD9ANBbNX7/q4rgdP0Dn2eQyCmQVyEEyIShCR6EYNg76 XasZIn4F8RHKceW8M0CW52W4CK7MaGtDW1eMAvgkmLmjoxobN9XFr/oqq/P4tFBCZTdKkTPSQaE 91UPaN75GijB4f+jbk9v9D+COp++7MGJVrok= X-Gm-Gg: ASbGncu7GE03AFEtmPGLsvxdUqD0LekcHVFk+8f7LjvvTKLNCRxm0luYoY7y+DSJsie Sk5lNXuwcSQZfwNPG01JmtxSFW5JgBs3LbAlTZ8tLJlN9O6nG+C1Tc2rhxCOhmY1qthYDJ0T6l8 moPeYPZNjg X-Google-Smtp-Source: AGHT+IHgwrUgGqCylXIxGrx91HteUv9z2SZkdWdt+TjkfCpi6xqKdsprtroWhcJjAVdDU5nTPjTtaJaFRNZBusTActU= X-Received: by 2002:a4a:ee82:0:b0:5f6:2e9b:bb0a with SMTP id 006d021491bc7-5fa3876489dmr5629196eaf.2.1737286678145; Sun, 19 Jan 2025 03:37:58 -0800 (PST) MIME-Version: 1.0 References: <87plkjceei.fsf@localhost> In-Reply-To: <87plkjceei.fsf@localhost> From: Lei Zhe Date: Sun, 19 Jan 2025 19:37:22 +0800 X-Gm-Features: AbW1kvZ1Z6JhKHNga4gBb_xju_bErx7fswSxgZ1tymtxThokpfqOqfZ3esUExBs Message-ID: Subject: Re: [Patch]: Ignore search option when org-lint local file link To: emacs-orgmode@gnu.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=2607:f8b0:4864:20::c31; envelope-from=lzhes43@gmail.com; helo=mail-oo1-xc31.google.com X-Spam_score_int: -17 X-Spam_score: -1.8 X-Spam_bar: - X-Spam_report: (-1.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_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, 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-Spam-Score: -8.50 X-Spam-Score: -8.50 X-Migadu-Queue-Id: A27B6A41D3 X-Migadu-Scanner: mx10.migadu.com X-TUID: t3qIF+yBmb/6 Sorry, it was [[attachment:example.pdf::2]]. The lint for [[file:example.pdf::2]] is fine, since org-element-context returns the raw path without the search option. However, this is not the case for [[attachment:example.pdf::2]]. On Sun, Jan 19, 2025 at 5:57=E2=80=AFPM Ihor Radchenko wrote: > > Lei Zhe writes: > > > For the link [[file:example.pdf::2]], org-lint identifies it as an inva= lid link. > > This patch aims to address the issue. > > I am unable to reproduce this problem. M-x org-lint does not show any > warning after I change the link to point to an existing file. > > I tested on the latest main. > > -- > Ihor Radchenko // yantar92, > Org mode maintainer, > Learn more about Org mode at . > Support Org development at , > or support my work at