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 ms0.migadu.com with LMTPS id 0F7OOTCTMGJ4xQAAgWs5BA (envelope-from ) for ; Tue, 15 Mar 2022 14:22:56 +0100 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 sEJJMjCTMGI9NgEAG6o9tA (envelope-from ) for ; Tue, 15 Mar 2022 14:22:56 +0100 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 7C7F433C3A for ; Tue, 15 Mar 2022 14:22:56 +0100 (CET) Received: from localhost ([::1]:53586 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nU78Y-0000Tn-CQ for larch@yhetil.org; Tue, 15 Mar 2022 09:22:55 -0400 Received: from eggs.gnu.org ([209.51.188.92]:34756) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nU6qf-0006bu-N2 for emacs-orgmode@gnu.org; Tue, 15 Mar 2022 09:04:30 -0400 Received: from ciao.gmane.io ([116.202.254.214]:46242) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nU6qc-0001bu-Vi for emacs-orgmode@gnu.org; Tue, 15 Mar 2022 09:04:24 -0400 Received: from list by ciao.gmane.io with local (Exim 4.92) (envelope-from ) id 1nU6qa-0004Ey-1c for emacs-orgmode@gnu.org; Tue, 15 Mar 2022 14:04:20 +0100 X-Injected-Via-Gmane: http://gmane.org/ To: emacs-orgmode@gnu.org From: Max Nikulin Subject: Re: ox-publish: Some starting problems Date: Tue, 15 Mar 2022 20:04:13 +0700 Message-ID: References: <4f18b7eac091dd14cfaf5ed10e7c63ed@posteo.de> <7395938a0e6b06139239bc70ba7c2b19@posteo.de> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.5.0 Content-Language: en-US In-Reply-To: <7395938a0e6b06139239bc70ba7c2b19@posteo.de> Received-SPF: pass client-ip=116.202.254.214; envelope-from=geo-emacs-orgmode@m.gmane-mx.org; helo=ciao.gmane.io X-Spam_score_int: 28 X-Spam_score: 2.8 X-Spam_bar: ++ X-Spam_report: (2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_ADSP_CUSTOM_MED=0.001, FORGED_GMAIL_RCVD=1, FORGED_MUA_MOZILLA=2.309, FREEMAIL_FORGED_FROMDOMAIN=0.249, FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.249, NICE_REPLY_A=-0.001, NML_ADSP_CUSTOM_MED=0.9, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=no 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" X-Migadu-Flow: FLOW_IN X-Migadu-To: larch@yhetil.org X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1647350576; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post; bh=6khe31sFmu1FUQ95QehN1kKLyEfPxVHZmVtOfpUxr8g=; b=g/mwZWjo68XO7cscRMglIlPovIPLPLR0lFx09S8toUwWXromHAHT5ajAVDfswF+JgTayF6 7lresmecRu6UwMhdGsgyGiHtCrZqrlKLkPQi20gjxGZjhEVaxPE5NQo58Y4icST6DuIq4H ta8JUmkwlM5WciixvXjlHFypsLeiyPgHCGvwRLGKxfg6JMCY1pS8pmsmIcE3YM21hjrC3/ 0deCsRY/fcxKDEfdA+qQj+BfQ9q3hE4eoVkuK5u/SfL5RrjYfS8B0QlWu5qPh9eVFEYg8V +kGKrcqJ9xNNFi2T0Uf1eh3pBNPxV41uT/Htd9IYIVw/qnxaQXkZKUpu671eBA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1647350576; a=rsa-sha256; cv=none; b=dIGIcozkrLHcZ5M6u456jKBRNqtCjIMgHlw2fZxtdnwaQRJAZEldT6xNYOwp/Urdx2ais8 yzaF5YFHQ/43dWuuZ9szDCFMsAY9bRSvmcOd9/tdQRGQkCLEWxsjKmAhGm8J2zP2SVekEG X0Lb1JXrYqTe/917kwlAWdn4yASxL2OjznK989ThuF1rLODH4cQFpnHRfmvGiD218XHMTj +ojlK7+0nPffNlDw/DCJNklZZ8blVRRZDDAUnnbDpbEaoaPL8vvjhus7WXI96zEib4lk3+ 2QcKK93AKillCNXvKNbJTCHYwRVNdbbo5/tZ89/RawCY3CwY9njCIEeq1kWKOQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; dmarc=fail reason="SPF not aligned (relaxed), No valid DKIM" header.from=gmail.com (policy=none); 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-Spam-Score: 2.03 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=fail reason="SPF not aligned (relaxed), No valid DKIM" header.from=gmail.com (policy=none); 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: 7C7F433C3A X-Spam-Score: 2.03 X-Migadu-Scanner: scn0.migadu.com X-TUID: GXwx77O5nIE4 On 09/03/2022 23:39, c.buhtz@posteo.jp wrote: > Am 09.03.2022 16:32 schrieb Max Nikulin: > > Do you mean that (setq org-export-with-broken-links 'mark) is the same > as :with-broken-links mark? This are just two different ways to set the > same thing? > How do I know as a newbie? ;) I suggested you to have a look at the `org-export-options-alist' definition in ox.el in another thread. It is reasonable to have a per-file setting (that you do not like), a per-project one, and a global variable that determines behavior when neither project nor file specify desired value. I recommended to set only one of them (at the beginning) to avoid confusion due to e.g. typos when it is uncertain which value is really active. > Why using custom-set variables here? Is there something wrong with just > doing > (org-export-with-broken-links t) Likely you mean (setq org-export-with-broken-links t) You were trying to set incorrect value with quotes around "mark". Easy customization interface helps to avoid such problems. There are custom variables with :set attribute that may behave incorrectly with `setq'. >> There is a known problem with id links. They may be broken if they >> lead to another file: >> inkbottle. org-id with ox-html. Sat, 14 Aug 2021 00:28:35 +0200 >> https://list.orgmode.org/4617246.m1MCmUpgFQ@pluto/ > > Back to the bug. > The bug-thread is hard for me to understand because of a lot of internal > details. What is the current essence? Currently there is no way to use > ox-publish with org-roam-v2 generated org files which use IDs as links? > But as I told sometimes the links are generated. I can say nothing concerning org-roam. I can reproduce the problem with pure org-publish, but I have not tried to find a workaround. I am using CUSTOM_ID links with some mnemonics in anchors (and I am aware that such links become broken when a heading is refiled to another file). > Btw: Also in my minimal working example I was not able to surly > reproduce the problem. Sometimes it works sometimes not. I also deleted > ~/.emacs.d/org-roam.db, ~/.org-timestamps and ~/.emacs-d/.orgid-indexes > (I forget the correct name for the latter). Org-publish regenerates files only for the sources that were modified (by default). Unchanged files may have links to the updated ones. Originally ox (org-export) assigns random anchors, but org-publish caches them in some file to avoid broken links after partial updates. It may affect behavior for consecutive runs. >> org-mode is a mode, ox-publish maybe a package (actually unsure). > I thought it was a separate thing because of "(require ox-publish)". > Again: How do I as a newbie know? org-mode as a major mode consists of a lot of packages. See e.g. https://www.gnu.org/software/emacs/manual/html_node/emacs/Modes.html >> That page specifies related global variable, so you can try >> `describe-variable' C-h v with the related name. > > I know that and I did. But this is waste of time when I have to do this > for each of the variable in that big list. When you are reading info "(org) Publishing options" https://orgmode.org/manual/Publishing-options.html, it is assumed that you are already familiar with info "(org) Export Settings" https://orgmode.org/manual/Export-Settings.html earlier section. When you are reading the manual inside Emacs, you can hit C-h v having cursor on the variable name. The only issue is that the package should be loaded (M-x load-library RET ox RET). >>> 6. >>> Is there a way to integrated backlinks into output? >> >> Do you mean something specific to org-roam? > > I am not sure but maybe yes. ;) > I can do C-c n l which invokes org-roam-buffer-toogle and shows me an > extra buffer with a list of all nodes (org-files?) which are linking to > the current open node. It is better to discuss with the org-roam community or the developers.