From debbugs-submit-bounces@debbugs.gnu.org Tue Jun 26 15:43:08 2018 Received: (at submit) by debbugs.gnu.org; 26 Jun 2018 19:43:09 +0000 Received: from localhost ([127.0.0.1]:36555 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fXtro-0001DW-Db for submit@debbugs.gnu.org; Tue, 26 Jun 2018 15:43:08 -0400 Received: from eggs.gnu.org ([208.118.235.92]:51771) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fXtrl-0001D2-II for submit@debbugs.gnu.org; Tue, 26 Jun 2018 15:43:07 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fXtrf-00035N-JZ for submit@debbugs.gnu.org; Tue, 26 Jun 2018 15:43:00 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-0.5 required=5.0 tests=BAYES_05,FREEMAIL_FROM, T_DKIM_INVALID autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:40700) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1fXtrf-000353-Fo for submit@debbugs.gnu.org; Tue, 26 Jun 2018 15:42:59 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:42729) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fXtre-0006Sp-9R for bug-gnu-emacs@gnu.org; Tue, 26 Jun 2018 15:42:59 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fXtrZ-00031q-D4 for bug-gnu-emacs@gnu.org; Tue, 26 Jun 2018 15:42:58 -0400 Received: from aibo.runbox.com ([91.220.196.211]:55318) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fXtrZ-000314-1T for bug-gnu-emacs@gnu.org; Tue, 26 Jun 2018 15:42:53 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=runbox.com; s=rbselector1; h=Content-Type:MIME-Version:Message-ID:Date:Subject:To:From; bh=SxOEP4TUPQHZz9D+c6NaxQ7lPSCK9eLrizPu+L7dIqw=; b=jD8OairVxRY5vbbjN86y9z1fM Z/3gOaDSSgYLIJuB/9KnZ514eDIbzcDZrFXURRpyQ3wtp9hnWkXM0aIXzas0fxOvRaxVe1DK5mQQN OqukFfkowXFEP3OBzzOAPujH2Nxl+6AVpGSMy44xr7xaMcC9wZGrtmdwAVGs+0I81v7ku2AYfRVBj m3uZ930xtOR0fWKnvMtpfFH+SkKeZccBkagn+xAOUkMpcFzvUAQcm1ZMaVTTd1x8j1AWgv4YaxznV 1AgbvSzH25u7DKi6pg3+hVM9H9id1oB0xcEvMP/3IsAPONyOn2Nvh6/UySArDIWV0momWfUzU/K5z lB8x7PtAA==; Received: from [10.9.9.211] (helo=mailfront11.runbox.com) by mailtransmit02.runbox with esmtp (Exim 4.86_2) (envelope-from ) id 1fXtrW-00061Z-65 for bug-gnu-emacs@gnu.org; Tue, 26 Jun 2018 21:42:50 +0200 Received: from c-24-22-244-161.hsd1.wa.comcast.net ([24.22.244.161] helo=chinook) by mailfront11.runbox.com with esmtpsa (uid:179284 ) (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) id 1fXtrK-0005YN-3h for bug-gnu-emacs@gnu.org; Tue, 26 Jun 2018 21:42:38 +0200 From: Gemini Lasswell To: bug-gnu-emacs@gnu.org Subject: 26.1.50; IELM doesn't indent results printed with # Date: Tue, 26 Jun 2018 12:42:36 -0700 Message-ID: <871sctgwr7.fsf@runbox.com> MIME-Version: 1.0 Content-Type: text/plain X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -4.1 (----) 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: -5.1 (-----) When the result of evaluation in IELM is something with a printed representation beginning with #, such as a record or char-table, it is pretty-printed without indentation. To reproduce, M-x ielm RET and then evaluate this: (require 'cl-lib) (cl-defstruct (foo) a) (make-foo :a (lambda (x) (- 1 x))) Result: #s(foo :a (lambda (x) (- 1 x))) If you do the same thing in Emacs 25, this is the result: [cl-struct-foo (lambda (x) (- 1 x))] Here are two other examples which when evaluated in IELM print results without indentation in Emacs 26 and with indentation in Emacs 25: char-acronym-table (let ((ht (make-hash-table))) (puthash 1 '(a b c) ht) ht) Oddly, Emacs 26's IELM does indent the result of this one: (symbol-function 'ielm-process) From debbugs-submit-bounces@debbugs.gnu.org Wed Jun 27 22:01:44 2018 Received: (at 31984) by debbugs.gnu.org; 28 Jun 2018 02:01:44 +0000 Received: from localhost ([127.0.0.1]:38026 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fYMFk-0003t8-51 for submit@debbugs.gnu.org; Wed, 27 Jun 2018 22:01:44 -0400 Received: from mail-it0-f42.google.com ([209.85.214.42]:38565) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fYMFi-0003sn-Ce; Wed, 27 Jun 2018 22:01:42 -0400 Received: by mail-it0-f42.google.com with SMTP id v83-v6so10224626itc.3; Wed, 27 Jun 2018 19:01:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=BzkAkPIPYTW5n6pxXJwZobcIoK9AM5dT0Z3EIhHhEY0=; b=BdKAteatwqMntORme4wCQqnsFK3vHxte2emM77Tg73EtpMRrknFmQpkxJ5EscSlGmf sSJk+EZMbEcb5pGGVSdfaKAesAgwuZs7PFqNMc11Qk3xCntbHEc8/dQ3IV0NhgxEUS5z fEOZp9VhaLwBnBT0+f0c1OKMad9rQiIo2L0SLP2SsopGDhE21KeHCsJqWFFFjJ2FpJ5c gW23DBMlrjZDETAoavn7IPP2hIEzjd766FEviknJaP0THfozLB5aRNz6a7x12GiG4vrC xGRd5IdVuhK2sZYyUynqLhD2ygAKLTtJbBJbVaRCjIgfHSHMf8ypa6dHtb/rl82PwVaG YdpA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version; bh=BzkAkPIPYTW5n6pxXJwZobcIoK9AM5dT0Z3EIhHhEY0=; b=LLBU2q0t8f0G8K/gjlru4fL5HZm2UTdkN7KwwrQ4+s6vn2I1Ao8fAT93Sqg1tj+qeD BqSmp3TK3zsxHFWbRfzhszb+FET0YwHewEqSLwwi/vt8Q5XdGgL35vcKCQSWF0OGnFTK c2oy4UOnCvmp5sMyvJyPoYJu4lNBqM+7Ts3AX5Byfm8WInWmXrx4EDA3esC/Qz9iwFq6 4CjrpbV9ak6pWgEt0WvbWiyIr7M5zQVNXbGFJ1KoTp99MOzi/E3SjsQcZwN7Fj56k84c 1+9FCYzxLdx1kONnvUWr6hI3oAs2VwMuUCw4r27XS+mGS7Ajpf2CntVHp5BHrGQevOri iEbQ== X-Gm-Message-State: APt69E3MTYe3aL4ocrSylttQHIHzF0SaU+xwDiSBXk6vcRqxE95BNyTH 6p1zmZYG3ZP5xKtzalUlRx77Ng== X-Google-Smtp-Source: AAOMgpfyAAUhX7JaOZw3q90U/JSS/FMJaIfq5/NFgBUDzZY7UmDc2DcsMEQQOVkRTLJcZiM2st8Pdg== X-Received: by 2002:a24:a43:: with SMTP id 64-v6mr6960958itw.140.1530151296779; Wed, 27 Jun 2018 19:01:36 -0700 (PDT) Received: from zebian (cbl-45-2-119-34.yyz.frontiernetworks.ca. [45.2.119.34]) by smtp.googlemail.com with ESMTPSA id s3-v6sm1593391ioa.15.2018.06.27.19.01.34 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 27 Jun 2018 19:01:35 -0700 (PDT) From: Noam Postavsky To: Gemini Lasswell Subject: Re: bug#31984: 26.1.50; IELM doesn't indent results printed with # References: <871sctgwr7.fsf@runbox.com> Date: Wed, 27 Jun 2018 22:01:34 -0400 In-Reply-To: <871sctgwr7.fsf@runbox.com> (Gemini Lasswell's message of "Tue, 26 Jun 2018 12:42:36 -0700") Message-ID: <87muvfoeip.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 31984 Cc: 31984@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 (-) retitle 31984 26.1; indent-sexp doesn't indent expressions starting with # found 31984 26.1 tags 31984 + confirmed quit Gemini Lasswell writes: > When the result of evaluation in IELM is something with a printed > representation beginning with #, such as a record or char-table, > it is pretty-printed without indentation. > > To reproduce, M-x ielm RET and then evaluate this: > > (require 'cl-lib) > (cl-defstruct (foo) a) > (make-foo :a (lambda (x) (- 1 x))) > > Result: > > #s(foo :a > (lambda > (x) > (- 1 x))) Which is because pp-buffer doesn't indent this, which is because indent-sexp doesn't indent it, which is because indent-sexp now relies on forward-sexp to find the end, and forward-sexp only goes over the "#s". Another example: With point before the (foo), Emacs 25 indent-sexp turns this (foo) (blah etc) into this (foo) (blah etc) Emacs 26 indent-sexp doesn't do anything from that position. It's less clear which is correct in that case, but restoring to the Emacs 25 behaviour would fix the #s(...) case as well. Alternatively, we could fix elisp sexp movement to handle such expressions, which we should probably do anyway (see also Bug#15998). From debbugs-submit-bounces@debbugs.gnu.org Thu Jul 19 07:17:03 2018 Received: (at 31984) by debbugs.gnu.org; 19 Jul 2018 11:17:03 +0000 Received: from localhost ([127.0.0.1]:47561 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fg6ve-0003zh-W8 for submit@debbugs.gnu.org; Thu, 19 Jul 2018 07:17:03 -0400 Received: from mail-io0-f174.google.com ([209.85.223.174]:43406) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fg6vc-0003yz-HI; Thu, 19 Jul 2018 07:17:01 -0400 Received: by mail-io0-f174.google.com with SMTP id y10-v6so6738198ioa.10; Thu, 19 Jul 2018 04:17:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=PZLdySXUORZbi2/3JJ6kDenCz5xiMzPIeSwL81zloEA=; b=HQlsBu0RehfwaaloIm1Le+ugSwyOhKwsgWajwVnjd0m8SI3NIpgz8YVZR7JgO0p0+M QbuUAoayAlKLiLpYUgGh7EGVKaO0XyIyaIjc3KJNgMIp2bmbYP7XthQ55RELId1tfsdJ syxxxJj3afxRsJc6WTvOsdN9SrH6M8PGnNjxS9nL/oDffn+4i6YRQ5SHfe2DoexThfw1 gYf9qnd2Tg2PSafs0Sq8Hk5DF/E5F37qHkxUAku02O5cV1GX4FfIZwq4ElA6FuO+/Z3R Ko5+eTNPlUxhT4ovAjGN2af7LNDsbvwE7cRN70Gqi5fDUCZKPpsMQ4Ct8O1s1KuT6cs9 v/NA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version; bh=PZLdySXUORZbi2/3JJ6kDenCz5xiMzPIeSwL81zloEA=; b=t6BKEjFdJspxZzPENMa6EwYtvkCTdtdx/l5sfnsum4CLA1Fem+DDgNtaSb9MG4Dq62 jybczUiFybB8iyvhdIdYkFAi7BB2IGbm41pl5mXzx9wBR3nT+Cy5+mQbXWMPUGQaYf1y 8m02C7c8oM1pr3gpezKcLHB1QqTS5E/46tRuvWV1wiySK2p0FEP8c/OBoM2uk/lg4RA1 2/FpIOB4QGs9vEte3TQUQQ7k1XP8Vk9lT2pQKsMsNx2nhrDotHgRkjN2LAH5ALjx4zPj tOetXpDLwsUEuM7JF+4mOQ05Ix8GonBS8N0ZpkwKy6D96GDSxstnUxTnML9fL6fQRFHt thtQ== X-Gm-Message-State: AOUpUlG4okLxEvAxiC2H1ypxFbfv/AwG2gIVXAmLs2M8VVfkc2Sa00Cm X06ulvm29u0qQh4pHKpIXO5gjfsf X-Google-Smtp-Source: AAOMgpf4FwolND4h4fpL9hBwx8vBo3/i3FJkncdMYP+sfZBuYDNtpQlj4+tsN8NZvvF9hBLD3YGjug== X-Received: by 2002:a6b:9d0b:: with SMTP id g11-v6mr8534455ioe.85.1531999014783; Thu, 19 Jul 2018 04:16:54 -0700 (PDT) Received: from zebian (cbl-45-2-119-34.yyz.frontiernetworks.ca. [45.2.119.34]) by smtp.googlemail.com with ESMTPSA id g26-v6sm811431iti.0.2018.07.19.04.16.53 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 19 Jul 2018 04:16:53 -0700 (PDT) From: Noam Postavsky To: Gemini Lasswell Subject: Re: bug#31984: 26.1.50; IELM doesn't indent results printed with # References: <871sctgwr7.fsf@runbox.com> <87muvfoeip.fsf@gmail.com> Date: Thu, 19 Jul 2018 07:16:52 -0400 In-Reply-To: <87muvfoeip.fsf@gmail.com> (Noam Postavsky's message of "Wed, 27 Jun 2018 22:01:34 -0400") Message-ID: <87h8kv79wb.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux) MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 31984 Cc: 31984@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 (-) --=-=-= Content-Type: text/plain tags 31984 + patch quit Noam Postavsky writes: > With point before the (foo), Emacs 25 indent-sexp turns this > > (foo) (blah > etc) > > into this > > (foo) (blah > etc) > > Emacs 26 indent-sexp doesn't do anything from that position. It's less > clear which is correct in that case, but restoring to the Emacs 25 > behaviour would fix the #s(...) case as well. Alternatively, we could > fix elisp sexp movement to handle such expressions, which we should > probably do anyway (see also Bug#15998). Probably Bug#15998 won't be fixed in Emacs 26, so here's a patch to make indent-sexp indent the sexp spanning the end of line, like Emacs 25 does. --=-=-= Content-Type: text/x-diff Content-Disposition: inline; filename=0001-Fix-indent-sexp-of-s-.-Bug-31984.patch Content-Description: patch >From 3e206ed6c2c82ef3d147b3dece6dc65ffe1625a2 Mon Sep 17 00:00:00 2001 From: Noam Postavsky Date: Thu, 19 Jul 2018 06:40:54 -0400 Subject: [PATCH] Fix indent-sexp of #s(...) (Bug#31984) * lisp/emacs-lisp/lisp-mode.el (indent-sexp): Look for a sexp that ends after the current line. * test/lisp/emacs-lisp/lisp-mode-tests.el (indent-sexp-go): New test. --- lisp/emacs-lisp/lisp-mode.el | 10 ++++++++-- test/lisp/emacs-lisp/lisp-mode-tests.el | 12 ++++++++++++ 2 files changed, 20 insertions(+), 2 deletions(-) diff --git a/lisp/emacs-lisp/lisp-mode.el b/lisp/emacs-lisp/lisp-mode.el index 3a03b56313..44b27236a9 100644 --- a/lisp/emacs-lisp/lisp-mode.el +++ b/lisp/emacs-lisp/lisp-mode.el @@ -1199,8 +1199,14 @@ indent-sexp (setq endpos (copy-marker (if endpos endpos ;; Get error now if we don't have a complete sexp - ;; after point. - (save-excursion (forward-sexp 1) (point))))) + ;; after point. We actually look for a sexp which + ;; ends after the current line so that we properly + ;; indent things like #s(...). This might not be + ;; needed if Bug#15998 is fixed. + (let ((eol (line-end-position))) + (save-excursion (while (and (< (point) eol) (not (eobp))) + (forward-sexp 1)) + (point)))))) (save-excursion (while (let ((indent (lisp-indent-calc-next parse-state)) (ppss (lisp-indent-state-ppss parse-state))) diff --git a/test/lisp/emacs-lisp/lisp-mode-tests.el b/test/lisp/emacs-lisp/lisp-mode-tests.el index 8598d41978..0b052e9fc3 100644 --- a/test/lisp/emacs-lisp/lisp-mode-tests.el +++ b/test/lisp/emacs-lisp/lisp-mode-tests.el @@ -113,6 +113,18 @@ lisp-mode-tests--correctly-indented-sexp ;; we're indenting ends on the previous line. (should (equal (buffer-string) original))))) +(ert-deftest indent-sexp-go () + "Make sure `indent-sexp' doesn't stop after #s." + ;; See https://debbugs.gnu.org/cgi/bugreport.cgi?bug=31984. + (with-temp-buffer + (emacs-lisp-mode) + (insert "#s(foo\nbar)\n") + (goto-char (point-min)) + (indent-sexp) + (should (equal (buffer-string) "\ +#s(foo + bar)\n")))) + (ert-deftest lisp-indent-region () "Test basics of `lisp-indent-region'." (with-temp-buffer -- 2.11.0 --=-=-=-- From debbugs-submit-bounces@debbugs.gnu.org Thu Jul 19 15:01:37 2018 Received: (at 31984) by debbugs.gnu.org; 19 Jul 2018 19:01:37 +0000 Received: from localhost ([127.0.0.1]:48537 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fgEBF-0006hv-6h for submit@debbugs.gnu.org; Thu, 19 Jul 2018 15:01:37 -0400 Received: from aibo.runbox.com ([91.220.196.211]:41782) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fgEBD-0006hn-NO for 31984@debbugs.gnu.org; Thu, 19 Jul 2018 15:01:36 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=runbox.com; s=rbselector1; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date: References:Subject:Cc:To:From; bh=DDnTLeYX1LvQntKMifF7Hod0X3+TlrstFPH6SmZf80A=; b=No9ktk6JtC2NpIa/LT4pryVMS+ HCwqea9CObaFk7rW+wL2iJcWwbDRZ1NVoAbseU4qQUIS+3Cs4j2hcsg6Wdaavvw2S+MERk1Z2XSW1 ESo+WLZnc7modDzTp83zJJgKMPV6jn1UXm+Ac3m8Im9neW6fOE2CGllaOdFhSV2lsNPQMiH+IHNvr Bsmvxcd6uakglCWZWWwhEP+kg0gKTPYDeBjwkubP3PENxf9pOFygI9NiWvdPcvqGpzok24K8HPj56 Pa3phqctXbEcV37bq6Ufcm6Bqyx2kcIFp6ljrK3GQv/bDFDt57itexy4gxV47io3a4NMJ2INmUK+8 sQkSJg4Q==; Received: from [10.9.9.210] (helo=mailfront10.runbox.com) by mailtransmit03.runbox with esmtp (Exim 4.86_2) (envelope-from ) id 1fgEBC-0000H1-9H; Thu, 19 Jul 2018 21:01:34 +0200 Received: by mailfront10.runbox.com with esmtpsa (uid:179284 ) (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) id 1fgEAw-0005WR-Qm; Thu, 19 Jul 2018 21:01:19 +0200 From: Gemini Lasswell To: Noam Postavsky Subject: Re: bug#31984: 26.1.50; IELM doesn't indent results printed with # References: <871sctgwr7.fsf@runbox.com> <87muvfoeip.fsf@gmail.com> <87h8kv79wb.fsf@gmail.com> Date: Thu, 19 Jul 2018 12:01:10 -0700 In-Reply-To: <87h8kv79wb.fsf@gmail.com> (Noam Postavsky's message of "Thu, 19 Jul 2018 07:16:52 -0400") Message-ID: <87tvovdp8p.fsf@runbox.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 31984 Cc: 31984@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.7 (-) Noam Postavsky writes: > Probably Bug#15998 won't be fixed in Emacs 26, so here's a patch to make > indent-sexp indent the sexp spanning the end of line, like Emacs 25 > does. I gave this patch a try and it worked well with everything I tried it on, both in IELM and my new backtrace-mode. From debbugs-submit-bounces@debbugs.gnu.org Sat Jul 21 21:30:49 2018 Received: (at 31984) by debbugs.gnu.org; 22 Jul 2018 01:30:49 +0000 Received: from localhost ([127.0.0.1]:51478 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fh3Cz-00016q-0K for submit@debbugs.gnu.org; Sat, 21 Jul 2018 21:30:49 -0400 Received: from mail-it0-f42.google.com ([209.85.214.42]:36459) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fh3Cx-00016X-1Z; Sat, 21 Jul 2018 21:30:47 -0400 Received: by mail-it0-f42.google.com with SMTP id j185-v6so19294636ite.1; Sat, 21 Jul 2018 18:30:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=7oXqoKN4eR46DzMtHMP/7Id/+zGG+Q/3eK/pZtUbMsg=; b=Ogf1mceVEPqQgHy7JAR97desOCQfACUTKWT+IaQEPiXp2OvfVqOq+VWpBUhQ7xUCEu RSnek9fZb9SEvs2hwp0AMhhBf6kGn0z48Z2ZRH1RU2dDrgtLWZQtl6++Hyt6cp2iuwmG QViktizgSk19dC8uZOfz5Ft/3nWSiXLYWXBOM4OjtV+Wa+45/UHjrhDGRrrPoy5iij0M +AJE3xxYFYu5Xv9vxLgxmzDzJ+t2zccniyAUefdos8AkstI2gNO2W9bv/rW+GbNeS9Yj T+gK4BzdONUtoqlw2xSwlegnyDXkVva37ZAxPqkpoh85YLD9urVEwzZyFM9YUVIhem3O aUUg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version; bh=7oXqoKN4eR46DzMtHMP/7Id/+zGG+Q/3eK/pZtUbMsg=; b=paKGggkigaPPPslrXWxEYaxwAYmCFzxg7ymVy5w2SGzOIUFoqNo5VrGhpN+zG9OLQj 0E4ZALNkNs/YO1eKZUYA4pq5bijPMmLLzl4iAdRYmm558aI8G7CbYsgFmKRhfYVQKSGW eE21gB8G2zevP2VqQVeVVU8KZ0u7R2qPrXcRfFyzcn0WYGDPRFQTP3tp5+xDU11/ej5Z TQJyK+auwLmVHD2M9ttsvgnNW5QaQHkRUKil0A+rr+PGO/27Aul3Jk0Y370K8nHjDWJB Yh8O5qXoqOHTby6rSsyvU8702PC02U7AYpxgRUcGb0nLk5BaplWJdcPAZzcNoNs+zZPE kaGg== X-Gm-Message-State: AOUpUlHjJCuzTgwqiyht/IGobaROLI4OOrzrwhzdlToKUaqL1ZuR8Q2p n/ld2UyiIQ3yTrD+vv93oPzux4Lf X-Google-Smtp-Source: AAOMgpda4DVPg9fBiAGW//sdE0N+niq3noIktmfUsIYpZrhQljNHgy1IOh1wwvBTfyyO8wPi9tN0UA== X-Received: by 2002:a24:250f:: with SMTP id g15-v6mr6244404itg.108.1532223041216; Sat, 21 Jul 2018 18:30:41 -0700 (PDT) Received: from zebian (cbl-45-2-119-34.yyz.frontiernetworks.ca. [45.2.119.34]) by smtp.googlemail.com with ESMTPSA id p145-v6sm2247403iod.23.2018.07.21.18.30.40 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sat, 21 Jul 2018 18:30:40 -0700 (PDT) From: Noam Postavsky To: Gemini Lasswell Subject: Re: bug#31984: 26.1.50; IELM doesn't indent results printed with # References: <871sctgwr7.fsf@runbox.com> <87muvfoeip.fsf@gmail.com> <87h8kv79wb.fsf@gmail.com> <87tvovdp8p.fsf@runbox.com> Date: Sat, 21 Jul 2018 21:30:39 -0400 In-Reply-To: <87tvovdp8p.fsf@runbox.com> (Gemini Lasswell's message of "Thu, 19 Jul 2018 12:01:10 -0700") Message-ID: <87muuk5a68.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 31984 Cc: 31984@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 (-) tags 31984 fixed close 31984 26.2 quit Gemini Lasswell writes: > Noam Postavsky writes: > >> Probably Bug#15998 won't be fixed in Emacs 26, so here's a patch to make >> indent-sexp indent the sexp spanning the end of line, like Emacs 25 >> does. > > I gave this patch a try and it worked well with everything I tried it > on, both in IELM and my new backtrace-mode. Thanks for testing, I pushed to emacs-26. [1: 1b4b96597c]: 2018-07-21 21:07:07 -0400 Fix indent-sexp of #s(...) (Bug#31984) https://git.savannah.gnu.org/cgit/emacs.git/commit/?id=1b4b96597c7868d9c24389d83089097a521206a5 From debbugs-submit-bounces@debbugs.gnu.org Thu Jul 26 07:49:41 2018 Received: (at 31984) by debbugs.gnu.org; 26 Jul 2018 11:49:41 +0000 Received: from localhost ([127.0.0.1]:58430 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fiem5-0002XE-LS for submit@debbugs.gnu.org; Thu, 26 Jul 2018 07:49:41 -0400 Received: from mail-wr1-f46.google.com ([209.85.221.46]:40571) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fiem3-0002X1-P4 for 31984@debbugs.gnu.org; Thu, 26 Jul 2018 07:49:40 -0400 Received: by mail-wr1-f46.google.com with SMTP id h15-v6so1409929wrs.7 for <31984@debbugs.gnu.org>; Thu, 26 Jul 2018 04:49:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=FZ5TWAkwq7TYQ/cnA68D2W7RkwD7GExmXNu2CGqqTIc=; b=cfQMjoA+hXAGKtGhsix7c8xHlsJ8c0CnJ1idN1u3YBgiAZu67bwLh9NdcKDsHdGL1E yWQgYCTUYn0K66igBMJ3ROXIPg8P+8qJNox8GWQxUQKfWhfZFmgFAWMTdm9ahS93H8Ih 62llrZw/BT9O6UuIj4mdHQSdWGgVydaRwRP08OG/GpXGZFaDPGcNOjUs2v2g4YJWHygf Ni1ynwWv5XIjFH+kXivlBodAdEQZ/RWGvpGm1q0p+NuXr5ohPdEtBjbcFCGYvQ6NE7wD hN03XLaxzwoJxg7r0IhAI2fuL9z2fSLb+kfgYsdnls5Gx3En29BR5kslGFAcSKedjLLw jlZA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=FZ5TWAkwq7TYQ/cnA68D2W7RkwD7GExmXNu2CGqqTIc=; b=Pf90tjtiwg3qq1BjWvOeRjlKNwtY8qNOP/6tBQvSE5jr55HB8hAsDMvdDAs9yOQFDW 9uxQBbVNnNDrkZaRL+yu7hflRDnOM6Sn2E9oMatr75ZXwPJlet2n7EYez9XFYrJIZzqL xPSs0ftWvED3Yh1lLjVohYeHrmWS9t4rSjmgP7ReZyA0IhUQszB0qqXCNNij7ITXdlka yxpB6f2+utZM984s56Niup/rSha8jb0D6bfRj0A740wMSDRwBxuzval/EhVlZQFBIv5n V0TQ9HFpXFBhSo5DvSNUFtPgRcaDTJpNzt+CeXQym9akBwOKCUIua9ZP4eWhN6xc4Ad1 qhyg== X-Gm-Message-State: AOUpUlG0ql1wYBxYEDRP2ZUgUR1sOqV/Ll+LlvnvunQLG0HebJJ0ylmD LvoLaaFpc3XRUeR0LE8+l0GdGfaptlQHpgbvOoRZ+IcjqPE= X-Google-Smtp-Source: AAOMgpf+Lt2rhifpwycVFeU8g3/Xd53sWBoKAXsfXloGf41RnJm/+pMgk68SVIaYEVLZzj91YSoabOThNV/ALIA7CDo= X-Received: by 2002:adf:fa45:: with SMTP id y5-v6mr1428094wrr.138.1532605773682; Thu, 26 Jul 2018 04:49:33 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:adf:efcb:0:0:0:0:0 with HTTP; Thu, 26 Jul 2018 04:49:33 -0700 (PDT) From: Davor Rotim Date: Thu, 26 Jul 2018 13:49:33 +0200 Message-ID: Subject: Re: bug#31984: 26.1.50; IELM doesn't indent results printed with # To: 31984@debbugs.gnu.org Content-Type: multipart/alternative; boundary="000000000000b89a940571e596d3" X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 31984 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 (-) --000000000000b89a940571e596d3 Content-Type: text/plain; charset="UTF-8" Hello, this change seems to have broken Paredit, a quick recipe with Paredit installed: emacs -Q M-x package-initialize M-x enable-paredit-mode Now just press ( repeatedly, it errors out on the 2nd inserted pair and any other after that: forward-sexp: Scan error: "Containing expression ends prematurely", 4, 5 --000000000000b89a940571e596d3 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hello,

this change seems to = have broken Paredit, a quick recipe with Paredit installed:

<= /div>
emacs -Q
M-x package-initialize
M-x enable-pa= redit-mode

Now just press ( repeatedly, it errors = out on the 2nd inserted pair and any other after that:

forward-sexp: Scan error: "Containing expression ends prematu= rely", 4, 5
--000000000000b89a940571e596d3-- From debbugs-submit-bounces@debbugs.gnu.org Fri Jul 27 20:15:38 2018 Received: (at 31984) by debbugs.gnu.org; 28 Jul 2018 00:15:38 +0000 Received: from localhost ([127.0.0.1]:60653 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fjCtW-0004Ad-9e for submit@debbugs.gnu.org; Fri, 27 Jul 2018 20:15:38 -0400 Received: from mail-it0-f54.google.com ([209.85.214.54]:53460) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fjCtV-0004AS-F4 for 31984@debbugs.gnu.org; Fri, 27 Jul 2018 20:15:37 -0400 Received: by mail-it0-f54.google.com with SMTP id 72-v6so9930450itw.3 for <31984@debbugs.gnu.org>; Fri, 27 Jul 2018 17:15:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=FKXSC1FtwdtiTFgolpAjT3accmJKhWLvcO/UpU9N6Gw=; b=eL/Cg3+ALYD9+6/dDGJVAeCDXFykPTIc07zs4eeWlbmKsllcs3wb55FdyK5W1fUtCw NP2UULQ+3EIvhV07TTD9Mqf1nVVXxbi35vwwzb6r4kUW8Rk7VB4I/AuZTim4s9i6ZloO N8HsL/RXLxhCyYucOETeoRscROxpbCq8W1W7zjlvKmQpN7CKMshD/dHkc/D11MuHmMWO YICPFTEt4JsRD2aMID838ZDsBvjgkfqfcVrIQ7Gq47ag8dNhdBumXCx6MqtWJf1T9ZmT KPL/ZF11tHCJc8tkfj1cob7gHU0Yt+hRL6TC3Uf6CEEhcga67spQw0UL82JNB4kJ+coe zwhw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version; bh=FKXSC1FtwdtiTFgolpAjT3accmJKhWLvcO/UpU9N6Gw=; b=FIMeUAXh1T+7q1eT4k1Tbb8wkiIzah36ypj1ItQM4TdwofcT8Y/yXRYR+xBnWbXJzu vyNKWafIhkCIJOWNuiUfCw2vqzuJtkG8xHEV5Hu75C7XO8DEyEagUSwdX2sd+sV4YhAR AEwNEW7rH/WfHRbJjEK4Oj/K4EWiK3mPvip/MszdSLCclq53LwbqgWV3pcKfCNRRhVH2 50OdeT2Crs6DUZeQ/3SkwkLshOcRIKheznZO5NYSsCT62HMG7PNP8G0cWa3nSTGh+YjU 9UzOJZh1GN4vCfGSpbNBTSFEQ48TfsJ0nSIzeHCp/qw+2T79BjZPYiqeyHy0rCownMIT 6UPA== X-Gm-Message-State: AOUpUlFzSz/B8oEr86WPMtEKPdYf+myhXeLDxqWbToOs2JZKpU9QVE2F oJpybJ6VYgR7VGmOV369i6EsNQvk X-Google-Smtp-Source: AAOMgpeToDr+Ks22Op1JUYSL67OPHfAQoFqhIfGh2tCo61RZwL0UpQgWeY6p16Xkg3HsmCPHsLJ4ZA== X-Received: by 2002:a02:8c94:: with SMTP id f20-v6mr8129305jak.98.1532736931864; Fri, 27 Jul 2018 17:15:31 -0700 (PDT) Received: from zebian (cbl-45-2-119-34.yyz.frontiernetworks.ca. [45.2.119.34]) by smtp.googlemail.com with ESMTPSA id z2-v6sm2824141iti.3.2018.07.27.17.15.31 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 27 Jul 2018 17:15:31 -0700 (PDT) From: Noam Postavsky To: Davor Rotim Subject: Re: bug#31984: 26.1.50; IELM doesn't indent results printed with # References: <871sctgwr7.fsf@runbox.com> Date: Fri, 27 Jul 2018 20:15:30 -0400 In-Reply-To: (Davor Rotim's message of "Thu, 26 Jul 2018 13:49:33 +0200") Message-ID: <87o9es2p25.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 31984 Cc: 31984@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 (-) Davor Rotim writes: > emacs -Q > M-x package-initialize > M-x enable-paredit-mode > > Now just press ( repeatedly, it errors out on the 2nd inserted pair and any > other after that: > > forward-sexp: Scan error: "Containing expression ends prematurely", 4, 5 Right, thanks for catching that, should be fixed now. [1: 8579105393]: 2018-07-27 19:41:39 -0400 Don't fail to indent-sexp before a full sexp (Bug#31984) https://git.savannah.gnu.org/cgit/emacs.git/commit/?id=857910539313c0f2d89fe5626a41f1abe6c33ca7 From unknown Tue Jun 17 22:07:42 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Sat, 25 Aug 2018 11:24:05 +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