From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Dmitry Gutov Newsgroups: gmane.emacs.devel Subject: Re: project--files-in-directory: code formatting Date: Wed, 4 Nov 2020 20:19:19 +0200 Message-ID: <9152a49a-b3ae-0724-e715-950e477c7f85@yandex.ru> References: <0751c421-d860-2d79-74ee-52806d46fc13@inventati.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="605"; 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: Manuel Uberti , emacs-devel Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Wed Nov 04 19:20:14 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 1kaNOI-000AdK-I9 for ged-emacs-devel@m.gmane-mx.org; Wed, 04 Nov 2020 19:20:14 +0100 Original-Received: from localhost ([::1]:33404 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kaNOH-0002Oc-Ih for ged-emacs-devel@m.gmane-mx.org; Wed, 04 Nov 2020 13:20:13 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:46960) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kaNNW-0001XI-5K for emacs-devel@gnu.org; Wed, 04 Nov 2020 13:19:26 -0500 Original-Received: from mail-wm1-x32b.google.com ([2a00:1450:4864:20::32b]:35972) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kaNNU-00072A-Ak for emacs-devel@gnu.org; Wed, 04 Nov 2020 13:19:25 -0500 Original-Received: by mail-wm1-x32b.google.com with SMTP id e2so3248230wme.1 for ; Wed, 04 Nov 2020 10:19:23 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:subject:to:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=6PPiOficYWDKVGDJHd09n07X5Txr/SVz+jvAorvUZYU=; b=pOL3oYPX0hGE7m2doSiNTp1K8uRVYq3qkfZcZXn0Kj3/f8wmc+KMFsB7GfkIgbikEL wmuMo8zadUtN51Q+CdjLQTV8RYcMlkOB53Ar3iAotus5GnjHJNQWdFv2wrqKQp5XSKG8 96yj3C2gFyW8HnwiakMCEdPgB0CncClgKG/Zql4Rp2/V4N8LQpomIbp8uY3Zd+IGSkjs V2ca+Vt53HDqayUWhB1+Op89EpFWtNaBLvaJOv9FuSwKe1bWZGo8Tf5PUETQOuAEC2fV 2VqhKasSRdEDZLizOZmXE1psSy2OW6TV6MxIqCM0bYMCNwBLP0nISUoHmr3Zh6q8uHe+ DfGQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:subject:to:references:from:message-id :date:user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=6PPiOficYWDKVGDJHd09n07X5Txr/SVz+jvAorvUZYU=; b=LDTLEI6hv+5G2839ZyY+2OnnBRr0sDe6PdX+wat3BnY3TM/U2Er9qA/AV+xTagi+a2 qux2AlTal7dSPcN4Z96YC+SbVGrXO3UfN2NqEGFueTzHXreDwOwtEHeKaSsvlXPMVovC fYG5Y1ox4FvWFEMZJQ6hu2Zzm3ClHOEk0wgdQpfNp9c5ZZyzgpRK2t00Sv6oD2YGG15B HKYLbGOlJEK5/M3u5rfZbk6prvB6dP8xmWJyvGj2+wjVDBR8fuPmXCPP65zIRTv3c/LE q3BJ/cDoDJyQ7/NBlxzH7BM4wiNZLIDFpLfMeLGXJPaYFwuEnhK9aMIV935KwqLghM06 S5cQ== X-Gm-Message-State: AOAM531Wh5LKUE2XVYkaJTx4s2PHeac2TnQL++OeTYIBB0PvPvj9eAwL 6hQTvMYBZ4MuQghhBvmh77iJX4g5jLq/Kg== X-Google-Smtp-Source: ABdhPJzeg2vo/3WPve6L5SaUAFfRzXcyBkCEc0aWF0ophMoyHC6Lxhh7CsKLpwYqLf5BFZ6BWuqkoQ== X-Received: by 2002:a1c:bc08:: with SMTP id m8mr4924954wmf.137.1604513962113; Wed, 04 Nov 2020 10:19:22 -0800 (PST) Original-Received: from [192.168.0.4] ([66.205.71.3]) by smtp.googlemail.com with ESMTPSA id h81sm3355213wmf.44.2020.11.04.10.19.19 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 04 Nov 2020 10:19:21 -0800 (PST) In-Reply-To: <0751c421-d860-2d79-74ee-52806d46fc13@inventati.org> Content-Language: en-US Received-SPF: pass client-ip=2a00:1450:4864:20::32b; envelope-from=raaahh@gmail.com; helo=mail-wm1-x32b.google.com X-detected-operating-system: by eggs.gnu.org: No matching host in p0f cache. That's all we know. X-Spam_score_int: -14 X-Spam_score: -1.5 X-Spam_bar: - X-Spam_report: (-1.5 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FORGED_FROMDOMAIN=0.25, FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.25, NICE_REPLY_A=-0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no 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:258691 Archived-At: On 04.11.2020 15:26, Manuel Uberti wrote: > Woudln't it be cleaner formatted this way? > > (command (format "%s %s %s -type f %s -print0" > find-program > localdir > (xref--find-ignores-arguments ignores localdir) > (if files > (concat (shell-quote-argument "(") > " " find-name-arg " " > (mapconcat > #'shell-quote-argument > (split-string files) > (concat " -o " find-name-arg " ")) > " " > (shell-quote-argument ")")) > ""))) > > Basically, the "else" of "if files..." on a new line, with the remaining > parenthesis on the same line as this "else". > > What do you think? Thanks! It was basically a typo (mine), not some actual preference.