From mboxrd@z Thu Jan 1 00:00:00 1970 From: ng0 Subject: collisions, vim person opinion wanted Date: Thu, 24 Aug 2017 07:03:50 +0000 Message-ID: <20170824070350.dczsj262z2vmzk5o@abyayala> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="gi3roe7qvqhdwhqu" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:46832) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dkmC2-0000yt-Sm for guix-devel@gnu.org; Thu, 24 Aug 2017 03:04:44 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dkmBz-0006sW-Oo for guix-devel@gnu.org; Thu, 24 Aug 2017 03:04:42 -0400 Received: from aibo.runbox.com ([91.220.196.211]:42762) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dkmBz-0006s7-He for guix-devel@gnu.org; Thu, 24 Aug 2017 03:04:39 -0400 Received: from [10.9.9.212] (helo=mailfront12.runbox.com) by mailtransmit02.runbox with esmtp (Exim 4.86_2) (envelope-from ) id 1dkmBw-0002Cr-Uf for guix-devel@gnu.org; Thu, 24 Aug 2017 09:04:37 +0200 Received: from 178-17-174-14.ip.as43289.net ([178.17.174.14] helo=localhost) by mailfront12.runbox.com with esmtpsa (uid:892961 ) (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) id 1dkmBI-0007Zi-5e for guix-devel@gnu.org; Thu, 24 Aug 2017 09:03:56 +0200 Content-Disposition: inline List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: "Guix-devel" To: guix-devel@gnu.org --gi3roe7qvqhdwhqu Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable 106 packages in profile user@abyayala ~$ diff /gnu/store/fsskp9hp6mdw5lymd3bl886ixagf7bqc-vim-neosn= ippet-4.2-1.1bd7e23/share/vim/vimfiles/autoload/vital.vim /gnu/store/36hqzf= gzqss4ly8i7hkavlcfr327g4l5-vim-neocomplete-2.1/share/vim/vimfiles/autoload/= vital.vim 2c2 < let files =3D globpath(&runtimepath, 'autoload/vital/' . a:name . '.vit= al', 1) --- > let files =3D globpath(&runtimepath, 'autoload/vital/' . a:name . '.vit= al') So what does it mean in vimscript when there's just 3 more characters? Anyone with some knowledge in vimscript or at least vim internals got an idea? The whole thing is inserted below. cat /gnu/store/fsskp9hp6mdw5lymd3bl886ixagf7bqc-vim-neosnippet-4.2-1.1bd7e2= 3/share/vim/vimfiles/autoload/vital.vim function! vital#of(name) abort let files =3D globpath(&runtimepath, 'autoload/vital/' . a:name . '.vital= ', 1) let file =3D split(files, "\n") if empty(file) throw 'vital: version file not found: ' . a:name endif let ver =3D readfile(file[0], 'b') if empty(ver) throw 'vital: invalid version file: ' . a:name endif return vital#_{substitute(ver[0], '\W', '', 'g')}#new() endfunction =20 --=20 ng0 GnuPG: A88C8ADD129828D7EAC02E52E22F9BBFEE348588 GnuPG: https://n0is.noblogs.org/my-keys https://www.infotropique.org https://krosos.org --gi3roe7qvqhdwhqu Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEqIyK3RKYKNfqwC5S4i+bv+40hYgFAlmeelYACgkQ4i+bv+40 hYhdLBAAtKPEbsUpcMC0F4wJPQRIyl6eGA9rX+QlUdrljVt8TH8lDzdc8fIlgpXa sipSf/6mfprHwSDMpe9W+eUDnT7PzhF20vhpycfz5Lu54MRNXn8eMfH1f34oW+Zl B9UQE+ndTuFTKSByLEL428IoTVL2aUYAJGt97+oEEN/v4xuKJzuoYxK8f8fAbziE YY8mF9qvnLKzbWELE6U3ou+fvTmVw0evDWWINQjAVychUCTGpHvGLnOAqp6r5IDu nkMitGmiusPe9cPLgPBXDPfdx9nytzFX8fy1BoIkjJ9JI2gngIocfzJk+EAHPBzi G96q5Ul/bQfpOFVX4jCNWSfP7FXyJsrprPzsV7ajTl1T325CBWhJLVPSzi4wcaC0 DjpvxhdB0EvZ9simU93HfcD9cQXR0+sxm9kuL3mIB2GiVJ6nDeGtdAGmX6wquQqO phDFnsOKn9hiWIdHj/ewcyZN+5va3BsH7bk4pAI8wtILlU4iIlP/GfSoN8HDtM/U QXozwTvoLRR5QEIwQek7e5TygkLqB3cmJlli5fErozFyUe12HbZ+mfNPBmUDlBiw qqzh9dJ4hhT/1U8RSFMi56gq/TZiBdpdmlFzA80ttoJ3XjtjkS2oLL11bIYL07iu UPHvb4MB62/NqmvPy4LBe2U2SYfKh/znEiQAg93pnq4KEnERsXo= =gD2A -----END PGP SIGNATURE----- --gi3roe7qvqhdwhqu--