From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Nikolay Kudryavtsev Newsgroups: gmane.emacs.devel Subject: Re: Syntax sugar question Date: Sun, 11 Apr 2021 22:42:00 +0300 Message-ID: References: <20210411030711.cpbbesqkuipt3lzc.ref@Ergus> <20210411030711.cpbbesqkuipt3lzc@Ergus> 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="39785"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.9.1 To: Ergus , emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sun Apr 11 21:43:56 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 1lVfzu-000AEi-Rr for ged-emacs-devel@m.gmane-mx.org; Sun, 11 Apr 2021 21:43:54 +0200 Original-Received: from localhost ([::1]:53606 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lVfzt-0002uI-Pt for ged-emacs-devel@m.gmane-mx.org; Sun, 11 Apr 2021 15:43:53 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:58142) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lVfyB-0002R4-VY for emacs-devel@gnu.org; Sun, 11 Apr 2021 15:42:07 -0400 Original-Received: from mail-lj1-x22e.google.com ([2a00:1450:4864:20::22e]:40575) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lVfy8-0004RD-GZ for emacs-devel@gnu.org; Sun, 11 Apr 2021 15:42:07 -0400 Original-Received: by mail-lj1-x22e.google.com with SMTP id c1so4451878ljd.7 for ; Sun, 11 Apr 2021 12:42:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:subject:to:references:message-id:date:user-agent:mime-version :in-reply-to:content-transfer-encoding:content-language; bh=g4QhvezqdhWEjcrZEYAApBKvmKJBwhSzm8Q2DiYbZ7w=; b=vBNcNcX4ABkCEDCOtMxGe7xyofBGT7Bf9byZQjTAi/0Krvn5Nt3SMTAvBpAm6fIqoz hKgVAG+baw5A5azea1IB+9KYrzTLBrOPZfQ6pXDnOFdo4slQiwKEq70JbOnfRijjINrs lXhb0+uedqkO2m8Zr7McFenIphy2MJ5qXiBZD68u/1IXI0EqeYwlQtJ+3jh9p9v4fOpg B4Sb4/TRRVmJoDkHItQxxYl9vSe8dqf5c0VaIwQmkPAQ9Dmfxzn89CUUez5xchc5Y4ul +75dURgsQWEl199dmr5UjDfVrunsDvCV8ZUSA8r3i2C6Su6EuqiFdpWDmayvsu4YHReA QDMg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:subject:to:references:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding :content-language; bh=g4QhvezqdhWEjcrZEYAApBKvmKJBwhSzm8Q2DiYbZ7w=; b=VGeJZJHN4MbgC3jY62RN3J6GeDnGMpKUp9EbrnWBp3iIoQ5i/m69BkxjbLZyNwaSmX pOR4gJ+x1ECS/fnaP8QxxGK4ag0lApwt5YE7neNOWCUZyc+WRYOOrk0RVUa4TsQBLGmN tYwGv4QVkPLpjvRggNIwXhq/sN2++wxGFlxP1X9r/3T1T8ZRe1l7lZCRDTPiGFoI6UDk 6B0qxPhPPP3MPMR69HLe8ViMW9cW7i6G3soFQze/qjGgcSRQDPHHbijI+AGmzaPTQA2q FVpLRBUj7CUH/FKbLjcVqm9KKigjxQRfFLHJA8YUAWZyg4ep8iwahWP1zBum5iXkcWGu M0cQ== X-Gm-Message-State: AOAM530C80aEpILDA2+rq8PQMfSRSK9Jf6cUdPf1Veuh+8/CYrzFbxFF Hvmu9FVaRXHwS8IJUa1GSBW39iWCt8tjjQ== X-Google-Smtp-Source: ABdhPJzbF5QYw1kEJIY4wqEidSf3OlIQ4OOJsM9sEXeHtImoU6akGm6NC9CTOUZNxw7ZT6lN00EDNA== X-Received: by 2002:a05:651c:1117:: with SMTP id d23mr16537082ljo.220.1618170121505; Sun, 11 Apr 2021 12:42:01 -0700 (PDT) Original-Received: from ?IPv6:2a02:2168:b115:9d00:7442:6f85:c7b7:4cad? ([2a02:2168:b115:9d00:7442:6f85:c7b7:4cad]) by smtp.gmail.com with ESMTPSA id k16sm2048827ljc.140.2021.04.11.12.42.00 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 11 Apr 2021 12:42:00 -0700 (PDT) X-Google-Original-From: Nikolay Kudryavtsev In-Reply-To: <20210411030711.cpbbesqkuipt3lzc@Ergus> Content-Language: en-US Received-SPF: pass client-ip=2a00:1450:4864:20::22e; envelope-from=nikolay.kudryavtsev@gmail.com; helo=mail-lj1-x22e.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, NICE_REPLY_A=-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:267912 Archived-At: Be aware that you can do (foo-mode -1) to disable foo-mode, so the current behavior already has some complexity. Syntactically if we start allowing parameter passage during the mode command, why stop at 1? Why not allow arbitrary number of params? I think the current design is fine as it is forcing every mode to work out of box. If people would start passing params, there would eventually be modes that would only work if you have a legit parameter declaration.