From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:bcc0::]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id OK0KBnuxa2DuBwEAgWs5BA (envelope-from ) for ; Tue, 06 Apr 2021 02:55:23 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id ULeUO3qxa2AuIQAAB5/wlQ (envelope-from ) for ; Tue, 06 Apr 2021 00:55:22 +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 3B52EFC3B for ; Tue, 6 Apr 2021 02:55:22 +0200 (CEST) Received: from localhost ([::1]:40364 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lTa01-0001wU-4h for larch@yhetil.org; Mon, 05 Apr 2021 20:55:21 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:57550) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lTZz1-0001vO-Hp for emacs-orgmode@gnu.org; Mon, 05 Apr 2021 20:54:20 -0400 Received: from out2.migadu.com ([2001:41d0:2:aacc::]:49474) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lTZyv-00028v-OR for emacs-orgmode@gnu.org; Mon, 05 Apr 2021 20:54:18 -0400 X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kyleam.com; s=key1; t=1617670445; h=from:from: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; bh=JWV3w/LlfAyNniu+JrHfGdmSEgv/NmOhpjNfqpbywMg=; b=FgrQtptZHvV0ibNIHxWz4Dns94EYxov2FArx5L7QlNsnzd7OWDItWbha80/w5Amb4gUgCU 8D5atyQ0liUBic63RZXLwXojUX0ZPZmw8BlqI/fNen8g4QBFSvoqhUH8MuyrsXMWZICl3i mMoM+U+IfpVqi/1wXkcRW0FJTiKvvyJG8RDfsRiokWVAxr4BvFzZTBgobiBzDnAB7rJ6zn iwC8RBVEgWYbO4wDtRBwog0xP26ovjTtyVI0+EDDbNYpvwOTz3UnZMRjFLhtmtYz7HGZwb wXAVxALXUwLfjUSGikyBhTRR3lFbzZNXBxkFtuW2qMyfT774XNdN+OHq2l1OcQ== From: Kyle Meyer To: Adam Sneller Subject: Re: Can no longer org-set-link-parameters with "fuzzy" link types In-Reply-To: <9F561A9A-264D-4AED-AC4F-4FBB6D04516D@ms2.digital> References: <9F561A9A-264D-4AED-AC4F-4FBB6D04516D@ms2.digital> Date: Mon, 05 Apr 2021 20:54:02 -0400 Message-ID: <874kgkcjx1.fsf@kyleam.com> MIME-Version: 1.0 Content-Type: text/plain X-Migadu-Auth-User: kyle@kyleam.com Received-SPF: pass client-ip=2001:41d0:2:aacc::; envelope-from=kyle@kyleam.com; helo=out2.migadu.com X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.23 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 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1617670522; 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=JWV3w/LlfAyNniu+JrHfGdmSEgv/NmOhpjNfqpbywMg=; b=dfMsqQCbCmJVBm2S5wgmZO3IZqfZxk6+MQaygM09IEK2WT9QHTIvdmZNsMQ8P9uPKJX1nE BkVWsJtbpQWDc9ZM/IzctmDyWSrmA3KavdyJ803WrHa1eKQXwvD5d3ZaEIJW47cBnlNJ7n CRgdQMzqdaKb/gI682ZZUVUPs8xxECiazrFOJvcoWsb2tbGntyHXx+6wMYj/IJ7FrwP7an 6A+FPw5RnOI97RMlMerj61ZTM8PN+//L4scXdFvwNfZL52nllXY7rHRJMWq+hs95HlnQBK gY6O/JvMt1I0hBGpg5UHlTQDmmDqXOxQmPwKs7gurpoEonz3gm9zn3REGbQLsw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1617670522; a=rsa-sha256; cv=none; b=c+MUcYEA9jtKKQ5kp2k9WFDjPtnis2ierm9QwdQEWw094KKJR0GXjbtI3M6PuYwEzkgJrY fr12jv/3mkScCxbXw5wxVeVjbGINiku0ETa3aSnkpIgoB+ZcIXPzJp1/LhTIqginYFzLFO BXdV0tZoDmyKxCcW9YOcXLJMLwUqZb8vHnN2M/0zhZep2iCAkNMDai573VNYiC2f7ClnMS 5PzjoSU/nyxoP9su1PEqwrS0tWtvwzK6SkHfgZrbPA2ZO3QEHNvNW60HEaMXGPK3v+zihw it6AjrJUEtXu8+cr82u1ypH7JflfEowmAj9iMzAjNgD7CLguuyYDa+9uem7VZw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=kyleam.com header.s=key1 header.b=FgrQtptZ; dmarc=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: -2.64 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=kyleam.com header.s=key1 header.b=FgrQtptZ; dmarc=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: 3B52EFC3B X-Spam-Score: -2.64 X-Migadu-Scanner: scn0.migadu.com X-TUID: Z73raCKfAv3X [ Sorry for the slow response. ] Adam Sneller writes: > I have a function that searches for broken fuzzy links in org-mode and > applies org-warning face to anything it finds: > > (org-link-set-parameters > "fuzzy" > :face (lambda (path) > (let ((org-link-search-inhibit-query t)) > (if (condition-case nil > (save-excursion > (save-match-data > (org-link-search path (point) t))) > (error nil)) > 'org-link 'org-warning)))) > > In 9.4.4 this patch breaks this: > > https://code.orgmode.org/bzg/org-mode/commit/8c4e270df280a08b7e61295712c86246088146ba > > Is there some other recommended way to get this done as of 9.4.4? I don't know enough about the change to say whether this is recommended, but it looks like you could get the behavior you're after with something like (add-to-list 'org-link-parameters '("fuzzy" :face (lambda (path) ...)))