From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Stefan Kangas Newsgroups: gmane.emacs.devel Subject: Re: master b96f441139: ; Delete file after wallpaper test Date: Wed, 19 Oct 2022 18:57:50 +0000 Message-ID: References: <166618921100.528.6931883283500001470@vcs2.savannah.gnu.org> <20221019142013.4C1ACC11D77@vcs2.savannah.gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="20429"; mail-complaints-to="usenet@ciao.gmane.io" To: Stefan Monnier , emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Wed Oct 19 21:00:02 2022 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 1olEIM-00055b-6a for ged-emacs-devel@m.gmane-mx.org; Wed, 19 Oct 2022 21:00:02 +0200 Original-Received: from localhost ([::1]:39948 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1olEIK-00043U-L9 for ged-emacs-devel@m.gmane-mx.org; Wed, 19 Oct 2022 15:00:00 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:56736) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1olEGI-0002fw-UX for emacs-devel@gnu.org; Wed, 19 Oct 2022 14:57:54 -0400 Original-Received: from mail-oa1-x34.google.com ([2001:4860:4864:20::34]:33298) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1olEGH-0003T8-DI for emacs-devel@gnu.org; Wed, 19 Oct 2022 14:57:54 -0400 Original-Received: by mail-oa1-x34.google.com with SMTP id 586e51a60fabf-131dda37dddso21863425fac.0 for ; Wed, 19 Oct 2022 11:57:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=to:subject:message-id:date:mime-version:references:in-reply-to:from :from:to:cc:subject:date:message-id:reply-to; bh=JOfaleYmHZbBIRRkcJoQ3rdigviaMcqtPS4V340GCbE=; b=EQ5TYotsUU/o7FKbSe02Kc7ZuVQuWPFA5du0SAmIC7aRnbuj5vRIuFiwiVLorCZ26s +59WfLFX2jpT80i7O8ywwdqlwy/f/Gz5FyIZM5Y4ncpjXKSdBTp4+ACxzVApRm+BSDmT 1ixObGPs5bRLhhyM+RwvpLbyZ/B2fTaHhRNVKCLTnlhKBHmQizp3XCmCrE4Pqhhhqkbq NP0Ol9cFQAg8+GysfYpXXb6lVEw5/kxgw+E6cClOVvjb8zOz6aU56lOtdyULf1rb0avJ oU+HBtytfePZVygk+z2WdjTEl+C7lPb7g2rNlTG7yQlTjFu8lhDuBN3836L0UHEiDPr7 9ynw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=to:subject:message-id:date:mime-version:references:in-reply-to:from :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=JOfaleYmHZbBIRRkcJoQ3rdigviaMcqtPS4V340GCbE=; b=nHBetZGjt1E1SbZEfHLhC0xnA2BaDhXV9MsStnV8tS3bM9q3xEWiv3ohkaY4nAOIGz SfTI+aEvnP/HRncWJ+/gY1BOMGAF6AlijLtbwAr+FDN5pDMEdcuUtb7g0hh6KaF38dJC 1Ry2BU5zMEw8iYPjY81eI4p1humJaFeSGTF0fSmA311DgBns6M7xcllYwHDX66qfUPpI grqeFDA65PuLdSDZXO+arYnN/3GFryIcSVWL97fuAoZkJKBLrKlWSH9fl3BmcakARj/0 tQBXMtIrPugFNS0lKjw9pRXX55tKm8hljZ9fE2QIck6+8nbtI8IyXWFrhEwAVDuoZ8Eb Qi6Q== X-Gm-Message-State: ACrzQf0Vf9EPlr2ISR1RdUOaOBL0JBMp3gJn+i34ilDmuImBwewpqClk x/3cb0FS2ZQiwj6x9RF47pYjNH+Bbn+u0d1Mvp2wqdeY X-Google-Smtp-Source: AMsMyM6ec6P1zj27Z7s6b2GeTaUHWqDrDXvErF6S/n38hBhjrX9erEdbd17Gg8SBNj5hHE0saB/VNElOx6bM6KPNJwA= X-Received: by 2002:a05:6870:d79a:b0:136:50d7:faa9 with SMTP id bd26-20020a056870d79a00b0013650d7faa9mr21863026oab.92.1666205871148; Wed, 19 Oct 2022 11:57:51 -0700 (PDT) Original-Received: from 753933720722 named unknown by gmailapi.google.com with HTTPREST; Wed, 19 Oct 2022 18:57:50 +0000 In-Reply-To: X-Hashcash: 1:20:221019:monnier@iro.umontreal.ca::yNCnA04YsYmQy/LF:2W2Q Received-SPF: pass client-ip=2001:4860:4864:20::34; envelope-from=stefankangas@gmail.com; helo=mail-oa1-x34.google.com 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.29 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:298124 Archived-At: Stefan Monnier writes: >> + (setq process (wallpaper-set fil-jpg)) >> + ;; Wait for "touch" process to exit so temp file is removed. >> + (while (and (< (- (time-convert nil 'integer) start) >> + timeout) >> + (process-live-p process)) >> + (sit-for 0.01)) >> (should called))))) > > `accept-process-output` is supposed to be the more reliable.canonical way > to wait for a process to make progress or terminate. Thanks, I changed it to use `accept-process-output'.