From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id aFGxK/vt81+CXwAA0tVLHw (envelope-from ) for ; Tue, 05 Jan 2021 04:41:31 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id ICmoJ/vt818ZNQAAB5/wlQ (envelope-from ) for ; Tue, 05 Jan 2021 04:41:31 +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 B63779403D3 for ; Tue, 5 Jan 2021 04:41:27 +0000 (UTC) Received: from localhost ([::1]:45530 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kwe9t-00064O-4T for larch@yhetil.org; Mon, 04 Jan 2021 23:41:25 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:54394) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kwe9B-00061d-3D for emacs-orgmode@gnu.org; Mon, 04 Jan 2021 23:40:43 -0500 Received: from mail-ed1-x534.google.com ([2a00:1450:4864:20::534]:47028) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kwe98-0002BF-SK for emacs-orgmode@gnu.org; Mon, 04 Jan 2021 23:40:40 -0500 Received: by mail-ed1-x534.google.com with SMTP id b73so29692425edf.13 for ; Mon, 04 Jan 2021 20:40:38 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:thread-topic:thread-index:date:message-id :references:in-reply-to:reply-to:accept-language:content-language :content-transfer-encoding:mime-version; bh=tqqoYkuFkClo3P0jAYhepwBAJ8X3ncq/R3fYvcpUpOI=; b=XtMwUtcFNsXi2BCTq4wa8uAlx0TQ1wJ3ICYRQ50ZUElPaqmBnEwI1mahgIuQaDOAj+ J+S91ZqZUo0S3DZUPDDk7RhTgmeYbq3XpHg3tKQvM9om+bOhk/eOQb4fzl8WpqvIDkBg ZDBEulrZnwUeRpy6ZLuAospKUQ0E43Wqvw6yJsh0Tb1sM7YWTsHZmwCtnvHoZTDWWDp4 WfBVw8UjQ97Q3zegNnFfPTY3+RRNsJLr7RRS4iju6armh4jhQLHgy/e6CrbcM30Soo1T jYIZ4dlMge7/wOJdaCw8hB6P8rtA70Cipm0sgcQl3ci31Yuv9ZG6S1d7qcwKws5rYtTz cVMw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:thread-topic:thread-index :date:message-id:references:in-reply-to:reply-to:accept-language :content-language:content-transfer-encoding:mime-version; bh=tqqoYkuFkClo3P0jAYhepwBAJ8X3ncq/R3fYvcpUpOI=; b=mMwX3gQ0WSZEx8aX+J1BSDMXg96WoQov4iNb3ywBY4GayHpRWuxxobil9WOHARUbJi rRIzfg1neFnRlPJHd0UkS5c1m8Ys3/SCCJUPZIEpDdFqENFMX07zpYBn/Crbqqa3fII8 LVcBjeZZm916M7yx17fcBhPKsAAyLJiKHE4yECGzW36iFxmDkYO6JR/CPTj97CHzbN9R d43f9dX12lXkvCuNkznN8JxTRI55qKvyoXryoZe6kgA/McrQdJySUUWOS1IgxyXCRryx aZ9GfUOt4MwpJK+sMRbhoN5SfE1GT6DcfNJsrOLMt/dzQquyGunPBeuNmY9WGctid6qt CgYA== X-Gm-Message-State: AOAM530occmBNGImStQJTTSN/TzT1s1Dmfvc6yO4YvrWP45Qc+tsfFWa +C6AhLAL8M0uBfGozjjO4w== X-Google-Smtp-Source: ABdhPJwHr9j/aCFNEjGwJXRHzAlp4PJ3vXMm1z1SDOWLrUORLSgeetDAy1oGB8rAHUVoUxNrXXG2tw== X-Received: by 2002:aa7:d3d4:: with SMTP id o20mr19060388edr.190.1609821636853; Mon, 04 Jan 2021 20:40:36 -0800 (PST) Received: from VI1PR1001MB1070.EURPRD10.PROD.OUTLOOK.COM ([2603:1026:300:5a::5]) by smtp.gmail.com with ESMTPSA id f17sm44203721edv.5.2021.01.04.20.40.35 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Mon, 04 Jan 2021 20:40:36 -0800 (PST) Received: from dark (183.246.146.135) by HK0PR01CA0049.apcprd01.prod.exchangelabs.com (2603:1096:203:a6::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3721.20 via Frontend Transport; Tue, 5 Jan 2021 04:36:59 +0000 From: miles christopher To: Nicolas Goaziou Subject: Re: [QUESTION] Org "customid" and "coderef" links seems not fontified as other file: link Thread-Topic: [QUESTION] Org "customid" and "coderef" links seems not fontified as other file: link Thread-Index: AQHW1caU8muGxiUz6U264d93rm4/jaoYi1wA X-MS-Exchange-MessageSentRepresentingType: 1 Date: Tue, 5 Jan 2021 04:37:02 +0000 Message-ID: References: <87imgoregv.fsf@gmail.com> <5fe3461a.1c69fb81.f26ce.16e0@mx.google.com> <87lfd8a7ji.fsf@nicolasgoaziou.fr> In-Reply-To: <87lfd8a7ji.fsf@nicolasgoaziou.fr> Accept-Language: zh-TW, en-US Content-Language: en-US X-MS-Exchange-Organization-AuthAs: Internal X-MS-Exchange-Organization-AuthMechanism: 06 X-MS-Exchange-Organization-AuthSource: VI1PR1001MB1070.EURPRD10.PROD.OUTLOOK.COM X-MS-Has-Attach: X-MS-Exchange-Organization-Network-Message-Id: e8e147da-d4f0-48a4-e7a0-08d8b1338b8e X-MS-Exchange-Organization-SCL: -1 X-MS-TNEF-Correlator: X-MS-Exchange-Organization-RecordReviewCfmType: 0 x-clientproxiedby: HK0PR01CA0049.apcprd01.prod.exchangelabs.com (2603:1096:203:a6::13) To VI1PR1001MB1070.EURPRD10.PROD.OUTLOOK.COM (2603:10a6:800:69::18) Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::534; envelope-from=numbchild@gmail.com; helo=mail-ed1-x534.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 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_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.23 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: miles christopher Cc: Org Mode Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Migadu-Flow: FLOW_IN X-Migadu-Spam-Score: -1.23 Authentication-Results: aspmx1.migadu.com; dkim=fail (headers rsa verify failed) header.d=gmail.com header.s=20161025 header.b=XtMwUtcF; dmarc=fail reason="SPF 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: B63779403D3 X-Spam-Score: -1.23 X-Migadu-Scanner: scn1.migadu.com X-TUID: 2zCU3aUiAjNt Nicolas Goaziou writes: > Hello, > > stardiviner writes: > >> Bump this thread, hi, Nicolas, any thoughts or update about this? >> >> stardiviner writes: >> >>> I have following minimal testing code: >>> >>> #+begin_src emacs-lisp >>> (defun org-link-beautify (start end path bracketp) >>> "Display icon for the Org link type." >>> (message >>> (format "start: %s, end: %s, path: %s, bracketp: %s" start end path = bracketp))) >>> >>> (dolist (link-type (mapcar 'car org-link-parameters)) >>> (org-link-set-parameters link-type :activate-func #'org-link-beauti= fy)) >>> #+end_src >>> >>> The ~message~ does not print parameter values at all. I guess those "cu= stomid" >>> [[#Usage] and "coderef" (coderef) are different with "file:" etc links.= Is this >>> true?=20 > > That's correct. coderef, customid, and fuzzy links are internal links. > They are not really customizable. They are meant to behave the same in > all Org documents. > >>> Here is my complete source code I want to try fontify customid and code= ref >>> links. >>> >>> https://github.com/stardiviner/org-link-beautify/blob/master/org-link-b= eautify.el#L67 >>> >>> Is there any way to fix this problem? > > Coderef and custom-id links are fontified, so you may still change their > appearance using font-lock configuration variables. Here be dragons. > > Regards, I see, I searched some font-lock example code, but have not found any examp= le about font-lock + text-property. (Maybe my searching words is not good enough...) How to write it? Do you got any hints? Thanks for your helping. By the way I got an issue that org-link-beautify conflict with yasnippet[fn= :1]. I know the key point is how Org Mode fontify the link. I tried to read code= , but have not found hint about how to disable fontify on link temporary. Can you= give some suggestion about this problem? Thanks too. [fn:1] https://github.com/stardiviner/org-link-beautify/issues/5 Regards, --=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