emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Eduardo Ochs <eduardoochs@gmail.com>
To: Ihor Radchenko <yantar92@posteo.net>
Cc: Max Nikulin <manikulin@gmail.com>, Org Mode <emacs-orgmode@gnu.org>
Subject: Re: Export Org with Org concept -- Re: Problems with C-c C-e file.org,
Date: Thu, 5 Jan 2023 12:43:11 -0300	[thread overview]
Message-ID: <CADs++6hQOm=qvA4B6T1hRQSjf4i4b1e9KqQfYh=DqdiawDywBg@mail.gmail.com> (raw)
In-Reply-To: <871qo9fdec.fsf@localhost>

On Thu, 5 Jan 2023 at 08:06, Ihor Radchenko <yantar92@posteo.net> wrote:
>
> Eduardo Ochs <eduardoochs@gmail.com> 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 <RET> read-char-exclusive <RET> 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


  parent reply	other threads:[~2023-01-05 15:44 UTC|newest]

Thread overview: 43+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-12-17 20:57 Problems with C-c C-e file.org andre duarte bueno
2022-12-18 14:55 ` Ihor Radchenko
2022-12-19 21:10   ` Export Org with Org concept -- Re: Problems with C-c C-e file.org, Jean Louis
2022-12-25 12:06     ` Ihor Radchenko
2022-12-25 15:43       ` Jean Louis
2022-12-26 10:04         ` Ihor Radchenko
2022-12-26 15:58           ` Jean Louis
2022-12-27 10:46             ` Ihor Radchenko
2022-12-31  1:08     ` Eduardo Ochs
2022-12-31  6:19       ` Jean Louis
2023-01-01 14:02       ` Ihor Radchenko
2023-01-02  5:58         ` Eduardo Ochs
2023-01-02 11:07           ` Jean Louis
2023-01-03  9:48           ` Ihor Radchenko
2023-01-03 10:01             ` Eduardo Ochs
2023-01-03 12:15               ` Max Nikulin
2023-01-03 12:36                 ` Eduardo Ochs
2023-01-05 11:07                   ` Ihor Radchenko
2023-01-05 14:41                     ` Alain.Cochard
2023-01-05 15:00                       ` Max Nikulin
2023-01-05 15:18                         ` Alain.Cochard
2023-01-05 20:37                           ` Eduardo Ochs
2023-01-05 18:50                       ` Jean Louis
2023-01-05 15:43                     ` Eduardo Ochs [this message]
2023-01-04 11:08                 ` Jean Louis
2023-01-05 11:16                   ` Ihor Radchenko
2023-01-05 19:19                     ` Jean Louis
2023-01-06  3:51                       ` Max Nikulin
2023-01-07  9:04                       ` Ihor Radchenko
2023-01-07 18:34                         ` Jean Louis
2023-01-07 19:12                         ` Jean Louis
2023-01-12 15:43                         ` Max Nikulin
2023-01-13  9:41                           ` Ihor Radchenko
2023-01-04 18:03                 ` Jean Louis
2023-01-05 11:17                   ` Ihor Radchenko
2023-01-05 19:37                     ` Jean Louis
2023-01-06  3:24                       ` Max Nikulin
2023-01-07 20:07                         ` Jean Louis
2023-01-08 16:42                           ` Max Nikulin
2023-01-07  9:09                       ` Ihor Radchenko
2023-01-04 17:51               ` Jean Louis
2023-01-04 16:53           ` Jean Louis
2022-12-20 16:56 ` Problems with C-c C-e file.org Jean Louis

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CADs++6hQOm=qvA4B6T1hRQSjf4i4b1e9KqQfYh=DqdiawDywBg@mail.gmail.com' \
    --to=eduardoochs@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=manikulin@gmail.com \
    --cc=yantar92@posteo.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).