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 ms5.migadu.com with LMTPS id oELmNk7wtmNlBwAAbAwnHQ (envelope-from ) for ; Thu, 05 Jan 2023 16:44:14 +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 YOLbNk7wtmPzMwEA9RJhRA (envelope-from ) for ; Thu, 05 Jan 2023 16:44:14 +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 D85AD2E150 for ; Thu, 5 Jan 2023 16:44:13 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pDSOu-0001uT-71; Thu, 05 Jan 2023 10:43:28 -0500 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 1pDSOs-0001uF-Ty for emacs-orgmode@gnu.org; Thu, 05 Jan 2023 10:43:26 -0500 Received: from mail-io1-xd2e.google.com ([2607:f8b0:4864:20::d2e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pDSOq-0003Es-R1 for emacs-orgmode@gnu.org; Thu, 05 Jan 2023 10:43:26 -0500 Received: by mail-io1-xd2e.google.com with SMTP id v2so19680668ioe.4 for ; Thu, 05 Jan 2023 07:43:24 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=x95EZhh2ODM26H/Ifk+wv8n5efOqjoXhn4/Bb692qIA=; b=cOkUVlejYqHaIpG814gZR3EG1FfoSfOksISDDuI6h1XY/ZhQkHGgbtzjKIpRKoqzdk KZ+DV7WMBT9OgYLDuaJfYnPBKcHhha0QOwerlPLlKPASpa74FVX/BgBV9lwRgJ7zK093 4hhQjWtIan1/tQEJCFu58JxhIfNovrhdIhdqUbhnUOuJ/HejwcVO/VOprKNehpUfmVpa ha2t5mrEnxl/GQv0j3vYKsPiLm3qEKPCzn6MTL6Tn7uuLBM3cHwN7GDyfXhkJlVdOYyP zv5KNusU147mSM9Tjrx6rbiEJysVqiQ29r9eVzSwCLjcvSyrjKwuXsH0d53ZOU4jo5Vq Wo3w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=x95EZhh2ODM26H/Ifk+wv8n5efOqjoXhn4/Bb692qIA=; b=hHvuU6/DSGXbEZeDEvqsjmQea0Uy8NnAR1M9dXQ9Bd4yAy0dEY5M5kms5s4OWR4YYa MEOp09YxDjXbHRIDOKP/psmjBd80t4adBMaLstolPpQ8QghAXyF+xe1mHfOK6UU6iPad eRZ6FsZhkAEPCcKITQNkpTMtHUS9ieYPuidgMz7/CVNcQllHvH4T6HYzqLhZHk9aNfA3 LpJxiy4Zymn3dva+PPqHY8p5bmK23fiCLMyzVEhDeFsgO7peHToWlyMrFpuA+fwIU4/8 6iaZZ2Ybs+SD8/jZPJ/0HDJ5L6tV1oPHsSULNXUCudIKCLZ3RHAIj5nVVvPvM90L4X7+ 8GuA== X-Gm-Message-State: AFqh2kqYsvklY1OWA0mkU0h77ved99i15q8OEy1IgVYAO7qF9EAqZlVq TnSZyJWPY2sanwLWToM7oEtkW5z61Xec3Ew7R1k= X-Google-Smtp-Source: AMrXdXsJ+bdTOnhr3KZy5Trfa/059nl7ubWhHoQAwEf6FueomA5BSTloOdILpIIEWASdq5NlAST3XhMN3bHsYErCi/k= X-Received: by 2002:a05:6638:11d2:b0:38a:ba79:4333 with SMTP id g18-20020a05663811d200b0038aba794333mr4375614jas.320.1672933403444; Thu, 05 Jan 2023 07:43:23 -0800 (PST) MIME-Version: 1.0 References: <878rj469sk.fsf@localhost> <877cy673ot.fsf@localhost> <87edsckkym.fsf@localhost> <871qo9fdec.fsf@localhost> In-Reply-To: <871qo9fdec.fsf@localhost> From: Eduardo Ochs Date: Thu, 5 Jan 2023 12:43:11 -0300 Message-ID: Subject: Re: Export Org with Org concept -- Re: Problems with C-c C-e file.org, To: Ihor Radchenko Cc: Max Nikulin , Org Mode Content-Type: text/plain; charset="UTF-8" Received-SPF: pass client-ip=2607:f8b0:4864:20::d2e; envelope-from=eduardoochs@gmail.com; helo=mail-io1-xd2e.google.com X-Spam_score_int: -19 X-Spam_score: -2.0 X-Spam_bar: -- X-Spam_report: (-2.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_FROM=0.001, GAPPY_SUBJECT=0.1, RCVD_IN_DNSWL_NONE=-0.0001, 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.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=1672933454; 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=x95EZhh2ODM26H/Ifk+wv8n5efOqjoXhn4/Bb692qIA=; b=OjDwhKdkCq8P82M2/X3V73zFgtgb7alQruLDCH0WPhR1VaSzP9/03ZHfBXJt/04DI0Updy PmQtY6bWgujZ6klyIk4L/tc5KXgdq9ABkwId+wOvnr6ARdqvcf6caidHsENxAt4XXY82rG K/+svLH3Ws1KnNGSEp8wPgtQH5hpjT9P1SW2YcFIc5HqDEYsekXzqA6GexKiR0o99NeaNt oUHmtH9l3ukKwI9172DUAirnspgBcTT08cOxd9oJdnR8ULjWupQAtQ8jAQW9RgYCRHALlK /Bzs8U2J72cCkwQ5cj/AZf/5T9I0OEDsX9dKXKUXXOsmgcZ2iGScZlKvDFQzMg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=cOkUVlej; 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"; dmarc=pass (policy=none) header.from=gmail.com ARC-Seal: i=1; s=key1; d=yhetil.org; t=1672933454; a=rsa-sha256; cv=none; b=RxPQ5ayqUzdzvOxqHTqp81MnY5UyzlZSEr41jEKAkCOzzk138S/n1A4G9S8SEN7teEcK+K zAefvcvR8MI4cWg2kVHStGdmgN2T3Xsf8YnhzUsqab5uRf9OcxVXB6muQ0vMfIFvxdW/y9 vyXoSMlPlv4OCEL0PRFRMch5gL70OSPii8fOo8ONWu/FO4OO5acq4WZpMWtJVNGeKITf0u 3E6XoJxdt2APZ00iK16UJSaq7v2bVsYm6Jvjnb27I3ySmPK+d/STsJQ2RPXBvWZpNZd8uH iOLX1pW/TiRsHYaHdg7S1sJfDtRT9o0ze6thDSd1YTs1uIW6Kr9qpHBO1NPuzw== X-Spam-Score: -4.17 X-Migadu-Queue-Id: D85AD2E150 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=cOkUVlej; 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"; dmarc=pass (policy=none) header.from=gmail.com X-Migadu-Scanner: scn1.migadu.com X-Migadu-Spam-Score: -4.17 X-TUID: JznBOU4pvc66 On Thu, 5 Jan 2023 at 08:06, Ihor Radchenko wrote: > > Eduardo Ochs writes: > > > sorry, I thought that that would be something like a 5-line change... =( > > > > A few messages again I mentioned that one of my plans for these holidays > > was to learn several techniques for debugging elisp that I've postponing > > learning for ages. I'll do that and then I'll try solving this problem > > again. > > One way could be M-x debug-on-entry read-char-exclusive and > then running the dispatcher. This will pause Elisp execution and leave > the export menu buffer actionable. > > However, I doubt that you can make much use of the buffer itself - it is > nothing but text. You need to read the source to understand the logic. > You can use the source code links Jean provided. Hi Ihor, thanks, good idea! A few days ago I had a similar idea, but mine was worse... I found, by running this, (find-orggrep "grep --color=auto -nH --null -e read-char-exclusive *.el") that `read-char-exclusive' appears in 29 places in the Org source, and I was thinking of replacing some of them by a `my-read-char-exclusive', and then set a breakpoint in `my-read-char-exclusive'... I have just tried running this in an Org file, (debug-on-entry 'read-char-exclusive) (eek "C-c C-e") (cancel-debug-on-entry 'read-char-exclusive) and after running the first two sexps above with my favorite variant of `C-x C-e' the backtrace showed me that this (find-efunction 'org-export--dispatch-action "read-char-exclusive") is the occurrence that matters - the one inside `org-export--dispatch-action'. I'll play more with that soon! Cheers =), Eduardo Ochs http://angg.twu.net/#eev