From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id cKV8GLiEAmKKXgAAgWs5BA (envelope-from ) for ; Tue, 08 Feb 2022 15:56:56 +0100 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id 4DviFbiEAmKOyQAA9RJhRA (envelope-from ) for ; Tue, 08 Feb 2022 15:56: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 2347A1FB72 for ; Tue, 8 Feb 2022 15:56:56 +0100 (CET) Received: from localhost ([::1]:39390 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nHRvL-0005aO-6l for larch@yhetil.org; Tue, 08 Feb 2022 09:56:55 -0500 Received: from eggs.gnu.org ([209.51.188.92]:35448) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nHQeM-0007L2-5Q for emacs-orgmode@gnu.org; Tue, 08 Feb 2022 08:35:19 -0500 Received: from [2a00:1450:4864:20::22b] (port=45902 helo=mail-lj1-x22b.google.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nHQe8-0004gb-RI for emacs-orgmode@gnu.org; Tue, 08 Feb 2022 08:35:06 -0500 Received: by mail-lj1-x22b.google.com with SMTP id k18so12456650lji.12 for ; Tue, 08 Feb 2022 05:35:03 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:in-reply-to:references:date:message-id :mime-version; bh=oxaDANGwqmlKpJAymEbpouYR9/cipxHBqjM6ca83YD4=; b=U+tkC6X4YdXUmsBCXyse0cSmjcPMq8cbDmz55rDons41FiOJHyzzpMksiQNB4eL5yG vaGQ4TpBbRTg6cIEMm9JP/ZNNi68oMViHzjR2+Cwoj2+0OwqzBmHIMqOPzmaeQFYrUTJ uvPffzV4lRKVXLcpwr4DoiGAe1lmmMDrgTY5eBpeBNT2BLVqU3DZriW8PoC8E8UUbMt4 JetnuDwNhJ286un+Gt7NuKnQLLgNxXJXBQaDQlsTiW4teUgjopLDttK5qsxq/JZqrWyI ywAV8Ny3XtImHo9HgFUfzq+W1eQkh3/ziVK905s9N770HOaRfvkXt0Dwpd11F60X53sd jCtw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:in-reply-to:references:date :message-id:mime-version; bh=oxaDANGwqmlKpJAymEbpouYR9/cipxHBqjM6ca83YD4=; b=NtSGKtT/mBDTKmdVdCLbw++DpuFodnAfg6iuCa5lon8tWuMJrX2lWv5MqXQrKsrrsI rlZS98xLfIv+S2CGNx56c33pSPrGZUH+uhqV1psltSKeWdml6gc0tN8c5CvzamJVwcVW l9tNemhMwtNOPvvcVHzdA6Z/ZWbJGYNqCyFus951a40gE4ms5q9q4WJQqTlnXm635udm Jafj7svJuKu5RGHNM/jknu2GpAnF0HC/LuLA6CbzipFPSQ0h/WdREVQmYBWu+ERkXMTT h4R3YVbpKGhIh6VKdGZkOXX4PBasi0emCRaa23tIdVS2oCl1c3i8YufRiquKZh55xuKm TtDQ== X-Gm-Message-State: AOAM530z9Zbd4HlZTY8UFkdXvfDg0r0/RLC86hzmIJ0T2TFM+hOYY9vS vvk4L8KRq/vKtBPq906F3xE= X-Google-Smtp-Source: ABdhPJyKUST94DY+9zly8KXRKgwchYPNgLeTUv5KZcWKghwmFCXesRXh47He0OJzbuI0VqDWlFr9Nw== X-Received: by 2002:a2e:2ac1:: with SMTP id q184mr2861666ljq.360.1644327302393; Tue, 08 Feb 2022 05:35:02 -0800 (PST) Received: from localhost ([91.210.107.150]) by smtp.gmail.com with ESMTPSA id g19sm2068254ljm.135.2022.02.08.05.35.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 08 Feb 2022 05:35:01 -0800 (PST) From: Ihor Radchenko To: Eduardo Ochs Subject: Re: Org for non-users, part 2: `C-c C-e', a.k.a. `org-export-dispatch' In-Reply-To: References: <87leym3hg1.fsf@localhost> Date: Tue, 08 Feb 2022 21:40:06 +0800 Message-ID: <87zgn1sci1.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain X-Host-Lookup-Failed: Reverse DNS lookup failed for 2a00:1450:4864:20::22b (failed) Received-SPF: pass client-ip=2a00:1450:4864:20::22b; envelope-from=yantar92@gmail.com; helo=mail-lj1-x22b.google.com X-Spam_score_int: -9 X-Spam_score: -1.0 X-Spam_bar: - X-Spam_report: (-1.0 / 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_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, GAPPY_SUBJECT=0.1, PDS_HP_HELO_NORDNS=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RDNS_NONE=0.793, 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: , Cc: Org Mode Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Migadu-Flow: FLOW_IN X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1644332216; 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=oxaDANGwqmlKpJAymEbpouYR9/cipxHBqjM6ca83YD4=; b=e+Xt002giJ0JTr6hrb2gOkDkl8GHzwNsu0wUaUANraGeYFS0jIAt1oK9KGdBGf3anSaMMP HiG+woaFl2TAQDTD0Q2Dx+SpYdPbBSPegRsuM9+bIeAcKdr2a0o/YC5EkeI9yPnWYAPu4e Y4cxpWhhckLPXwJRElOpPyGjdRxu/HtYnRP0n2j8g5RPCJkOuQwKQnTQ9NcR5IgOQr2uip nQuB/tEo+pC2mr4sZENqBAqul0mnYb6ea+mIn+sQWlJsBr8jCBJaS2OfODOg3XzWcvY0T3 JpdWVbqYBHHXGyRhps+neQcOyl+/jgOiJCej3l1MUYsZS43+Z8kbrQ9zu5Druw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1644332216; a=rsa-sha256; cv=none; b=XqocNMG67uy9YH0IoPzQGdQMkyCgU6D+K9hJd8JlK848HfRNh6QtWvtG+efRAKTteFg18Z YJv0J9tvGnXMjK4oRfykN/mJ3MZ65kZCn4hv/ExnzDqC+v0N4gUy3BfTiieLNUqbz1Fd1/ wNJKIZcOEOe2W0/AxIOUYsHnvg6nou/ZxdvIsIrqAglRyTTvKALyt0xJsrDUNHw5TdIVIf 6z/1pu/Jd6yCEhTsI0AugmSB5mOq6hxM3kGppGgWXS6Ysh2s/e231TIf4TfeDGPLIkYqX1 QN9F19hvePZOro8dyyFGrLIeCxCijlXOl5iIhbOue8N/bkoMjH7aNpL6EyJnew== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=U+tkC6X4; dmarc=pass (policy=none) header.from=gmail.com; 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: -5.33 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=U+tkC6X4; dmarc=pass (policy=none) header.from=gmail.com; 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: 2347A1FB72 X-Spam-Score: -5.33 X-Migadu-Scanner: scn0.migadu.com X-TUID: N6pv3E/CN7aE Eduardo Ochs writes: > On Mon, 7 Feb 2022 at 10:55, Ihor Radchenko wrote: > >> > What are the recommended ways to abort org-export-dispatch without >> > letting it destroy the "*Org Export Dispatcher*" window and its >> > buffer? >> >> You cannot. That window acts similarly to transient, but simpler. You >> can think of *Org Export Disipatcher* as an extended help for >> read-char-exclusive. > What do you mean by "you cannot"? Sorry if I was not clear. I was answering specifically the question you asking. Elaborating: you cannot abort org-export-dispatch without letting it destroy the "*Org Export Dispatcher*" buffer. This is because "*Org Export Dispatcher*" is created inside unwind-protect form like: (unwind-protect (and (get-buffer "*Org Export Dispatcher*") (kill-buffer "*Org Export Dispatcher*"))) Any time you abort org-export-dispatch, the unwind-protect is going to kill the buffer. > I was expecting an answer like this: > > That's difficult to do, but the temporary buffer is generated by the > function `org-foo-bar'... you can try to make a copy of > `org-foo-bar' called `org-foo-bar-hacked-version', add your own > debugging functions to that copy - suggestion: the lines 42 and 99 > are good places for that - and then you can change the function > `org-plic-ploc', that is called by `org-export-dispatch', to make it > call `org-foo-bar-hacked-version' instead of `org-foo-bar'... If your question is about debugging, feel free to M-x debug-on-entry org-export--dispatch-action. That will suspend execution of org-export--dispatch-ui called by org-export-dispatch right after the buffer is created but before Emacs even loop is blocked to read user input. Reading the source code of org-export--dispatch-ui might also help. > One possible meaning of "you cannot" is: > > Org is NOT MEANT to be explored in that way, and this "is not meant > to" is in a very strong sense. The last time that a person gave > technical information of that kind in the mailing list was 4 or 5 > years ago, and we banished her from the community and excommunicated > her. Her name shall not be mentioned. In my reply, "you cannot" referred to you cannot because of technical reasons, as I tried to explain above. You appear to interpret the wording in a strongly negative sense. Note that I was not trying to attack you in any way and I am always trying my best to follow GNU Kind Communication Guidelines [1] in my emails. Also note that my wording might not be ideal. Either because English is not my native language or because I may misinterpret the message I am replying to. [1] https://www.gnu.org/philosophy/kind-communication.html Best, Ihor