From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Manuel Giraud Newsgroups: gmane.emacs.devel Subject: Re: [External] : [emacs bookmark.el] Sorting by last set Date: Wed, 01 Jun 2022 10:04:00 +0200 Message-ID: <875ylk4xov.fsf@elite.giraud> References: <877d6b88pz.fsf@elite.giraud> <875ylv6j58.fsf@elite.giraud> <87o7zngcgf.fsf@gnus.org> <87k0a93g4z.fsf@elite.giraud> <87y1yp1vnw.fsf@elite.giraud> <877d69lyt2.fsf@red-bean.com> <87ilpsd0hv.fsf@gnus.org> <87tu9c1c0k.fsf@elite.giraud> <87leuo12fh.fsf@elite.giraud> <87zgj38ds1.fsf@gnus.org> <875ylr15nm.fsf@elite.giraud> <8735gv6rim.fsf@gnus.org> <871qwf14ef.fsf@elite.giraud> <878rqm54kc.fsf@gnus.org> <87czfvjcbx.fsf@elite.giraud> <878rqh5z2v.fsf@gnus.org> <864k147vx6.fsf@mail.linkov.net> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="31475"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (berkeley-unix) Cc: Lars Ingebrigtsen , Stefan Monnier , Karl Fogel , Drew Adams , emacs-devel To: Juri Linkov Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Wed Jun 01 10:08:15 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 1nwJOp-00083U-LJ for ged-emacs-devel@m.gmane-mx.org; Wed, 01 Jun 2022 10:08:15 +0200 Original-Received: from localhost ([::1]:60974 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nwJOo-0008TO-28 for ged-emacs-devel@m.gmane-mx.org; Wed, 01 Jun 2022 04:08:14 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:45750) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nwJKq-0006F5-PI for emacs-devel@gnu.org; Wed, 01 Jun 2022 04:04:10 -0400 Original-Received: from ledu-giraud.fr ([51.159.28.247]:27992) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nwJKo-0002QG-T3 for emacs-devel@gnu.org; Wed, 01 Jun 2022 04:04:08 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; s=rsa; bh=9eYAcju8U0+W9cJg VbxyQlnK1IwbtwLUnhy+tVwgEwY=; h=date:references:in-reply-to:subject: cc:to:from; d=ledu-giraud.fr; b=Pc7mOIn6SZoW260fdjhtDcJcSpzTufjPQVtK5R 7nX4NeDd3f6Pq23/wq1hTcew3HeTAeFYnnJyykC/n408rYNsDgXpL0+NDsRBq4N6dvhh5g i/Bwv6/LRmyaVE1Yua08jftr8SmIwVZDq/2sbp90zpOffcQDRlH/LCE6iRdpruH+L9rQSg tpPQtvGQQrxGJAzhPL2Ct9hZpKwqF02m1Y7hx0OHmBTWQtsuuYiXzhNhfX44YgBX1AyeXT ftiBUYVXvc5Q4h1wwEh6v+MsLLRxWlMiWUlXJ+w+MWJf0i2tOBMeNjbXxzH0RawXFsPlwY aksbiTLtpnXmAsH1pLEFln7Q== Original-Received: from elite.giraud ( [10.1.1.1]) by ledu-giraud.fr (OpenSMTPD) with ESMTPSA id 33534e05 (TLSv1.3:TLS_AES_256_GCM_SHA384:256:NO); Wed, 1 Jun 2022 10:04:02 +0200 (CEST) In-Reply-To: <864k147vx6.fsf@mail.linkov.net> (Juri Linkov's message of "Wed, 01 Jun 2022 09:16:57 +0300") Received-SPF: pass client-ip=51.159.28.247; envelope-from=manuel@ledu-giraud.fr; helo=ledu-giraud.fr 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, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 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:290471 Archived-At: Juri Linkov writes: >> Thanks; pushed to Emacs 29 (with some whitespace and naming changes to >> make it fit our conventions). > > I tried it out, but noticed that it writes unintelligible numbers > in the bookmarks file, such as (last-modified 25239 1033 644055 97000). > Wouldn't it be more user-friendly to write timestamps in a more > recognizable format? E.g. with ISO date: (last-modified "20220601"). Yes, I have used (current-time) output directly so it can be used with `time-less-p'. If the bookmark file, needs to stay more or less human readable I could add a format-time-string/parse-time-string dance. But I have one question, it seems that `time-less-p' works with `parse-time-string' outputs: --8<---------------cut here---------------start------------->8--- (let ((past (current-time))) (sit-for 5) (time-less-p (parse-time-string (format-time-string "%FT%T%z" past)) (parse-time-string (format-time-string "%FT%T%z" (current-time))))) --8<---------------cut here---------------end--------------->8--- Is that true or is it pure luck? -- Manuel Giraud