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 yBiTBFqv1V9baQAA0tVLHw (envelope-from ) for ; Sun, 13 Dec 2020 06:06:18 +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 KPVaAFqv1V/6awAAB5/wlQ (envelope-from ) for ; Sun, 13 Dec 2020 06:06:18 +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 B04A494014B for ; Sun, 13 Dec 2020 06:06:17 +0000 (UTC) Received: from localhost ([::1]:36876 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1koKWO-0003D2-Cd for larch@yhetil.org; Sun, 13 Dec 2020 01:06:16 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:49042) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1koKVQ-0003AP-7F for emacs-orgmode@gnu.org; Sun, 13 Dec 2020 01:05:16 -0500 Received: from out1.migadu.com ([2001:41d0:2:863f::]:56008) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1koKVM-0007bT-Tl for emacs-orgmode@gnu.org; Sun, 13 Dec 2020 01:05:15 -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=1607839507; 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=FnZLufbnUtU+GtwJADdy0Eue9jdTsFiI3ZuSSniPCd8=; b=EyVC6HEeNMPFcQXtwNeKiWsKGJ3e/+Z9u0Nt4XdViHZDDa5708h5tSraeJYMxjQ97wlqsH K6V86mDAIWzoRQKbY/dsJRudkFSEZQa31brfvTjrwDS2rCW3NM1Sxrscjrptr1AvebmIbF MW37HFSVKhZC+O6DZxsjmNlmN3ATPrIbOt4YXV1Zy7f5NL1Pa9SpeAgFUA/wVYHscqRFPu Yr7H1Z7MT9FgIMcZEtqcbV8ETp5jW9VAMBAXUkNgtCvKBkPUhWl+EkovJBGP89TNiy3ud3 ZB5271qdvi7ysUtRo4PSynb8elqKux0PTePrdeuUtflKu+/DiihZ7/uI11LsAg== From: Kyle Meyer To: Junwei Wang Subject: Re: Bug: Orgmode export takes "AC:" as a link keyword [9.5 (nil @ /Users/junwei/.emacs.d/.local/straight/build-27.1/org-mode/)] In-Reply-To: References: Message-ID: <87h7oqutpq.fsf@kyleam.com> MIME-Version: 1.0 Content-Type: text/plain X-Migadu-Auth-User: kyle@kyleam.com Date: Sun, 13 Dec 2020 06:05:07 GMT Received-SPF: pass client-ip=2001:41d0:2:863f::; envelope-from=kyle@kyleam.com; helo=out1.migadu.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, 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.50 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=kyleam.com header.s=key1 header.b=EyVC6HEe; 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: B04A494014B X-Spam-Score: -2.50 X-Migadu-Scanner: scn1.migadu.com X-TUID: dHRUP+CGUaDA Junwei Wang writes: > When exporting orgmode file into HTML file, the exporter "mistakely" > consider "AC:" as some keyword for linking and the string following > "AC:" would be something link to. It looks like org-ref is setting up these links for you. Here's the relevant bit from the configuration you included: org-link-parameters '([...] ("Ac" :follow or-follow-acronym :face org-ref-acronym-face :help-echo or-acronym-tooltip :export #[771 "\211\301>\203\302\303\300A#\207\302\304\226\"\207" [("Ac" . "Gls") (latex beamer) format "\\%s{%s}" "%s"] 7 "\n\n(fn PATH _ FORMAT)"] ) ("ac" :follow or-follow-acronym :face org-ref-acronym-face :help-echo or-acronym-tooltip :export #[771 "\211\301>\203\302\303\300A#\207\302\304\226\"\207" [("ac" . "gls") (latex beamer) format "\\%s{%s}" "%s"] 7 "\n\n(fn PATH _ FORMAT)"] [...] I suspect the uppercase "AC" being treated as a link despite it not appearing in org-link-parameters is a case-related bug somewhere in Org's link handling. While that's worth looking into, it just shifts things as far as your original example is concerned: replace "AC" with "ac", and you have the same issue that you reported. One way to make Org not treat "ac:foo" as a link is to insert a zero-width space (with, e.g., ) between "ac" and ":". (info "(org)Escape Character")