From mboxrd@z Thu Jan 1 00:00:00 1970 From: tsmish Subject: bug#39394: vis editor doesn't respect user configuration Date: Mon, 3 Feb 2020 02:08:35 +0500 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:49466) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iyMUJ-0007Aw-0E for bug-guix@gnu.org; Sun, 02 Feb 2020 16:09:03 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iyMUH-0003d4-Sc for bug-guix@gnu.org; Sun, 02 Feb 2020 16:09:02 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:34651) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iyMUH-0003cx-Pk for bug-guix@gnu.org; Sun, 02 Feb 2020 16:09:01 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1iyMUH-0002mM-Kl for bug-guix@gnu.org; Sun, 02 Feb 2020 16:09:01 -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: =?UTF-8?Q?G=C3=A1bor?= Boskovits Cc: 39394@debbugs.gnu.org > I would go for renaming it like visrc.lua.example, or similar. I don't really like this solution because while this particular problem will be fixed, underlying issue of system paths having higher priority than user ones will stay. >From what I can figure out from the code(https://github.com/martanne/vis/blob/a4b64c5c396646bb2f14db3b4145a5482a2ff8bf/vis-lua.c#L2650) $VIS_PATH is at the top of package.path which will make requires from user configuration go there in case of files with same name. Also this will probably make commands such as "set theme" ignore user files from configuration directory when there is a file in system one. Also there is VIS_PATH #define which seems to be intended way to set path to system directory. It is set to /usr/local/share/vis by default, but I don't see it in help, which probably means it gets overwritten with some kind of guix magic.