From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: =?UTF-8?B?Sm/Do28gVMOhdm9yYQ==?= Newsgroups: gmane.emacs.devel Subject: Re: complexity in minibuffer Date: Wed, 2 Jun 2021 17:29:12 +0100 Message-ID: References: <875yyxaoxp.fsf@gmail.com> <871r9laj6a.fsf@gmail.com> <1b73a130-204c-76fb-2b60-02b814aee0f0@daniel-mendler.de> <87r1hl8xom.fsf@gmail.com> <878s3t8tzw.fsf@gmail.com> <3c68bd00-70ca-fa18-f9b8-cd03029f9294@daniel-mendler.de> <8735u18lsd.fsf@gmail.com> <8e33bbfe-0015-b85c-b57c-ba448f2e6215@yandex.ru> <3d519805-f602-fa52-ec69-0506bb6cb568@yandex.ru> <4c292383-6d10-c630-7ea5-dd939114d81c@daniel-mendler.de> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="4845"; mail-complaints-to="usenet@ciao.gmane.io" Cc: "emacs-devel@gnu.org" , Dmitry Gutov , Stefan Monnier , Juri Linkov To: Daniel Mendler Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Wed Jun 02 18:30:24 2021 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 1loTlA-00014Q-7G for ged-emacs-devel@m.gmane-mx.org; Wed, 02 Jun 2021 18:30:24 +0200 Original-Received: from localhost ([::1]:44474 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1loTl8-0006Ot-N4 for ged-emacs-devel@m.gmane-mx.org; Wed, 02 Jun 2021 12:30:22 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:33924) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1loTkF-0005KC-Gf for emacs-devel@gnu.org; Wed, 02 Jun 2021 12:29:27 -0400 Original-Received: from mail-pf1-x42b.google.com ([2607:f8b0:4864:20::42b]:36717) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1loTkD-0003zT-Rw for emacs-devel@gnu.org; Wed, 02 Jun 2021 12:29:27 -0400 Original-Received: by mail-pf1-x42b.google.com with SMTP id c12so2623347pfl.3 for ; Wed, 02 Jun 2021 09:29:25 -0700 (PDT) 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:content-transfer-encoding; bh=ACXzVZVocbdYqZvQOIGIbVsW55nYtDd8Iy/UU6FHxm0=; b=LF6bMRX3kamibg9NjxEyoAZ6ME0NrfcjuWS0ID4MmPbjPhBBDVu17ImFaV0qDkGYKq F2YP4toI+AXfeG9heL7fHohiti7q9LXQHGXL1v+XDZjzwgXGDi0TRKKayulAo6rukCIR Ivxeiu13cFbeVCLJn5lFMerL+ND/irHZjegXebwxBb+c0UAWg/6JBI7VYwba6mX0xxgA CGHlIGQ/7W1VH6Z5+2RXvMvsRQvoj785TySG1Gr31nQokoNASPsml72vxFgo6gKSFjxr vif7NZSHOye0qeSZouruuAqi6f/Narguj5mBYg22gHsZuL2DXPrr2g1NH8Q6uH9xyhok XR+w== 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:content-transfer-encoding; bh=ACXzVZVocbdYqZvQOIGIbVsW55nYtDd8Iy/UU6FHxm0=; b=T6PoOKIKfJ9LZ3bcSI05Sy+Hw152FyAhI9frNwPjnuOYm1owtLcZcpkolOuf6u88uM ME9PNw5r6CzcVe07nHlEAsN+aGJkS8QzEXLoh2sLhO1xkF00ovyeSLCdfU2Gz7lXLrCi 7B5QJIFt1sGDH3ZlnUNlMkLl/sWXbOKepLPxhRX5SYDsT5tUTwJAO2TCzcgkPZztD6rw k5v4ri3+BDH1oFSh+mRgylD5L8AAlHIp5wZUoNhAQSDcsc8/5XSvLI6ZD1GLVK+8POGv pIdXTlUWpYRUPijMjWD1+WApOji4i963Za2SFecw9qFr1FdDEETpKZkRWpvFvnXxz6in Nx6A== X-Gm-Message-State: AOAM533hWPIW6wVUMxHtxLXOuimo8Ad03KZCQ4R+aj9zgJE84tjTaKQ1 UyP1ScoSz4jk4IW7dkiJ33XVTimPpUeBJd2o86s= X-Google-Smtp-Source: ABdhPJzpxYt5M5U87d/OkVEO/m/cA39G1CVAQlut1eXEwEImFP1txV1U35M6+KmaOMRs7YmDSOlsMS5xp4JU/OBWHi0= X-Received: by 2002:aa7:8c02:0:b029:2e9:c513:1e10 with SMTP id c2-20020aa78c020000b02902e9c5131e10mr6437173pfd.2.1622651364551; Wed, 02 Jun 2021 09:29:24 -0700 (PDT) In-Reply-To: <4c292383-6d10-c630-7ea5-dd939114d81c@daniel-mendler.de> Received-SPF: pass client-ip=2607:f8b0:4864:20::42b; envelope-from=joaotavora@gmail.com; helo=mail-pf1-x42b.google.com 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, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=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:270310 Archived-At: > This sounds like an unnecessary mutation > of the candidates and it is more complicated. This is what I value: - Rendering is less coupled to state or extra function arguments so it's good for debugging, unit testing and eventually rewriting the completion data structures. - Each of the intervening rendering functions has less code. You may deem the above "unnecessary", that's fine. I find it useful and _less_ complicated as a whole. > If you ask me, threading the argument down is the better approach. You have made that abundantly clear many times now. Jo=C3=A3o