From mboxrd@z Thu Jan 1 00:00:00 1970 From: =?UTF-8?Q?G=C3=A1bor?= Boskovits Subject: bug#39394: vis editor doesn't respect user configuration Date: Sun, 2 Feb 2020 21:03:36 +0100 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="000000000000100fb5059d9d4e67" Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:38874) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iyLTP-0002y7-Qg for bug-guix@gnu.org; Sun, 02 Feb 2020 15:04:04 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iyLTO-0007lt-OT for bug-guix@gnu.org; Sun, 02 Feb 2020 15:04:03 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:34614) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iyLTO-0007lh-LH for bug-guix@gnu.org; Sun, 02 Feb 2020 15:04:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1iyLTO-0007Z8-Gn for bug-guix@gnu.org; Sun, 02 Feb 2020 15:04:02 -0500 Sender: "Debbugs-submit" Resent-Message-ID: In-Reply-To: List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+gcggb-bug-guix=m.gmane-mx.org@gnu.org Sender: "bug-Guix" To: tsmish Cc: 39394@debbugs.gnu.org --000000000000100fb5059d9d4e67 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Thanks for the report. tsmish ezt =C3=ADrta (id=C5=91pont: 2020. febr. 2., Vas = 18:57): > Steps to reproduce: > 1. Make file ~/.config/vis/visrc.lua with following text: > ``` > require('vis') > > vis.events.subscribe(vis.events.INIT, function() > vis:command('qall') > end) > ``` > 2. Open vis > > vis should immediately close on startup, but it doesn't. > > It happens because package defines $VIS_PATH search path to directory > which contains example visrc.lua file and $VIS_PATH is highest > priority directory according to man page. > > Suggestions: > 1. Remove or rename example visrc.lua in share/vis > I would go for renaming it like visrc.lua.example, or similar. Would you like to propose a patch? 2. Remove $VIS_PATH search path from package. This shouldn't break > anything, as it seems share/vis is in later resolution path. > > > > --000000000000100fb5059d9d4e67 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Thanks for the report.

tsmish <tsymsh@gmail.com> ezt =C3=ADrta (id=C5=91pont: 2020. = febr. 2., Vas 18:57):
Steps to repr= oduce:
1. Make file ~/.config/vis/visrc.lua with following text:
```
require('vis')

vis.events.subscribe(vis.events.INIT, function()
=C2=A0 =C2=A0 vis:command('qall')
end)
```
2. Open vis

vis should immediately close on startup, but it doesn't.

It happens because package defines $VIS_PATH search path to directory
which contains example visrc.lua file and $VIS_PATH is highest
priority directory according to man page.

Suggestions:
1. Remove or rename example visrc.lua in share/vis
I would go for renaming it like visrc.lua.example, or= similar.

Would you like= to propose a patch?

2. Remove $VIS_PATH search path from package. This shouldn't break
anything, as it seems share/vis is in later resolution path.



--000000000000100fb5059d9d4e67--