unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* Calling internal-default-process-sentinel from another sentinel?
@ 2020-11-18 13:28 Štěpán Němec
  2020-11-18 14:19 ` Stefan Monnier
  0 siblings, 1 reply; 5+ messages in thread
From: Štěpán Němec @ 2020-11-18 13:28 UTC (permalink / raw
  To: emacs-devel


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



^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2020-11-18 15:12 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-11-18 13:28 Calling internal-default-process-sentinel from another sentinel? Štěpán Němec
2020-11-18 14:19 ` 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

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.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).