From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: Spenser Truex Newsgroups: gmane.emacs.bugs Subject: bug#40059: lisp-mode indentation not aligned vertically Date: Fri, 13 Mar 2020 21:46:48 -0700 Message-ID: <8736ab4k7b.fsf@spensertruex.com> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="26301"; mail-complaints-to="usenet@ciao.gmane.io" To: 40059@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Mar 14 05:57:13 2020 Return-path: Envelope-to: geb-bug-gnu-emacs@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 1jCyrJ-0006i0-2w for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 14 Mar 2020 05:57:13 +0100 Original-Received: from localhost ([::1]:40746 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jCyrH-0002yQ-Li for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 14 Mar 2020 00:57:11 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:32938) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jCyr9-0002y8-UX for bug-gnu-emacs@gnu.org; Sat, 14 Mar 2020 00:57:04 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1jCyr8-00078P-VX for bug-gnu-emacs@gnu.org; Sat, 14 Mar 2020 00:57:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:54509) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1jCyr8-00077G-SF for bug-gnu-emacs@gnu.org; Sat, 14 Mar 2020 00:57:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1jCyr7-00059D-Rg for bug-gnu-emacs@gnu.org; Sat, 14 Mar 2020 00:57:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Spenser Truex Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 14 Mar 2020 04:57:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 40059 X-GNU-PR-Package: emacs X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.158416177119724 (code B ref -1); Sat, 14 Mar 2020 04:57:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 14 Mar 2020 04:56:11 +0000 Original-Received: from localhost ([127.0.0.1]:60482 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jCyqJ-000584-4I for submit@debbugs.gnu.org; Sat, 14 Mar 2020 00:56:11 -0400 Original-Received: from lists.gnu.org ([209.51.188.17]:41098) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jCyha-0004vw-DZ for submit@debbugs.gnu.org; Sat, 14 Mar 2020 00:47:11 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:56114) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jCyhZ-0002KO-3t for bug-gnu-emacs@gnu.org; Sat, 14 Mar 2020 00:47:10 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1jCyhY-0003m0-23 for bug-gnu-emacs@gnu.org; Sat, 14 Mar 2020 00:47:08 -0400 Original-Received: from spensertruex.com ([66.70.189.182]:49936) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1jCyhX-0003ga-SL for bug-gnu-emacs@gnu.org; Sat, 14 Mar 2020 00:47:08 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=spensertruex.com; s=myselector; t=1584161040; bh=FgSTuBF19JCsMFqiZEI4ugdL8wO+/qsNRQQExTNI3Ns=; h=From:To:Subject:Date; b=JD96K8Jwy8z7q4UudhXBk0DFnFuWPidgGOXBAz0keF8anUV7m/paSnZ/lA5jbWv3N aECcu0qGCylvm1CAPlgWtxZ0xqWnywUaFRsKiSdV7VGT0YUoSW79Mt2efaqdFtDymT P8FtNm+Tdi5CmZWxeUEkNAMiKmBZ2x1kd5Fu7VPuBN9btdby9C8CWcaVc2qUIT56hH WpmssEnqf5jqFEDD12DwIZ2oxava3V9V//BlALMD+D+UCSReohrnxwRKEIEdZ06cpi IykACuMb6UTnLPLUDB8v4vylEVAL8KNkExRw/+m2PaVr4QBMsRCtEuzcEb9G5rjMnI BWRb5VkMdy+1w== X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Mailman-Approved-At: Sat, 14 Mar 2020 00:56:10 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:177318 Archived-At: This code sample demonstrates what I consider to be a bug in the lisp-mode indentation. Here is a very simple example: (:a :b :c :d :e) Here it is in an actual use case (defining Common Lisp packages) (defpackage :example (:use :cl) ;; Here is the weird part: (:export :thing1 :thing2 :thing3 :thing4 :thing5)) A sane, non-buggy indentation would be this: (defpackage :example (:use :cl) ;; These are aligned vertically: (:export :thing1 :thing2 :thing3 :thing4 :thing5)) This seems to be primarily caused by the keyword argument as the first element of the unquoted list. This is especially an issue if using aggressive formatting like aggressive indent mode. -- Spenser Truex spensertruex.com SFSU Computer Science