From debbugs-submit-bounces@debbugs.gnu.org Sat Sep 26 14:29:46 2020 Received: (at submit) by debbugs.gnu.org; 26 Sep 2020 18:29:46 +0000 Received: from localhost ([127.0.0.1]:47737 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kMEx8-0002wD-7r for submit@debbugs.gnu.org; Sat, 26 Sep 2020 14:29:46 -0400 Received: from lists.gnu.org ([209.51.188.17]:55588) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kMEx4-0002w3-8O for submit@debbugs.gnu.org; Sat, 26 Sep 2020 14:29:45 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:36896) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kMEx0-000055-SL for bug-gnu-emacs@gnu.org; Sat, 26 Sep 2020 14:29:41 -0400 Received: from sonic309-25.consmr.mail.ir2.yahoo.com ([77.238.179.83]:42153) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kMEwv-0005JW-3g for bug-gnu-emacs@gnu.org; Sat, 26 Sep 2020 14:29:38 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.es; s=s2048; t=1601144968; bh=YhJVMLYP6SfhDmzVcktWfxb5j2X6vkyhEwDOCzn8P38=; h=From:To:Subject:Date:References:From:Subject; b=Fn2POyuKgrn2xwAjdSz6e8HRz7NnL0NHTkbjRdGqTx/q/uIt+Ivp8tdgEt3ITiw5vU1+SbIpFyFCFW3Wtu/S+t8KC+8ssTwzE10i2uMg5M7P9yuxZ0MeXHeviJxhYGVhG4AN6Vorx7oxXry6oxXd38/ifYZ198gLroAqw9RT6wL+X4rc5JU8SsvZc9fk7FWU0sr02S26f1um79LcK7BcxQvHIKuZ1z2QOR2zM5VcDWEkfdklufQiQcvLNSd4zgeLwUzbsEs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G_SlEtQDppe 1l9GYY4Cp7qH.mAcbw50Bk42.WR3jSZbx193val95ciFjQXu9bCty0cm9dbsjUmoNutplATkwfW1 ooaYhq9HIPGuwmJEFTXXnIfY6l3_yw4v0JJz_5DJkcwT9hJ4a8zQyGosS7.omJaxysHkl0OVyyMB iTtICOZ5Ty1qU2RNWD40EAn0uH1xUMdGSW5Npzg0RsdxTDvYW3bJlG3ciE7Ck9w4R_j1mdMho8lF w_KPFc._t.nRRKKOEPsu8hT90XUY2ylwa1EI4iCCp5KY2W2ymylRJb9.hCjaV6VXHv3QW49fSbq0 ZZMZkvXdojeM5Q2jU37ge5DQEt1agjw0E4CQpI8pFXzD6RjWTIIhtNbjgxZXOGbHGbEEi7i3ylyT kUDbUJPmmB8L5laVqGTpZdrr2cTpVRi3N83ZdEAhPdZNoEd7voVXu6IEFjL482Nk0tvVH0Xt0GGM iRg_1V9.L2US41X_KTx3kkVZsjtU06jf1H5iUz7HGeOIxmtIoaSwMkMdY4UfIwFzGA1fnjkk24sv PVzpDQ70Hwj.3dG2ky4uxvSfU_luG_KZFXX4pRN.Nitt9jXnFhIHXcq.p5ys- Received: from sonic.gate.mail.ne1.yahoo.com by sonic309.consmr.mail.ir2.yahoo.com with HTTP; Sat, 26 Sep 2020 18:29:28 +0000 Received: by smtp409.mail.ir2.yahoo.com (VZM Hermes SMTP Server) with ESMTPA ID d67ee95f1d1b7fd841d6fa35cec4afdf; Sat, 26 Sep 2020 18:29:23 +0000 (UTC) From: =?utf-8?Q?Daniel_Mart=C3=ADn?= To: bug-gnu-emacs@gnu.org Subject: 27.1; Wrong indentation in sieve-mode Date: Sat, 26 Sep 2020 20:29:23 +0200 Message-ID: MIME-Version: 1.0 Content-Type: text/plain References: X-Mailer: WebService/1.1.16674 mail.backend.jedi.jws.acl:role.jedi.acl.token.atz.jws.hermes.yahoo Apache-HttpAsyncClient/4.1.4 (Java/11.0.7) Content-Length: 583 Received-SPF: pass client-ip=77.238.179.83; envelope-from=mardani29@yahoo.es; helo=sonic309-25.consmr.mail.ir2.yahoo.com X-detected-operating-system: by eggs.gnu.org: First seen = 2020/09/26 14:29:28 X-ACL-Warn: Detected OS = Linux 3.11 and newer [fuzzy] X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 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_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.4 (-) 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.4 (--) Copy the following Sieve script to "sample.sieve": if size :over 100K { reject "I'm sorry, I do not accept mail over 100kb in size."; } M-x mark-whole-buffer and indent. The closing brace is reindented in a strange way: if size :over 100K { reject "I'm sorry, I do not accept mail over 100kb in size."; } As sieve-mode inherits from c-mode, putting things in parens works, but this is not valid according to the grammar (see https://tools.ietf.org/html/rfc5228#section-3.1): if (size :over 100K) { reject "I'm sorry, I do not accept mail over 100kb in size."; } From debbugs-submit-bounces@debbugs.gnu.org Tue Sep 29 23:13:45 2020 Received: (at 43634) by debbugs.gnu.org; 30 Sep 2020 03:13:45 +0000 Received: from localhost ([127.0.0.1]:57714 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kNSYq-0003K0-UK for submit@debbugs.gnu.org; Tue, 29 Sep 2020 23:13:45 -0400 Received: from quimby.gnus.org ([95.216.78.240]:40294) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kNSYo-0003Jm-Mb for 43634@debbugs.gnu.org; Tue, 29 Sep 2020 23:13:44 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Transfer-Encoding:Content-Type:MIME-Version:Message-ID :In-Reply-To:Date:References:Subject:Cc:To:From:Sender:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=6A3xaTZKGibot3J/4zXR8oTUUTXG0EZQE+4+oQUrJV0=; b=XrC5Tccc1yo9Ir1cvxDXz9DCAy FtjiTgQKrvJdXoWhSnDWAYA42dhYIjAEpuLakLxAd5tELDHVLyDgwxOeewzT3GOEw06/fEx+aDE3j 93eSbDpTq+gIetJ+SC+wB+HeF2Qn4aPmdUQIwUJrawVf79QuGzDGyOV2F98khevTTgyg=; Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=xo) by quimby with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kNSYb-0005k1-DU; Wed, 30 Sep 2020 05:13:35 +0200 From: Lars Ingebrigtsen To: Daniel =?utf-8?Q?Mart=C3=ADn?= Subject: Re: bug#43634: 27.1; Wrong indentation in sieve-mode References: X-Now-Playing: Dat Politics's _Go Pets Go_: "Si" Date: Wed, 30 Sep 2020 05:13:27 +0200 In-Reply-To: ("Daniel =?utf-8?Q?Mart=C3=ADn=22's?= message of "Sat, 26 Sep 2020 20:29:23 +0200") Message-ID: <87o8lo7y94.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: Daniel Martín writes: > M-x mark-whole-buffer and indent. The closing brace is reindented in a > strange way: > > if size :over 100K { > reject "I'm sorry, I do not accept mail over 100kb in size."; > } > > As sieve-mode i [...] Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 43634 Cc: 43634@debbugs.gnu.org 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.0 (-) Daniel Mart=C3=ADn writes: > M-x mark-whole-buffer and indent. The closing brace is reindented in a > strange way: > > if size :over 100K { > reject "I'm sorry, I do not accept mail over 100kb in size."; > } > > As sieve-mode inherits from c-mode, putting things in parens works I guess there isn't really much in Sieve that's that C-like. I mean, it's {} and strings, but ... not the whole shebang. Do we have a simpler mode somewhere that just understands {} and strings that Sieve mode could inhering from instead? --=20 (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From debbugs-submit-bounces@debbugs.gnu.org Wed Jan 27 01:05:28 2021 Received: (at 43634) by debbugs.gnu.org; 27 Jan 2021 06:05:28 +0000 Received: from localhost ([127.0.0.1]:43409 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l4dxH-0001Kk-QL for submit@debbugs.gnu.org; Wed, 27 Jan 2021 01:05:27 -0500 Received: from quimby.gnus.org ([95.216.78.240]:36946) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l4dxG-0001KN-6U for 43634@debbugs.gnu.org; Wed, 27 Jan 2021 01:05:26 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date: References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=f72HZwQWi0oMPTR27U4MdOrFJKqCrpl/aOhSAvSTAZY=; b=EEJNTA+yog10hM7onpBWTrs4Nb Te/B3w2VR96d8h32WsOILxquwjH00ROs2mb/+h1hJhQWOHAceCDP32BO1EBYjARJe1rtadPSKtg8n v7HPUHAOCdb5FIdtCuFFjGBUb8bA4HAh2lBUzx7F207lXGlXV0QAgDEQboGVX4iBQsk0=; Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=xo) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1l4dx2-0002jv-L7; Wed, 27 Jan 2021 07:05:14 +0100 From: Lars Ingebrigtsen To: Daniel =?utf-8?Q?Mart=C3=ADn?= Subject: Re: bug#43634: 27.1; Wrong indentation in sieve-mode References: <87o8lo7y94.fsf@gnus.org> X-Now-Playing: Coil's _Swanyard (2)_: "Simon (Extra Long)" Date: Wed, 27 Jan 2021 07:05:11 +0100 In-Reply-To: <87o8lo7y94.fsf@gnus.org> (Lars Ingebrigtsen's message of "Wed, 30 Sep 2020 05:13:27 +0200") Message-ID: <87r1m6ap9k.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: Lars Ingebrigtsen writes: > Do we have a simpler mode somewhere that just understands {} and strings > that Sieve mode could inhering from instead? Apparently not (except just calling smie, which didn't quite do the right thing), so I just took an indentation function and altered it slightly. Fix in Emacs 28. Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 43634 Cc: 43634@debbugs.gnu.org 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.0 (-) Lars Ingebrigtsen writes: > Do we have a simpler mode somewhere that just understands {} and strings > that Sieve mode could inhering from instead? Apparently not (except just calling smie, which didn't quite do the right thing), so I just took an indentation function and altered it slightly. Fix in Emacs 28. -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From debbugs-submit-bounces@debbugs.gnu.org Wed Jan 27 01:05:42 2021 Received: (at control) by debbugs.gnu.org; 27 Jan 2021 06:05:42 +0000 Received: from localhost ([127.0.0.1]:43411 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l4dxI-0001Km-01 for submit@debbugs.gnu.org; Wed, 27 Jan 2021 01:05:42 -0500 Received: from quimby.gnus.org ([95.216.78.240]:36952) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l4dxG-0001KR-Gj for control@debbugs.gnu.org; Wed, 27 Jan 2021 01:05:26 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Subject:From:To:Message-Id:Date:Sender:Reply-To:Cc: MIME-Version:Content-Type:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=ThDZ14pWKK8/k9f4sY1FXtvvkZXEUSasotRHeV2kzeA=; b=I23M/wJYdlQqrIO8uFQj2mL65k t61TduRyYeH/caqwUtqui/AZMOeuPphJyeICVRQwzvo3soRqWqn2K6NGAOJV61yM2TtO53NsPsPGu K2h/b0/bS56BBHxWXvNVhLxJojsNy0oCVp4qAIjicLwOjUYNpCDOgp8Ith/sG38iIWnE=; Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=xo) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1l4dx8-0002k5-Tu for control@debbugs.gnu.org; Wed, 27 Jan 2021 07:05:20 +0100 Date: Wed, 27 Jan 2021 07:05:17 +0100 Message-Id: <87pn1qap9e.fsf@gnus.org> To: control@debbugs.gnu.org From: Lars Ingebrigtsen Subject: control message for bug #43634 X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: tags 43634 fixed close 43634 28.1 quit Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: 0.0 (/) 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.0 (-) tags 43634 fixed close 43634 28.1 quit From unknown Mon Jun 23 23:53:19 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, 24 Feb 2021 12:24:06 +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