From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Bruno Haible Newsgroups: gmane.comp.lib.gnulib.bugs,gmane.emacs.devel Subject: Re: boot-time: straighten code Date: Tue, 15 Aug 2023 23:12:53 +0200 Message-ID: <4449898.bgbtPGBEXF@nimes> References: <4536176.VaOIPsP7d9@nimes> <5a77c0b9-8692-83bf-1aca-2f1d27122877@cs.ucla.edu> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7Bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="34769"; mail-complaints-to="usenet@ciao.gmane.io" Cc: bug-gnulib@gnu.org, Emacs-devel@gnu.org To: Paul Eggert Original-X-From: bug-gnulib-bounces+gnu-bug-gnulib=m.gmane-mx.org@gnu.org Tue Aug 15 23:13:24 2023 Return-path: Envelope-to: gnu-bug-gnulib@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 1qW1Lv-0008oS-6J for gnu-bug-gnulib@m.gmane-mx.org; Tue, 15 Aug 2023 23:13:23 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qW1Le-00031L-4Q; Tue, 15 Aug 2023 17:13:06 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qW1Lb-000302-VD; Tue, 15 Aug 2023 17:13:04 -0400 Original-Received: from mo4-p00-ob.smtp.rzone.de ([85.215.255.20]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qW1LW-0000pK-4K; Tue, 15 Aug 2023 17:13:00 -0400 ARC-Seal: i=1; a=rsa-sha256; t=1692133974; cv=none; d=strato.com; s=strato-dkim-0002; b=F7AbDr/SnhCa8THY0opzt3M8ooIv50PC/xxa6oBEiuA3eBb9qeKoHk5qUdhlobWLNU Nu24zbp4CWQ6Y3r18zYPJeshDQVFxL4OCbTyM9kucWMHnd716jeVukf/edWvEVseH9TT sHPemLx/MBNKsBcS38edyG61WULcrKTMUweyosxiP7Zf6vExRvgU5HsEvv15XoCH86kd 5ph6vJdmAuHajY1x18BrTmNbqQ8J4ehfyA+uENWgdp41xL3EkmKhL80A7H7HpHh4ZNiy 5AGYnTewb4xFq9tPhuxlIFprZpBxyHvhQPCy95T6M4P6/vVSvB9fkFGdtGDaF+jEiB8a tOLg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; t=1692133974; s=strato-dkim-0002; d=strato.com; h=References:In-Reply-To:Message-ID:Date:Subject:Cc:To:From:Cc:Date: From:Subject:Sender; bh=9VX0Hxd7TcdoRb7izL8m6ysTJsdi75jfbcRbt41G80w=; b=PTosWJyw/uFEFCQiCJ2okQ8Q3oAmNZFkUpf7TZ9zWVCqbQnNWf+fbqjY+35nQDMhHf LmWdq69friR9SFxjgPjEfi3WVwKHjs3oTOu1/ewfSny2k8XISKMVu3+thzi7oeq0n1WE Pc8oTs/C+U+0f4hl0mhWWR9hDLgqQhUrE0bhRDOsbkiT4u+Q5Rn8zUOJWUkqMQy6SG4p xT5my/6oEsWVDO7vW3g719uDf1LzYmxdT2gatHj75GrV/gMC8vHUBQKuxAiUGXqgaOXG GGly4bKV61/uSEQyVJADbqb2m7xfnClB3HxecXRh6ovitsOgcQ67p4gkorJOpFM5UBIP I5/A== ARC-Authentication-Results: i=1; strato.com; arc=none; dkim=none X-RZG-CLASS-ID: mo00 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; t=1692133974; s=strato-dkim-0002; d=clisp.org; h=References:In-Reply-To:Message-ID:Date:Subject:Cc:To:From:Cc:Date: From:Subject:Sender; bh=9VX0Hxd7TcdoRb7izL8m6ysTJsdi75jfbcRbt41G80w=; b=Ifs5IevnwI6UlLA8U3pt6byPzJi9XE5/CaeW2Wzvy1UDfPLFVw2ajklkNXdLybCd19 ac+2Rko9Bnw0fGgp+KSoWQYVrGSnfREjrmcBg4QZH1YHihgUfnHtjhJp6gcoC3sv3DMG GmasdlNIRgsfLEX+EdNXmsSHJZEJbhnctFPLu7mXXLMuxR5ZI7gFvR+DdNAN4jW9BROa hmYcop+3feSDSOERNdwsF8p+trTw7EmehAUaiRWqfd7noDZ+RJOcaThZ4171trkIr2lv LO7ww6qLwpGM9gvLwdA5VlZPGBMqOd6phgvDxXYOkTwxX3BfEycF8c/kP/uH2jdRP9sn e/8A== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; t=1692133974; s=strato-dkim-0003; d=clisp.org; h=References:In-Reply-To:Message-ID:Date:Subject:Cc:To:From:Cc:Date: From:Subject:Sender; bh=9VX0Hxd7TcdoRb7izL8m6ysTJsdi75jfbcRbt41G80w=; b=W25hOku451QtfFAWQc90Q0coyDm1MHx171uGyR3RcJ9U37DXi1GbqPGe0yS8u0bW7L iSgnHEwvh87VwUelVGBg== X-RZG-AUTH: ":Ln4Re0+Ic/6oZXR1YgKryK8brlshOcZlIWs+iCP5vnk6shH0WWb0LN8XZoH94zq68+3cfpPD1KDxnGxb4/wjRQtDCidPpMcxog==" Original-Received: from nimes.localnet by smtp.strato.de (RZmta 49.8.0 AUTH) with ESMTPSA id Vd691cz7FLCr1WO (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256 bits)) (Client did not present a certificate); Tue, 15 Aug 2023 23:12:53 +0200 (CEST) In-Reply-To: <5a77c0b9-8692-83bf-1aca-2f1d27122877@cs.ucla.edu> Received-SPF: none client-ip=85.215.255.20; envelope-from=bruno@clisp.org; helo=mo4-p00-ob.smtp.rzone.de 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, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_PASS=-0.001, SPF_NONE=0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: bug-gnulib@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gnulib discussion list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnulib-bounces+gnu-bug-gnulib=m.gmane-mx.org@gnu.org Original-Sender: bug-gnulib-bounces+gnu-bug-gnulib=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.comp.lib.gnulib.bugs:48194 gmane.emacs.devel:308776 Archived-At: Paul Eggert wrote: > I installed the attached patch into Emacs > master, which you should be able to test via: > > git clone https://git.savannah.gnu.org/git/emacs.git > cd emacs > ./autogen.sh > ./configure > make > src/emacs > > Please give it a try, especially on any MS-Windows platform you happen > to have. I have tested only on Ubuntu 23.04 so far. > > A simple way to test is to use Emacs to start editing a file (without > saving) and then inspect the symbolic link .#* that Emacs uses as a lock > file. The trailing digits of that link's contents should be the boot > time. These symlinks are Emacs's only use of boot time. Here are my test results. On each of the following platforms, after regenerating the current 'configure' file and then building the 'emacs' directory from today, with the configure options --disable-silent-rules --without-all --without-x then running "./emacs $HOME/hello.c", editing that buffer, opening a 'M-x shell' buffer, and looking at the $HOME/.#hello.c symlink, I can see that its last component is exactly the time_t value of the boot time, as displayed by the gnulib 'test-readutmp' test. So, the test passes on all these platforms: - Linux: Ubuntu 22.04, Alpine Linux - Debian GNU/Hurd 2022 - Debian GNU/kFreeBSD 7 - NetBSD 9.3 - OpenBSD 7.2 - Cygwin 2.9.0 I could not test the Windows binaries from corwin, due to problems mentioned in . Also, I could not test on Android (in Termux), due to a build failure, cf. . Bruno