From debbugs-submit-bounces@debbugs.gnu.org Sun Feb 02 16:08:53 2020 Received: (at 39394) by debbugs.gnu.org; 2 Feb 2020 21:08:53 +0000 Received: from localhost ([127.0.0.1]:40624 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iyMU9-0002m0-DY for submit@debbugs.gnu.org; Sun, 02 Feb 2020 16:08:53 -0500 Received: from mail-qt1-f179.google.com ([209.85.160.179]:36911) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iyMU8-0002lo-2n for 39394@debbugs.gnu.org; Sun, 02 Feb 2020 16:08:52 -0500 Received: by mail-qt1-f179.google.com with SMTP id w47so9910800qtk.4 for <39394@debbugs.gnu.org>; Sun, 02 Feb 2020 13:08:52 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=RECII1S8kTu02vKcRemwQQDeXzg6N6P+STeiD8GraZY=; b=fDSf0X4Cl+EhEpcc9mR58s5ZR+Y6xkSq6tHSM/QHi83PG93uKdK03CkRd44CxSQ+5D 4NXJ9tr7fnG+bwmF3Cfq9WXx6FBxI1dvwTzC9rCtu7QFDQCejfbmt+48CpLey2c5RmTU cL+V0Je35tHZ3iBnk+jFNXft7jtny+fS/2WsoqmzWt3q6URCTDGRRvbxmhLCRInK9ZHB hv5lQn2exhpEi1RKH94RMV/Y3PXNjHLzFAb/FVCwgPMtHDUZ3XuCAbTW/PDidjy7cWmc yHWEoB46i1qh7frRXIb1DbaHhU8f+IsqHzGdeEcmZT4UkYDntYTQmcmCBc+s2j7YUU5u W6ig== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=RECII1S8kTu02vKcRemwQQDeXzg6N6P+STeiD8GraZY=; b=TAmKqgh6reD0AcySO0mwn8aDNneKw0mAbVM+ADtlMmN3jDR3vDTOxgRuqteag9KMbX Y7DawIHSNn0yKWnCxHR+1QtYSQdeMk2b5Iz/zGnQGDqi2XoxctoOhmWBONuC6w2+EQbM D1CpdCdYGybAG1Ine1CDaRETe3at+s51hwdpAVXgNqtp5QLIqAcs4qDl4+EVEUcVe4wt O8LnXC1FRt8C1jwm2TK1+t6jtkS4S7iJxjlGJdcQWBZhzzLoWRCxG4aQyyIGZq2w58nN lbkXQjBU7jZS2wLqg4aAqXCV07HmJhHzOyGv7EVJjWYaIXnzuwTdpILlihjEhqDvAiTK l59g== X-Gm-Message-State: APjAAAUA6bfqniF5gLOb5kh+xFlh3ZD6CuAc6yJV389pJ2mwuNpi1gjW KNFVJyomFut+wvjbNo/7uPXcUkz50dpfUKfcT88= X-Google-Smtp-Source: APXvYqyn7SV30GFSDIf+1YMA3OFuYCwFSENkJQ6Yu0BcWgxTsK+I2zMXXB1CPyK7yaAUA90PJ6N2beyASlmV7ilPsH0= X-Received: by 2002:aed:2e03:: with SMTP id j3mr20969098qtd.365.1580677726584; Sun, 02 Feb 2020 13:08:46 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: From: tsmish Date: Mon, 3 Feb 2020 02:08:35 +0500 Message-ID: Subject: Re: bug#39394: vis editor doesn't respect user configuration To: =?UTF-8?Q?G=C3=A1bor_Boskovits?= Content-Type: text/plain; charset="UTF-8" X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 39394 Cc: 39394@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) > 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.