From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id kFwKCU0PJmChdgAA0tVLHw (envelope-from ) for ; Fri, 12 Feb 2021 05:17:01 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id sJT8BE0PJmBnRQAA1q6Kng (envelope-from ) for ; Fri, 12 Feb 2021 05:17:01 +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 759949404C7 for ; Fri, 12 Feb 2021 05:17:00 +0000 (UTC) Received: from localhost ([::1]:55432 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lAQp9-00059x-Dp for larch@yhetil.org; Fri, 12 Feb 2021 00:16:59 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:40690) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lAQod-00059L-BT for emacs-orgmode@gnu.org; Fri, 12 Feb 2021 00:16:29 -0500 Received: from out0.migadu.com ([94.23.1.103]:49882) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lAQoZ-0003lI-Qe for emacs-orgmode@gnu.org; Fri, 12 Feb 2021 00:16:27 -0500 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=1613106980; 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=BKPJl1vIq6JgqJ3oFceS/+k9ihpFFqc2WF5qvQ6Ckfg=; b=X8g7F8MkSoeonyO0ju3eGfZU4hDKcOiqtHwMh/4crj7gZyY43NOgiHAFJBb0ucTThfehjq 1KEK+HgU5nixD56ugy2a/TwUteTKsmfiXYplL5Mss/JC5O6RcA7e796ae3k4f+mErUqQJt 4ogqx1bViVyM+/aSRXgbPEgLz6glBtKS3pOjm08e/X2B1I+dJa/divFC+qsGBmTFaX/w9G Pj55tRQ4lBKBEsOUkH4cIS/sXTVG7nVSgH8PZVFjIeQa23u/fQVxtRsAMOEH0cOVBl82vy FJAEFzSloZUfVV6mICyUHQDlFlqyVTyAJbjNopPePxLHfTbvcWrGHD0bb8mVpg== From: Kyle Meyer To: "Thomas S. Dye" Subject: Re: Problem with custom links In-Reply-To: <87k0ri2ib6.fsf@tsdye.online> References: <87k0ri2ib6.fsf@tsdye.online> Date: Fri, 12 Feb 2021 00:16:14 -0500 Message-ID: <87eehl9881.fsf@kyleam.com> MIME-Version: 1.0 Content-Type: text/plain X-Migadu-Auth-User: kyle@kyleam.com Received-SPF: pass client-ip=94.23.1.103; envelope-from=kyle@kyleam.com; helo=out0.migadu.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, 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.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 X-Migadu-Spam-Score: -2.56 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=kyleam.com header.s=key1 header.b=X8g7F8Mk; 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: 759949404C7 X-Spam-Score: -2.56 X-Migadu-Scanner: scn1.migadu.com X-TUID: SC0L8Yom70Wg Thomas S. Dye writes: > Aloha all, > > Recently, custom links that I've used for years changed their > behavior. They used to behave like other org mode links, but now > they are displayed in a different color face and are always fully > displayed, unless I add two new keywords to > org-link-set-parameters. > > (org-link-set-parameters > "parencite" [...] > :display 'org-link > :face 'org-link) I tried this snippet, dropping the :display and :face arguments (org-link-set-parameters "parencite" :follow 'org-ebib-open :export (lambda (path desc format) (cond ((eq format 'html) (format "(%s)" path)) ((eq format 'latex) (if (or (not desc) (equal 0 (search "parencite:" desc))) (format "\\parencite{%s}" path) (format "\\parencite[%s][%s]{%s}" (cadr (split-string desc ";")) (car (split-string desc ";")) path)))))) with the following buffer: [[parencite:foo][bar]] With an otherwise default configuration and the current master (49364f904), the link gets fontified with the org-link face and displayed as just "bar". So, that seems to be behaving as expected and I don't spot any relevant code change to the handling of the defaults in org-activate-links. Have you tried to trigger it without any additional configuration?