unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Jean Louis <bugs@gnu.support>
To: help-gnu-emacs@gnu.org
Subject: Re: What is 0.01 here not 0.01 here 0.009999999999999?
Date: Sat, 17 Apr 2021 13:53:04 +0300	[thread overview]
Message-ID: <YHq+EMLDtpqX/Wwi@protected.localdomain> (raw)
In-Reply-To: <87o8eehshx.fsf@zoho.eu>

* Emanuel Berg via Users list for the GNU Emacs text editor <help-gnu-emacs@gnu.org> [2021-04-16 23:42]> > (rcd-vc-increase-decimal-revision-number "10.12") ; 10.129999999999999
> 
> Indeed, good question...
> 
> It is a binary thing, how floats are implemented.

That is solved, it increases now, but that is just one way for
versioning. We do not know if it will be versioning for Emacs Lisp, it
just small feature, insignificant. I rather think of changing also the
Version: line inside of Emacs Lisp automatically with the update.

> In your case, if you want a version number that is
> MAJOR.MINOR.PATCH what you can do is have them integer
> integer integer and then a separate function to output them
> 
>   (format "%d.%d.%d" major minor patch)

Not that I personally want it at this moment.

> I prefer to use the time of change for versions, but that's
> just me - and what a horrible world it would be, if everyone
> was the same - and for larger/join projects it should/could
> be extended, but still, check out:

You see, I have that, for now new versions of a file are stored in a
database, and the database table has its column named
`vc_datemodified', more important there is also the automated unique
ID or sequence in the database that always increases. It just does not
have adjacent order, but has increasing order of numbers.

The completion candidates then look as this:

Click on a completion to select it.
In this buffer, type RET to select the completion near point.

Possible completions are:
/home/data1/protected/Programming/emacs-lisp/rcd-cf.el ID: 06899 [6899]
/home/data1/protected/Programming/emacs-lisp/rcd-cf.el ID: 06900 [6900]
/home/data1/protected/Programming/emacs-lisp/rcd-cf.el ID: 06909 [6909]
/home/data1/protected/Programming/emacs-lisp/rcd-cf.el ID: 06913 [6913]

The ID is enough, but it is possible to list completion candidates by
date, it would be trivial to get that function. SQL is helping in many
ways.

What I would like now to do as next is finding the previous revisions
of particular function by its name no matter where it is located in a
file. I would find that useful. Interaction would be to just press a
key and get previous versions of the same function for comparison.

-- 
Jean

Take action in Free Software Foundation campaigns:
https://www.fsf.org/campaigns

Sign an open letter in support of Richard M. Stallman
https://stallmansupport.org/
https://rms-support-letter.github.io/




  reply	other threads:[~2021-04-17 10:53 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-04-02 13:42 What is 0.01 here not 0.01 here 0.009999999999999? Jean Louis
2021-04-02 13:56 ` Stefan Monnier
2021-04-02 17:03   ` Jean Louis
2021-04-02 17:41     ` Teemu Likonen
2021-04-02 18:44       ` Jean Louis
2021-04-02 20:46     ` John Yates
2021-04-02 21:19       ` Jean Louis
2021-04-02 22:04         ` John Yates
2021-04-02 23:29           ` Jean Louis
2021-04-03  4:39             ` Arthur Miller
2021-04-03  5:36               ` Jean Louis
2021-04-03  3:56     ` Arthur Miller
2021-04-03  5:19       ` Jean Louis
2021-04-03 13:54         ` Stefan Monnier
2021-04-02 14:02 ` Eli Zaretskii
2021-04-02 17:07   ` Jean Louis
2021-04-03  4:49     ` Arthur Miller
2021-04-16 20:41 ` Emanuel Berg via Users list for the GNU Emacs text editor
2021-04-17 10:53   ` Jean Louis [this message]
2021-04-19 10:51   ` Eric S Fraga

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=YHq+EMLDtpqX/Wwi@protected.localdomain \
    --to=bugs@gnu.support \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).