From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Manuel Uberti Newsgroups: gmane.emacs.devel Subject: Re: project--files-in-directory: code formatting Date: Wed, 4 Nov 2020 15:45:59 +0100 Message-ID: <2b0f8de5-4202-8056-2c39-94802027f8c5@inventati.org> References: <0751c421-d860-2d79-74ee-52806d46fc13@inventati.org> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="------------EEC5C81F39C5F726DF4C9FB7" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="27121"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Wed Nov 04 15:49:01 2020 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kaK5q-0006ut-Ur for ged-emacs-devel@m.gmane-mx.org; Wed, 04 Nov 2020 15:48:58 +0100 Original-Received: from localhost ([::1]:36540 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kaK5p-00070y-OE for ged-emacs-devel@m.gmane-mx.org; Wed, 04 Nov 2020 09:48:57 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:49632) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kaK3A-0006EL-Lo for emacs-devel@gnu.org; Wed, 04 Nov 2020 09:46:14 -0500 Original-Received: from confino.investici.org ([2a00:c38:11e:ffff::a020]:50233) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kaK35-0003hf-4E for emacs-devel@gnu.org; Wed, 04 Nov 2020 09:46:12 -0500 Original-Received: from mx1.investici.org (unknown [127.0.0.1]) by confino.investici.org (Postfix) with ESMTP id 4CR8bY3p8Yz110t for ; Wed, 4 Nov 2020 14:46:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=inventati.org; s=stigmate; t=1604501161; bh=bzs9/v22gmSAj+rot9dBXa2tyslikYXcTgihb5WHRb4=; h=Subject:To:References:From:Date:In-Reply-To:From; b=IZ1uKU/N27cXcob0IYT/vADmlDmfb48YdK2cWuoasBP0yesh5srfJOlK3+D3XDE4J auG4R4/bQhf9f2LWEr5H6GC24z1nhCWCUyovLPjHrDy/2IjOrkInNNUlV89GlJe4Ib IVJ230QoHp0UbWdWRORsdnzC1rNnswAyOrKR9PCM= Original-Received: from [212.103.72.250] (mx1.investici.org [212.103.72.250]) (Authenticated sender: manuel.uberti@inventati.org) by localhost (Postfix) with ESMTPSA id 4CR8bY2Wzcz10yy for ; Wed, 4 Nov 2020 14:46:01 +0000 (UTC) Autocrypt: addr=manuel.uberti@inventati.org; prefer-encrypt=mutual; keydata= mQENBFTh+8QBCADM+TpOAlO6NIM+GCSLZd4hZQCU2WV7Z1cLYLnE2NHdEaKGnaVlkcf9dGeL 6nlX7j20AYL7KqF4h9IX5d4lc1w8Izk0V2ijtqNeqbRdiTZ8mF+cFEwbALjHIs/YNUjr8IMK pJ+5rQ4DN6dsLVuJ7NJCB54AtAqqvoTodEPxLCT2Gq6YyGaobiEGeczk/3SPsQZYQnKfJ2zM JxIQDy4Dg9owrPpX/WWOfmcTkDoWovX9nsojErYXhIXP7r6+V3cV9stQeOwMhfmnZ1k7LO7y tyvYNIZGfh+JrYBakGttYGSj/C47hJV9MBiY08/Wr3QeDVtV7UTB5qXVYMrYQk63UssNABEB AAG0QU1hbnVlbCBVYmVydGkgKEF1dGlzdGljaS9JbnZlbnRhdGkpIDxtYW51ZWwudWJlcnRp QGludmVudGF0aS5vcmc+iQE6BBMBCgAkAhsDBQsJCAcDBRUKCQgLBRYCAwEAAh4BAheABQJZ pBuqAhkBAAoJEE5XpsTKpI9iEBoIAJLAIZfNVT2KoO9iMM92kuCih6BA1lvpDWreoqRvwW8A iEnS6pwvpiuXldhZgcB4drpy97XBudBFx/b96Sqb4RvGxIHKpt4oLlpXzcohL28oP1CJiN+O bHEbRhzF8fuTrNh7v76z88WRkplUT/7nrO7YLVOM2DS/2QYccOrPkW4C5F03JyVkzSNisz5R VcmUTWcdnqo8VBd/DP3P96ayRj3VPKa9IdQIAxbjbhP+kEQbq9XDiZpGpcOHhFjWeLAWlFCm nES1C7Wb In-Reply-To: Content-Language: en-GB Received-SPF: pass client-ip=2a00:c38:11e:ffff::a020; envelope-from=manuel.uberti@inventati.org; helo=confino.investici.org X-detected-operating-system: by eggs.gnu.org: No matching host in p0f cache. That's all we know. X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, NICE_REPLY_A=-0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:258677 Archived-At: This is a multi-part message in MIME format. --------------EEC5C81F39C5F726DF4C9FB7 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit On 04/11/20 15:30, Stefan Monnier wrote > Yes, please! > > I even added a font-lock rule to highlight such cases in red, but > apparently that rule doesn't catch this particular case (if you replace > the empty string with a symbol, it does catch it, tho). > Hi Stefan, thank you for the prompt reply. I attached a patch for this little change. Let me know if I did something wrong or you want me to change something. Thank you -- Manuel Uberti www.manueluberti.eu --------------EEC5C81F39C5F726DF4C9FB7 Content-Type: text/x-patch; charset=UTF-8; name="0001-Fix-project-files-in-directory-formatting.patch" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="0001-Fix-project-files-in-directory-formatting.patch" >From 67f7b611d68131f9dcbedafae93b1d1b4d350908 Mon Sep 17 00:00:00 2001 From: Manuel Uberti Date: Wed, 4 Nov 2020 15:41:53 +0100 Subject: [PATCH] Fix project--files-in-directory formatting --- lisp/progmodes/project.el | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lisp/progmodes/project.el b/lisp/progmodes/project.el index 8f7482a23d..6c647a092a 100644 --- a/lisp/progmodes/project.el +++ b/lisp/progmodes/project.el @@ -301,8 +301,8 @@ project--files-in-directory (split-string files) (concat " -o " find-name-arg " ")) " " - (shell-quote-argument ")"))"") - ))) + (shell-quote-argument ")")) + "")))) (project--remote-file-names (sort (split-string (shell-command-to-string command) "\0" t) #'string<)))) -- 2.25.1 --------------EEC5C81F39C5F726DF4C9FB7--