there.
I always use the emacs editor. And I write some lisp(emacs-lisp) code.
But, I do not know that how to use the argument of file-name-sans-versions.
On manual,
=====
(file-name-sans-versions NAME &optional KEEP-BACKUP-VERSION)
Return file NAME sans backup versions or strings.
This is a separate procedure so your site-init or startup file can
redefine it.
If the optional argument KEEP-BACKUP-VERSION is non-nil,
we do not remove backup version numbers, only true file version numbers.
=====
I do not understand this sentences => we do not remove backup version numbers, only true file version numbers.
So, please teach me “how to” by sample code.
thanks.
There is an example in the elisp manual, in the (elisp) File Name Components node:
This doesn’t explain the difference between
backup version numbersandtrue file version numbers. But the section I have bolded suggests that this is dependent on the particular file system in use. The same page includes the following:I take this to mean that most operating systems don’t implement a
true file version numberas part of the file name.