From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Zelphir Kaltstahl Newsgroups: gmane.lisp.guile.user Subject: Indentation with inline comments in Emacs Date: Sat, 16 Apr 2022 12:12:12 +0000 Message-ID: <675f8207-b178-6cbf-24a0-6e4e53a057f2@posteo.de> 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="21522"; mail-complaints-to="usenet@ciao.gmane.io" To: guile-user Original-X-From: guile-user-bounces+guile-user=m.gmane-mx.org@gnu.org Sat Apr 16 14:12:50 2022 Return-path: Envelope-to: guile-user@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 1nfhIH-0005P8-G6 for guile-user@m.gmane-mx.org; Sat, 16 Apr 2022 14:12:49 +0200 Original-Received: from localhost ([::1]:36694 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nfhIG-0001pD-1s for guile-user@m.gmane-mx.org; Sat, 16 Apr 2022 08:12:48 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:55198) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nfhHo-0001p2-6O for guile-user@gnu.org; Sat, 16 Apr 2022 08:12:20 -0400 Original-Received: from mout02.posteo.de ([185.67.36.66]:35785) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nfhHm-0006sv-73 for guile-user@gnu.org; Sat, 16 Apr 2022 08:12:19 -0400 Original-Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id B27CB240107 for ; Sat, 16 Apr 2022 14:12:13 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.de; s=2017; t=1650111133; bh=9NvZqP/lIxVlz9SiDktn/FNC+gVcnlxG4umWpDEwAWE=; h=Date:To:From:Subject:From; b=ZxAfsam/YNJySJiNMp8GUoDMQoRRztgjJxYQCCxcr9dv/tCHIfq1Azm9z00kQPo7c SXb2xCiOow3IKp5x2iXu/q7QRbl3T3O5FV61pLIb2nd0smWuOL80qtNeYquBxcFi2V FyKfeVE+m3gnCg78rimLBajsEbUnTdfuQ12ogilfCPYjQcKuFBmSH+0oVIIpaXEP2Y ei+bfeDKCH4h/vpe+RPnU01UCaX0L9RteD+ahSuo/C/WZ78V3+XyJxz2PKz9ndZa2d XLYtheKLyOfniTI/vDg+ueOnU3IIMTT6eE2MY3I48i9xseXeyhegJ5NJAQkaHFCHUt DeTmY+QlUDVag== Original-Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4KgXBP02y6z9rxT for ; Sat, 16 Apr 2022 14:12:12 +0200 (CEST) Content-Language: en-US Received-SPF: pass client-ip=185.67.36.66; envelope-from=zelphirkaltstahl@posteo.de; helo=mout02.posteo.de X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 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, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H5=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: guile-user@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: General Guile related discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guile-user-bounces+guile-user=m.gmane-mx.org@gnu.org Original-Sender: "guile-user" Xref: news.gmane.io gmane.lisp.guile.user:18241 Archived-At: Hello Guile users! The subject might not be only Guile related, but I figure, that many on this mailing list are using Emacs for writing Guile code. I wonder, if anyone has some trick for fixing the following indentation issue: Sometimes I want to put inline comments with #||# in things like lists, arguments for function calls or vectors. For example I want to write the name of the month next to the number of days of that month, in a vector creation. Here is the example: ~~~~ (define DAYS-IN-MONTH #(#|January|# 31 #|February|# 28 #|March|# 31 #|April|# 30 #|May|# 31 #|June|# 30 #|July|# 31 #|August|# 30 30 30)) ~~~~ As you can see, the indentation is adjusted each line according to the non-comment thing on the previous line, when I press TAB or whatever other key binding one has for indentation. However, in this case I would rather want it to adjust indentation. Is there a quick fix for this? Or some way to make Emacs understand this as a separate case and have it indent "correctly"? Does anyone have a solution? Regards, Zelphir -- repositories: https://notabug.org/ZelphirKaltstahl