all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Jean Louis <bugs@gnu.support>
To: Eduardo Ochs <eduardoochs@gmail.com>
Cc: emacs-orgmode@gnu.org
Subject: Re: Export Org with Org concept -- Re: Problems with C-c C-e file.org,
Date: Wed, 4 Jan 2023 20:51:03 +0300	[thread overview]
Message-ID: <Y7W8h9MaezvE3nTS@protected.localdomain> (raw)
In-Reply-To: <CADs++6im8cvXkfoPN-cV8KqYsMoz85WrEvzk1h=NHqeErpV6DQ@mail.gmail.com>

> Can you send to me - here to the mailing list - a version of
> `org-export-dispatch', and also of other functions if needed, in which
> the parts that call `read-char-exclusive' are replaced by something
> non-blocking?

There is no Org version of menu that does not block. That it is there
is due to initial notion that some functions should be run on single
key, which is not bad in itself. Then people followed and continued
developing on that foundation creating tangled functions.

(find-function 'org-export--dispatch-ui)

So in Org, currently, there is only the blocking way. Functions in Org
Export or Org Agenda, can't be inspected interactively by using
commands like {C-h k}, you can inspect sources directly.

What you are asking is what my package offers:

GNU Emacs package: rcd-org-export.el -- use Org to export Org:
https://gnu.support/gnu-emacs/packages/GNU-Emacs-package-rcd-org-export-el-use-Org-to-export-Org-76272.html

You may inspect how functions look like:
(find-function 'org-html-export-as-html)

Then description:

org-html-export-as-html is an autoloaded interactive byte-compiled
Lisp function in ‘ox-html.el’.

(org-html-export-as-html &optional ASYNC SUBTREEP VISIBLE-ONLY
BODY-ONLY EXT-PLIST)

Basically ASYNC, SUBTREEP, VISIBLE-ONLY and BODY-ONLY are expected to
be either NON-NIL or NIL, and by using those switches, you use the
function to export.

What the function:

(find-function 'org-export--dispatch-ui) 

does is making sure to "highlight" (irony) when user press this or
that key, like when user press the highlighted "h", that then the
subsequent key like "H" appears highlighted, indicating to user that
after pressing first key, there are just few other options left.

Then in general Org Export works like this:

First the underlying information:

- It recognizes which export are available. What is worse, because of
  the not well taught design every OTHER package for Org export lean
  on the same blocking interface foundation, and keep adding to it!

  This is because developers of extensions for Emacs do not have other
  choice, or their package would not be included in
  org-export-dispatch

  Bad design, dictates more bad design.

  And if you ask me, of course that even simple change to interface
  creates havoc in all of those known and unknown Org export packages.

  Then there is the Org Broom that makes sure some apparently large,
  objectively small problems, end up under the carpet.

Then visibly what Org Export does for user is following:

- Show to user options to toggle variables like ASYNC, SUBTREEP,
  VISIBLE-ONLY, BODY-ONLY, they are supposed to be handled in real
  time. 

- Recognize which various exports among hundreds of them are available
  and display them for user to press one among hundreds of possible
  key combinations

- Then export function is invoked with paramenters ASYNC SUBTREEP
  VISIBLE-ONLY BODY-ONLY EXT-PLIST, while some exports not support all
  of them

To develop export library requires adapting to previously embedded or
hard coded expectation of mainstream Org. 

Notion is now that the interface will be changed to transient, which
does something similar more or less. I don't know of mouse support in
transient, but what I have seen, it does not look like it.

For you to make eev based export is easy, just toggling of variables
and recognizing which export options are there, generating temporary
eev buffers as usual.

Objective reality points
------------------------

- Within Emacs there are many multi key commands. If user wish to see
  which key follows which key, can use packages like `which-key' or
  similar. 

  Thus, it is superficial to involve some kind of highlighting single
  keys. That idea could have work very good for developer who made
  it. If I get used to it and acquire habit of it, I will keep using
  it and develop more by same principle.
  
- That toggling variables need blocking screen is not coherent, as it
  doesn't. A derived mode may define any keys, and instead of "C-b"
  there can be simply "b" for "body-only" toggling. 

- Using control key, like C-b, to toggle variables makes sense only in
  writable buffers.

- For each single export users are forced by design to again click
  "C-c C-e" and again invoke "h H" or other similar functions. This
  fact alone makes Org less usable.

- Using emacsclient during Org Export is not feasible.

- Emacs get blocked.

- It ignores mouse and normal keyboard movements, it blocks Emacs and
  invoking emacsclient during Org Export or Org Agenda gives
  surprising impossible looking effects; this will not change with
  transient adoption.

- Usability get forgotten.

- Package RCD Org Export, proves, that export screen may remain all the
  time visible, without blocking Emacs, and user may within seconds
  export to various different formats.

-- 
Jean

Take action in Free Software Foundation campaigns:
https://www.fsf.org/campaigns

In support of Richard M. Stallman
https://stallmansupport.org/


  parent reply	other threads:[~2023-01-04 18:05 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
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 [this message]
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

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

  git send-email \
    --in-reply-to=Y7W8h9MaezvE3nTS@protected.localdomain \
    --to=bugs@gnu.support \
    --cc=eduardoochs@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    /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 external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.