From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id qCJwODALJ2CDdAAA0tVLHw (envelope-from ) for ; Fri, 12 Feb 2021 23:11:44 +0000 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id +7UdNDALJ2DQaAAAB5/wlQ (envelope-from ) for ; Fri, 12 Feb 2021 23:11:44 +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 AE58215F06 for ; Sat, 13 Feb 2021 00:11:44 +0100 (CET) Received: from localhost ([::1]:57142 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lAhbD-0007fw-Ta for larch@yhetil.org; Fri, 12 Feb 2021 18:11:43 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:33860) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lAhVY-0004w4-RC for emacs-orgmode@gnu.org; Fri, 12 Feb 2021 18:05:53 -0500 Received: from gateway22.websitewelcome.com ([192.185.47.65]:47841) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lAhVW-0007bQ-V7 for emacs-orgmode@gnu.org; Fri, 12 Feb 2021 18:05:52 -0500 Received: from cm17.websitewelcome.com (cm17.websitewelcome.com [100.42.49.20]) by gateway22.websitewelcome.com (Postfix) with ESMTP id 9900514AB4 for ; Fri, 12 Feb 2021 17:05:36 -0600 (CST) Received: from box2035.bluehost.com ([74.220.219.237]) by cmsmtp with SMTP id AhVHlFo28DT64AhVIl1UkA; Fri, 12 Feb 2021 17:05:36 -0600 X-Authority-Reason: nr=8 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=tsdye.online; s=default; h=Content-Type:MIME-Version:Message-ID:Date: In-reply-to:Subject:Cc:To:From:References:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=64/uWdli7j3FOqAxUfhZ6o/JZaPpRA92QMeUlLJtSQk=; b=KZv5hjhLzDDVNDsHob1OHg7iL 6GBQPu8DFKndx1zyLWEcgDEY1M5QmwhP5DOJEebnRw00UD4Uv4vUE6zjUXTCQbK9N2tASNQ1HIt6W kN/R4DtwrhQuPFKYgjoZ3zFIHTOwx53RDaGgMLmDwybqF3AfXoEjuc2LvlOw9EyiAg2nd81yT7Wlc q6tOsApE/4cTDBCJdSCnHJTeQoy0WE5NnVLGzsHWdDIBI6e0H7L4glMmrs/IM1ebfCmzpZqt9OSuH r7XXkjgk+mtKaCAZJlOw4JPuz6ZR1yBffO8Rl0oVsRfsjZ2nEEAr/iL6HQxoBms1PRTZ5G3hKAS1L QmChbAmsw==; Received: from cpe-50-113-36-248.hawaii.res.rr.com ([50.113.36.248]:57108 helo=lekeleka.tsdye.online) by box2035.bluehost.com with esmtpsa (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.93) (envelope-from ) id 1lAhVH-0046ox-G0; Fri, 12 Feb 2021 16:05:35 -0700 References: <87k0ri2ib6.fsf@tsdye.online> <87eehl9881.fsf@kyleam.com> User-agent: mu4e 1.2.0; emacs 26.3 From: "Thomas S. Dye" To: Kyle Meyer Subject: Re: Problem with custom links In-reply-to: <87eehl9881.fsf@kyleam.com> Date: Fri, 12 Feb 2021 13:05:33 -1000 Message-ID: <87tuqgopj6.fsf@tsdye.online> MIME-Version: 1.0 Content-Type: text/plain; format=flowed X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - box2035.bluehost.com X-AntiAbuse: Original Domain - gnu.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - tsdye.online X-BWhitelist: no X-Source-IP: 50.113.36.248 X-Source-L: No X-Exim-ID: 1lAhVH-0046ox-G0 X-Source: X-Source-Args: X-Source-Dir: X-Source-Sender: cpe-50-113-36-248.hawaii.res.rr.com (lekeleka.tsdye.online) [50.113.36.248]:57108 X-Source-Auth: tsd@tsdye.online X-Email-Count: 2 X-Source-Cap: dHNkeWVvbmw7dHNkeWVvbmw7Ym94MjAzNS5ibHVlaG9zdC5jb20= X-Local-Domain: yes Received-SPF: pass client-ip=192.185.47.65; envelope-from=tsd@tsdye.online; helo=gateway22.websitewelcome.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_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FROM_SUSPICIOUS_NTLD=0.5, PDS_OTHER_BAD_TLD=1.999, 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.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: -4.00 Authentication-Results: aspmx1.migadu.com; none X-Migadu-Queue-Id: AE58215F06 X-Spam-Score: -4.00 X-Migadu-Scanner: scn0.migadu.com X-TUID: m5gg2Z3yqTzB Aloha Kyle, Thanks for taking a look at this, and also for the instructions how to test. I get the results you report. Separately, off list, John Kitchin kindly noted that my symptoms might be caused by org-ref. A bit of snooping led me to understand that org-ref was installed on my system as a dependency of emacs-reveal, so the mystery is solved. I'm happy using the two new keywords; they seem to protect my setup from being changed by org-ref. All the best, Tom Kyle Meyer writes: > 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? -- Thomas S. Dye https://tsdye.online/tsdye