From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id OI8zAKnojmTs5AAASxT56A (envelope-from ) for ; Sun, 18 Jun 2023 13:21:13 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id eNztOqjojmT0IgAAG6o9tA (envelope-from ) for ; Sun, 18 Jun 2023 13:21:12 +0200 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 979932B69C for ; Sun, 18 Jun 2023 13:21:12 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qAqSE-0002rm-2S; Sun, 18 Jun 2023 07:20:22 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qAqSB-0002rX-Py for emacs-orgmode@gnu.org; Sun, 18 Jun 2023 07:20:20 -0400 Received: from mout02.posteo.de ([185.67.36.66]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qAqS9-000183-VQ for emacs-orgmode@gnu.org; Sun, 18 Jun 2023 07:20:19 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id 4FFAF240103 for ; Sun, 18 Jun 2023 13:20:15 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1687087215; bh=mkhHCXWfW2OV5d+8UA5aEa13Z3V7TuGaaeoFYDXJdyo=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:From; b=rS0Uk+3vqVy3gE36XBogr4GQXwAIjFnvfSka+hHZiheO8Z+MKcmpfGKw1sJ6tlO9H 85jaVb6MNPjp4SU5MLRX3SB0dBzf8Sg2vMZN7ZgnNYeSno9BO/6HKDCa2zt6sYciLw Y3pV+sw6xXnaQz6VQD5NwvIysRBbTDQpBCu0rGUif3txR8IBEW3HA/0kzWAhLX2Fp0 PMgpzOww5p/eIZyviWjukueAi96/6897koJrM+bBCK53M7LkBvoQBFv6pHOFB4QIgH dI/X/iHQFoTdgthAQ65UcAuY/lFSOsqeKror4DXameW1U4fcztmw1iuJHO1F7qm5su mPP4CzfnTxw/A== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4QkVmt1yCXz6tvs; Sun, 18 Jun 2023 13:20:14 +0200 (CEST) From: Ihor Radchenko To: Akira Kyle Cc: emacs-orgmode@gnu.org Subject: Re: [PATCH] ox-html.el: Fix relative links with :html-link-use-abs-url In-Reply-To: References: Date: Sun, 18 Jun 2023 11:25:08 +0000 Message-ID: <87zg4x812j.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=185.67.36.66; envelope-from=yantar92@posteo.net; helo=mout02.posteo.de X-Spam_score_int: -53 X-Spam_score: -5.4 X-Spam_bar: ----- X-Spam_report: (-5.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, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H5=-1, RCVD_IN_MSPIKE_WL=-0.01, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: emacs-orgmode-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1687087272; 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=PDWelvtZGfPm5joWU+iBgECaXytTxJM00X3D0dyAdAk=; b=anSkDTzYDweaDnjDd3zugx4XtwtvS+QOl/xxBhZL6D/BZAZD/meO98AAVpiIz1mmT51nkl goejFmV86Axus/4LqXPY4M1QRho2Rw/ibOIFR56ixU4MFTvH4oeka9QLLWDCePtD1kFyIN SpdxaocmGBSyGLdYPIkd4kWHBf/V/5mloCGA4E0Y/rbFLY0h0OR71yC+RkKcY3pejP1tBb hohD/krdPHtyLNLvGIpTCsZ6spci63q6/lglno0JcIAm6kBXQaISTLzo2yY2FKkl5m/mf6 ExWJdnIEMpzCVtBCUF4+dY8mIOAClGLSA4V7LXINUlqeM0bqXct7IuMaLDQDeA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=rS0Uk+3v; dmarc=pass (policy=none) header.from=posteo.net; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" ARC-Seal: i=1; s=key1; d=yhetil.org; t=1687087272; a=rsa-sha256; cv=none; b=mwspuGapuvTXo0366sfEKuoNtwSS5I3KvUF+X+/okcZzLQ/A/tyKGNW56IW38bDzFKk0nn ZznCtDryQYNLflkH2dqbEj0gG32mju/BapSeTgN/MHjtCmKGZTp17C3twC1DVfDRlp3zX7 MMj55PjkqjvxokHqFcHD1DBPG7mtPhtpTwbT858qckvhLOvC7k7ln9SNMw5dGp4zL3/0Xd oIZynGSMIBn0kdLpHXjrOyyFJz6j+kRwPIbgsNB4pMX+1cgTxMhEbpaBnDyb1wTfl0pUs4 8sBGccIBDQ4fK9rvops1VhiTqEfik7GxjY55RpI/H2XFZXeSIVz/CP7Br0X5ow== X-Migadu-Scanner: scn1.migadu.com X-Migadu-Spam-Score: -6.21 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=rS0Uk+3v; dmarc=pass (policy=none) header.from=posteo.net; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: 979932B69C X-Spam-Score: -6.21 X-TUID: ifcI2PGMs2l2 Akira Kyle writes: > I'm pretty sure this fixes a bug and that the intended behavior is > that when publishing with, say, ~:html-link-use-abs-url t~ and > ~:html-link-home mysite.com~, one would expect a link like > ~[[file:my/page.org]]~ to be exported to ~mysite.com/my/page.com~. > ... > - (file-name-absolute-p raw-path)) > + (not (file-name-absolute-p raw-path))) Looks right. Would you mind also adding a test to testing/lisp/text-ox-html.el ? -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at