From debbugs-submit-bounces@debbugs.gnu.org Mon Aug 03 20:58:59 2020 Received: (at submit) by debbugs.gnu.org; 4 Aug 2020 00:58:59 +0000 Received: from localhost ([127.0.0.1]:46397 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1k2lIB-0003mO-Ii for submit@debbugs.gnu.org; Mon, 03 Aug 2020 20:58:59 -0400 Received: from lists.gnu.org ([209.51.188.17]:53624) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1k2lI8-0003lu-2N for submit@debbugs.gnu.org; Mon, 03 Aug 2020 20:58:57 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:35828) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1k2lI7-0005lv-Oc for bug-gnu-emacs@gnu.org; Mon, 03 Aug 2020 20:58:55 -0400 Received: from relay10.mail.gandi.net ([217.70.178.230]:56859) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1k2lI5-0001gT-HS for bug-gnu-emacs@gnu.org; Mon, 03 Aug 2020 20:58:55 -0400 Received: from mail.gandi.net (m91-129-102-47.cust.tele2.ee [91.129.102.47]) (Authenticated sender: juri@linkov.net) by relay10.mail.gandi.net (Postfix) with ESMTPSA id F02F1240007 for ; Tue, 4 Aug 2020 00:58:49 +0000 (UTC) From: Juri Linkov To: bug-gnu-emacs@gnu.org Subject: Ansible inventory mode covers too many files Organization: LINKOV.NET Date: Tue, 04 Aug 2020 02:56:47 +0300 Message-ID: <87a6zbb54g.fsf@mail.linkov.net> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=217.70.178.230; envelope-from=juri@linkov.net; helo=relay10.mail.gandi.net X-detected-operating-system: by eggs.gnu.org: First seen = 2020/08/03 20:58:49 X-ACL-Warn: Detected OS = Linux 3.11 and newer X-Spam_score_int: -35 X-Spam_score: -3.6 X-Spam_bar: --- X-Spam_report: (-3.6 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H2=-1, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.6 (-) X-Debbugs-Envelope-To: submit 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: -2.6 (--) Visiting a file with the word "inventory" in its name, for example, "dynamic_inventory.html" or "inventory.jpg" enables 'ansible-inventory-generic-mode' instead of using html-mode or image-mode according to file extensions. This is because the scope of ansible-inventory-generic-mode is too wide: it matches the subword "inventory" in the file name. This patch should restrict it: diff --git a/lisp/generic-x.el b/lisp/generic-x.el index cd24f497c9..48ac123205 100644 --- a/lisp/generic-x.el +++ b/lisp/generic-x.el @@ -643,7 +643,7 @@ ansible-inventory-generic-mode ("\\([^ =\n\r]+\\)=\\([^ \n\r]*\\)" (1 font-lock-variable-name-face) (2 font-lock-keyword-face))) - '("inventory") + '("inventory\\'") (list (function (lambda () From debbugs-submit-bounces@debbugs.gnu.org Tue Aug 04 20:25:04 2020 Received: (at control) by debbugs.gnu.org; 5 Aug 2020 00:25:05 +0000 Received: from localhost ([127.0.0.1]:49371 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1k37Eu-0002I4-L1 for submit@debbugs.gnu.org; Tue, 04 Aug 2020 20:25:04 -0400 Received: from relay9-d.mail.gandi.net ([217.70.183.199]:38707) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1k37Es-0002Gz-Pl for control@debbugs.gnu.org; Tue, 04 Aug 2020 20:25:03 -0400 X-Originating-IP: 91.129.102.47 Received: from mail.gandi.net (m91-129-102-47.cust.tele2.ee [91.129.102.47]) (Authenticated sender: juri@linkov.net) by relay9-d.mail.gandi.net (Postfix) with ESMTPSA id 1437DFF805 for ; Wed, 5 Aug 2020 00:24:55 +0000 (UTC) From: Juri Linkov To: control@debbugs.gnu.org Subject: Re: bug#42703: Ansible inventory mode covers too many files Organization: LINKOV.NET References: <87a6zbb54g.fsf@mail.linkov.net> Date: Wed, 05 Aug 2020 02:51:23 +0300 In-Reply-To: <87a6zbb54g.fsf@mail.linkov.net> (Juri Linkov's message of "Tue, 04 Aug 2020 02:56:47 +0300") Message-ID: <87r1smrmv8.fsf@mail.linkov.net> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: control 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.7 (-) tags 42703 fixed close 42703 28.0.50 quit From unknown Mon Jun 16 23:55:00 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Wed, 02 Sep 2020 11:24:04 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator