unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Tim Landscheidt <tim@tim-landscheidt.de>
To: help-gnu-emacs@gnu.org
Subject: Re: Non file buffers and default-directory
Date: Fri, 28 Apr 2023 02:03:48 +0000	[thread overview]
Message-ID: <87o7n8sqyj.fsf@vagabond.tim-landscheidt.de> (raw)
In-Reply-To: <87r0s5i2cd.fsf@logand.com> (Tomas Hlavaty's message of "Thu, 27 Apr 2023 20:53:22 +0200")

Tomas Hlavaty <tom@logand.com> wrote:

>> Side note: I would love a well-maintained example of an
>> "asynchronous" user interface in Emacs.

> This is easy if you are writing it from scratch.
> It is not easy if you are talking about existing code.

Great, I'm looking for the "easy" one :-).  Any pointers?

>> I have a bunch of shell/Perl/Python scripts that I'd like to
>> convert to Emacs Lisp for a consistent UI that can also be
>> used over SSH.

>> For example, I have a script that plays a podcast's audio
>> file and afterwards asks me if the associated database entry
>> selected from a list of suggestions should be marked as
>> heard (and the file archived).  I also use this as part of
>> sequences, i. e. "$script file1.mp3 && $script file2.mp3".

>> Now in Emacs, I obviously would want to continue to work on
>> something else while the audio is playing in the background.
>> I also don't want that other work to be interrupted in the
>> sense of a blocking minibuffer prompt when the playback has
>> finished.  And I also don't want to accidentally quit Emacs
>> without me being reminded, "hey, that playback has finished,
>> should it be marked as heard?"  And I want that "bit" to be
>> usable as part of a sequence, i. e. after answering the
>> question, the next statement should be executed.

> Why not simply start a separate Emacs process and play the podcasts
> there?

Because then I wouldn't have one Emacs instance, but two (or
more) that I would have to switch between either in Screen
or with a window manager.  I want to have one unified Emacs
"control center" that I don't have to leave and where I can
integrate all aspects of Emacs "life" together, e. g., start
some workflow on an article's body when I read it in Gnus,
queue some other processes when the first one is finished,
feed the output to some other workflow/org-mode task/Gnus
mail, etc.

Tim



  reply	other threads:[~2023-04-28  2:03 UTC|newest]

Thread overview: 58+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-04-18 18:29 Non file buffers and default-directory Manuel Giraud via Users list for the GNU Emacs text editor
2023-04-18 19:12 ` Emanuel Berg
2023-04-19  7:02 ` Michael Albinus
2023-04-19  8:14   ` Manuel Giraud via Users list for the GNU Emacs text editor
2023-04-19 10:48     ` Emanuel Berg
2023-04-19 12:32       ` Manuel Giraud via Users list for the GNU Emacs text editor
2023-04-19 12:48         ` Manuel Giraud via Users list for the GNU Emacs text editor
2023-04-19 15:17     ` Michael Albinus
2023-04-20 15:11       ` Manuel Giraud via Users list for the GNU Emacs text editor
2023-04-20 17:12         ` Emanuel Berg
2023-04-21  6:31           ` Manuel Giraud via Users list for the GNU Emacs text editor
2023-04-23 14:33             ` Emanuel Berg
2023-04-24  7:57               ` Michael Albinus
2023-04-25 12:06                 ` Emanuel Berg
2023-04-21  6:39         ` Marcin Borkowski
2023-04-21  7:16           ` Manuel Giraud via Users list for the GNU Emacs text editor
2023-04-21  8:01           ` Michael Albinus
2023-04-21  9:03             ` Marcin Borkowski
2023-04-21 10:29             ` Manuel Giraud via Users list for the GNU Emacs text editor
2023-04-22  7:08               ` Michael Albinus
2023-04-22 13:56                 ` Manuel Giraud via Users list for the GNU Emacs text editor
2023-04-22 16:36                   ` Eli Zaretskii
2023-04-22 17:33                     ` Manuel Giraud
2023-04-23  7:22                       ` Michael Albinus
2023-04-23  7:46                         ` Eli Zaretskii
2023-04-23 11:24                           ` Manuel Giraud
2023-04-23 12:57                             ` Eli Zaretskii
2023-04-23 11:46                           ` Manuel Giraud via Users list for the GNU Emacs text editor
2023-04-23 13:01                             ` Eli Zaretskii
2023-04-23 14:48                               ` Thread for smtpmail-send-it (was: Non file buffers and default-directory) Manuel Giraud via Users list for the GNU Emacs text editor
2023-04-23 15:56                                 ` Eli Zaretskii
2023-04-25 17:00                               ` Non file buffers and default-directory Manuel Giraud via Users list for the GNU Emacs text editor
2023-04-25 17:27                                 ` Eli Zaretskii
2023-04-25 17:54                                   ` Emanuel Berg
2023-04-27  6:05                                     ` Eli Zaretskii
2023-04-27 19:46                                       ` Emanuel Berg
2023-04-28 11:34                                         ` Eli Zaretskii
2023-05-01  2:10                                           ` Emanuel Berg
2023-05-01 11:20                                             ` tomas
2023-05-01 22:15                                               ` Emanuel Berg
2023-05-04 17:49                                                 ` tomas
2023-05-04 23:26                                                   ` Emanuel Berg
2023-05-01 11:55                                             ` Eli Zaretskii
2023-04-27 10:58                                   ` Manuel Giraud via Users list for the GNU Emacs text editor
2023-04-27 11:14                                     ` Eli Zaretskii
2023-04-27 12:04                                       ` Tim Landscheidt
2023-04-27 12:30                                         ` Eli Zaretskii
2023-04-28  1:08                                           ` Tim Landscheidt
2023-04-27 18:53                                         ` Tomas Hlavaty
2023-04-28  2:03                                           ` Tim Landscheidt [this message]
2023-04-27 15:29                                       ` Manuel Giraud via Users list for the GNU Emacs text editor
2023-04-27 18:52                                     ` Tomas Hlavaty
2023-04-22 17:34                     ` Manuel Giraud via Users list for the GNU Emacs text editor
2023-04-22 17:31                   ` Michael Albinus
2023-04-21 12:54           ` Manuel Giraud via Users list for the GNU Emacs text editor
2023-04-26 17:17         ` Michael Albinus
2023-04-27  9:25           ` Manuel Giraud via Users list for the GNU Emacs text editor
2023-04-19 10:39   ` Emanuel Berg

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.gnu.org/software/emacs/

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

  git send-email \
    --in-reply-to=87o7n8sqyj.fsf@vagabond.tim-landscheidt.de \
    --to=tim@tim-landscheidt.de \
    --cc=help-gnu-emacs@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.
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).