From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: =?utf-8?B?xaB0xJtww6FuIE7Em21lYw==?= Newsgroups: gmane.emacs.devel Subject: Calling internal-default-process-sentinel from another sentinel? Date: Wed, 18 Nov 2020 14:28:06 +0100 Message-ID: <87sg966bh5.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="34587"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Notmuch/0.31 (https://notmuchmail.org) Emacs/28.0.50 (x86_64-pc-linux-gnu) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Wed Nov 18 14:29:23 2020 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kfNWT-0008qt-G5 for ged-emacs-devel@m.gmane-mx.org; Wed, 18 Nov 2020 14:29:21 +0100 Original-Received: from localhost ([::1]:37634 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kfNWS-0007Re-IZ for ged-emacs-devel@m.gmane-mx.org; Wed, 18 Nov 2020 08:29:20 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:34862) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kfNSg-00047E-L0 for emacs-devel@gnu.org; Wed, 18 Nov 2020 08:25:27 -0500 Original-Received: from mail-ej1-x632.google.com ([2a00:1450:4864:20::632]:46906) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kfNSZ-0002a0-F6 for emacs-devel@gnu.org; Wed, 18 Nov 2020 08:25:25 -0500 Original-Received: by mail-ej1-x632.google.com with SMTP id w13so2686539eju.13 for ; Wed, 18 Nov 2020 05:25:14 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:subject:user-agent:date:message-id:mime-version :content-transfer-encoding; bh=drE677dWOoCGP5c7kvyvwjzUhg0pozoeQutqjpVdIEY=; b=R6zYwlrFhKNYrC6i4eTQekyZluf5Bj+id5yi5fvDf0+TDogXubqkgqXe4daaXPLi01 G55XswOlzu5y/Uur9gEiZ4PbfB5EItHZ2Yz7fYCZVca1KoT6jwePSzobpt3tFi6gQkKm L9pmvywy+NO1eyUY+d7EkgYLYzB0vcr6VILkAfoYl9ubCoyJoZYTCApxrBiawhBnzw1q nzMY11KiLPCcNfMGqYHSACgIVy9mc+RvW6jNaYDQ34KpaGeHMe7LCaSwKui0LZ6Y86Uq 6v2dnVlWairsKLyK0atWsUjca/PoD8itQky3WFMKM02CawZj2JF2hmtGislnWt6pYPp7 zzzw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:user-agent:date:message-id :mime-version:content-transfer-encoding; bh=drE677dWOoCGP5c7kvyvwjzUhg0pozoeQutqjpVdIEY=; b=Vm3zGFye3AEcaVyzIyL6Tz9TW2dWZRsSyR3lZvBu39IgkIL7/IUcj1z6uyG88ytP5z g3TpctP15VJrDBbDuda7pAgzkFArnC+4i3CEJ4eIgv7xOfY/1w/GOfrOKIGIFRmDrINn 0GO6EmBEPMnfpiVK4CsDJWiFVG6kWR7Pre+pvJLz3jPHFVkGM9Ado9pb8hEo58SBs511 52tvx3X1Rb14BNGn6UH037GVOXwZ3SYmqJzGLGaol6yGObsBOZ4yYJ/J/KQ2OpguwaZU ShBxhhcVD13/8vevkk/9X45judAMh2DcBm6hu1n2v3xVyQdTkHYtJovChkevtpXdhS9s pi9Q== X-Gm-Message-State: AOAM531cBHq46xMzyKAYKC3l03m1gi2azoscfyjD+zmfwZ7AeO1DCFpZ EXXDe2QhvF+JLLmkrKd5weZmeSWHgiI= X-Google-Smtp-Source: ABdhPJwlYk7elteBAMRkUhY0Wv9zElEnrh5t9FBpe1KbG7kiVR6xURsnxRS5ooI0M0V3JI81WFUiHQ== X-Received: by 2002:a17:906:c298:: with SMTP id r24mr6308794ejz.381.1605705912744; Wed, 18 Nov 2020 05:25:12 -0800 (PST) Original-Received: from localhost ([185.112.167.39]) by smtp.gmail.com with ESMTPSA id q14sm13295994eds.80.2020.11.18.05.25.11 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 18 Nov 2020 05:25:12 -0800 (PST) Received-SPF: pass client-ip=2a00:1450:4864:20::632; envelope-from=stepnem@gmail.com; helo=mail-ej1-x632.google.com X-detected-operating-system: by eggs.gnu.org: No matching host in p0f cache. That's all we know. X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:259340 Archived-At: 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, =C5=A0t=C4=9Bp=C3=A1n [1] As indicated e.g. by https://github.com/search?q=3Dinternal-default-pro= cess-sentinel+language%3A%22Emacs+Lisp%22&type=3DCode