From: "Štěpán Němec" <stepnem@gmail.com>
To: emacs-devel@gnu.org
Subject: Calling internal-default-process-sentinel from another sentinel?
Date: Wed, 18 Nov 2020 14:28:06 +0100 [thread overview]
Message-ID: <87sg966bh5.fsf@gmail.com> (raw)
For an asynchronous process I'd like to preserve the default sentinel
behaviour (insert a status message into the process's buffer, if there
is one), and only in one particular case (successful completion) add
some other functionality (follow up with a custom action).
Such a use case doesn't seem uncommon and simply calling
'internal-default-process-sentinel' from a custom sentinel would seem a
good solution, but the "internal-" prefix or the fact that such usage is
completely absent from Emacs core and very rare even in 3rd party
code[1] don't inspire confidence.
I'd appreciate advice or opinions on whether reusing
internal-default-process-sentinel is acceptable or if there are good
alternatives other than emulating its behaviour manually in the custom
sentinel.
Thank you,
Štěpán
[1] As indicated e.g. by https://github.com/search?q=internal-default-process-sentinel+language%3A%22Emacs+Lisp%22&type=Code
next reply other threads:[~2020-11-18 13:28 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-11-18 13:28 Štěpán Němec [this message]
2020-11-18 14:19 ` Calling internal-default-process-sentinel from another sentinel? Stefan Monnier
2020-11-18 14:37 ` Štěpán Němec
2020-11-18 14:44 ` Stefan Monnier
2020-11-18 15:12 ` Štěpán Němec
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=87sg966bh5.fsf@gmail.com \
--to=stepnem@gmail.com \
--cc=emacs-devel@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.