From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.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 QDwUKXusgGTBxQAASxT56A (envelope-from ) for ; Wed, 07 Jun 2023 18:12:43 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id aHERKXusgGQ7SgEA9RJhRA (envelope-from ) for ; Wed, 07 Jun 2023 18:12:43 +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 3D1173EE3C for ; Wed, 7 Jun 2023 18:12:43 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1q6vky-00042C-IF; Wed, 07 Jun 2023 12:11:32 -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 1q6vku-00041w-NB for emacs-orgmode@gnu.org; Wed, 07 Jun 2023 12:11:29 -0400 Received: from chevre.jabatus.fr ([109.234.163.241]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1q6vks-0000Ot-C4 for emacs-orgmode@gnu.org; Wed, 07 Jun 2023 12:11:28 -0400 X-MailPropre-MailScanner-From: victor@svictor.net X-MailPropre-MailScanner-SpamCheck: not spam, SpamAssassin (not cached, score=-25.969, required 5, autolearn=disabled, MED_SPX 1.00, RCVD_IN_DNSWL_HI 0.01, SPF_HELO_NONE 0.00, SPF_PASS -1.50, SUKB_11 0.01, SUKEN_2 0.01, WHLISHOS -25.50) X-MailPropre-MailScanner: Not scanned: please contact your Internet E-Mail Service Provider for details X-MailPropre-MailScanner-ID: 01934E02FE.AAEED X-MailPropre-MailScanner-Information: Please contact the ISP for more information DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=svictor.net ; s=default; h=Content-Transfer-Encoding:Content-Type:MIME-Version:Message-ID :Date:Subject:To:From:Sender:Reply-To:Cc:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: In-Reply-To:References:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=QQD7J9NjjAu4SEqkG3AkXZwlAdTA0SeMWvddDnJYpsg=; b=JMs4HJ4I98gUkP0yByVbBsY0SM KoiiiXfXEv5LFVjz7xeOJEdemb4YtZOqc5Jho+JZ6fjBBFQnPeHqt2sdYuB3sJstig4mGibgD6gft F+4qHc6yq/Vvub4j52twufAzFVLvuw0mWmAm19sOjaxkd35B29FNuQYhrDV0WbTuXoB0=; From: "Victor A. Stoichita" To: Org-mode Subject: problem with org-map-entries and the doc for export hooks Date: Wed, 07 Jun 2023 17:59:04 +0200 Message-ID: <877csf6yva.fsf@svictor.net> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - pam.o2switch.net X-AntiAbuse: Original Domain - gnu.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - svictor.net X-Get-Message-Sender-Via: pam.o2switch.net: authenticated_id: victor@svictor.net X-Authenticated-Sender: pam.o2switch.net: victor@svictor.net X-Source: X-Source-Args: X-Source-Dir: Received-SPF: pass client-ip=109.234.163.241; envelope-from=victor@svictor.net; helo=chevre.jabatus.fr 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, 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-Seal: i=1; s=key1; d=yhetil.org; t=1686154363; a=rsa-sha256; cv=none; b=u+3J+NuWZolEMsx6SkpX8/yZAzl4akdegqV/A4b5OtSXdVzMZc6kQDkVsM8TF2e1hy7ZuH WRXbnI2jwlunqeItD8WRM1sKta+g88QPH2art5Tj3extu08lddw5/bs/Lf68gbnxxzl5DO OAwh4YcJ4dMFjpJAYZcLPUEEMpzB9hfalHUmR72y+kebri3xt/BlLRcs5w4+P8k/A95OYD tRGsSDILtTdz/zz1B2uwgA46GpbIEZTkhyPkYDdwvp5XyNhaac0jYPiktPARY1dvA7eZ/m PKpeMpbp51DSS96JPC5Wf8EneA2w7jEg+7dR5lPhAmBKrR5+w9pZIrwP257G2g== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=svictor.net header.s=default header.b=JMs4HJ4I; dmarc=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" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1686154363; 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:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=QQD7J9NjjAu4SEqkG3AkXZwlAdTA0SeMWvddDnJYpsg=; b=KKfYX255jBzOPWXW3kEgWB3IB0MrcGhgKjbEFd2tRYCG8fZFFbftd6BbT20Pi2lpX26byP tWumrQiqK/9XBKxwzVEH4kUC10zaH1iMXw2TK1ur0vI8FgQ2L5j1hAL6vLR5obg19EW/Xj dLFCQ5SJVEc1skwYoXd8552MCHniJDBgIfvucydXOAjKSMYywsZDvQ8NX4I+gUW7nYfLbU /YS8zQVaP8jYhfNGDEQjCiaYhNgaO9ujdP45oymRhgjSq2VLfzdNi+rbVrf0UhRgZvUSUM zod3Pw4kRVHZPk86jlOaHH0A4Bbv1qed9AksQL6w+GXPBiFTv4lLHZgU5rI2MQ== Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=svictor.net header.s=default header.b=JMs4HJ4I; dmarc=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-Scanner: scn0.migadu.com X-Migadu-Spam-Score: -2.00 X-Spam-Score: -2.00 X-Migadu-Queue-Id: 3D1173EE3C X-TUID: XZigzjGO23yn Greetings all! I=E2=80=99m trying to use the example given here in the manual for "Export hooks": https://orgmode.org/manual/Advanced-Export-Configuration.html --8<---------------cut here---------------start------------->8--- (defun my-headline-removal (backend) "Remove all headlines in the current buffer. BACKEND is the export back-end being used, as a symbol." (org-map-entries (lambda () (delete-region (point) (line-beginning-position 2))))) (add-hook 'org-export-before-parsing-hook #'my-headline-removal) --8<---------------cut here---------------end--------------->8--- However the export process hangs indefinitely emacs after evaluating this. I have to C-g to quit.=20 The same happens with the newer org-export-before-parsing-functions instead of org-export-before-parsing-hook. Is there something else that needs to be updated for the example to work? Regards, Victor