GNU bug report logs - #39394
vis editor doesn't respect user configuration

Previous Next

Package: guix;

Reported by: tsmish <tsymsh <at> gmail.com>

Date: Sun, 2 Feb 2020 17:57:02 UTC

Severity: normal

Tags: easy

Full log


Message #8 received at 39394 <at> debbugs.gnu.org (full text, mbox):

From: Gábor Boskovits <boskovits <at> gmail.com>
To: tsmish <tsymsh <at> gmail.com>
Cc: 39394 <at> debbugs.gnu.org
Subject: Re: bug#39394: vis editor doesn't respect user configuration
Date: Sun, 2 Feb 2020 21:03:36 +0100
[Message part 1 (text/plain, inline)]
Thanks for the report.

tsmish <tsymsh <at> gmail.com> ezt írta (időpont: 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.
>
>
>
>
[Message part 2 (text/html, inline)]

This bug report was last modified 5 years and 131 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.