From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#63141: Incorrect indentation in csharp-mode Date: Sat, 29 Apr 2023 09:16:38 +0300 Message-ID: <83cz3nqkl5.fsf@gnu.org> References: <83354ksb73.fsf@gnu.org> <875y9ge6gu.fsf@thornhill.no> <87zg6scomn.fsf@thornhill.no> <83y1mcqoyl.fsf@gnu.org> <87wn1wcj6s.fsf@thornhill.no> <87ttx0cj04.fsf@thornhill.no> <83jzxvqlz6.fsf@gnu.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="17042"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 63141@debbugs.gnu.org, jostein@kjonigsen.net, theo@thornhill.no To: Jen-Chieh Shen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Apr 29 08:17:26 2023 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 1psdtd-0004FL-W7 for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 29 Apr 2023 08:17:26 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1psdtM-0004Ac-V8; Sat, 29 Apr 2023 02:17:08 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1psdtG-00048p-6h for bug-gnu-emacs@gnu.org; Sat, 29 Apr 2023 02:17:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1psdtF-000569-UI for bug-gnu-emacs@gnu.org; Sat, 29 Apr 2023 02:17:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1psdtF-0000bK-PG for bug-gnu-emacs@gnu.org; Sat, 29 Apr 2023 02:17:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 29 Apr 2023 06:17:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 63141 X-GNU-PR-Package: emacs Original-Received: via spool by 63141-submit@debbugs.gnu.org id=B63141.16827489712242 (code B ref 63141); Sat, 29 Apr 2023 06:17:01 +0000 Original-Received: (at 63141) by debbugs.gnu.org; 29 Apr 2023 06:16:11 +0000 Original-Received: from localhost ([127.0.0.1]:34983 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1psdsR-0000a6-4c for submit@debbugs.gnu.org; Sat, 29 Apr 2023 02:16:11 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:44308) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1psdsN-0000Zh-Ov for 63141@debbugs.gnu.org; Sat, 29 Apr 2023 02:16:09 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1psdsH-0004rR-Ui; Sat, 29 Apr 2023 02:16:02 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=adhbgw++dyMKpNFlvnUuoRY9HGjdqDGXy5edjJEega8=; b=ViTJyVQb/dPm mAQ60mQKj13gpRUAbV+fSTmbRTnu0Uj9zD1C1jgqYJA3C6KJqKLB8SXPRH7mzFfZsAddA9BcukxRn vDSWj/mQm/K57+IPAQ5BTvzLELUlsx/MSF7XH29a58Kb0o3xlpB59D94+g2YH/jV3khnxAXK7uAF8 yUHq3uLqg3X0TOUKSF5f9395REq1Q49exlp+f2vERkDL0EWfgmjqiA+TgSmcAIjLXFXmP0qAe9r4K eTpvmPodyMGqTvhQGUiUSZmPOCvD6+DwoOvbD0LdZQ7avofIX/5J2PvspK2oaJnd/rY3gmI4DN/uu AOBE6nByAjEoHMbetJNUQA==; Original-Received: from [87.69.77.57] (helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1psdsH-0004J0-0G; Sat, 29 Apr 2023 02:16:01 -0400 In-Reply-To: (message from Jen-Chieh Shen on Fri, 28 Apr 2023 22:54:15 -0700) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list 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-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:260800 Archived-At: > From: Jen-Chieh Shen > Date: Fri, 28 Apr 2023 22:54:15 -0700 > Cc: theo@thornhill.no, 63141@debbugs.gnu.org, jostein@kjonigsen.net > > > Isn't this user preference that is customizable via c-offset-alist? > > Yes, it is. Then this is not a bug. > csharp-mode has the following: > > ```elisp > (c-add-style "csharp" > '("java" > (c-basic-offset . 4) > (c-comment-only-line-offset . (0 . 0)) > (c-offsets-alist . ((inline-open . 0) > (arglist-intro . +) > (arglist-close . 0) > (inexpr-class . 0) > (case-label . +) > (cpp-macro . c-lineup-dont-change) > (substatement-open . 0))))) > ``` > > I consider it an awkward indentation, so better to change the default (change to the expected > behavior). I'll let Theo and Jostein chime in regarding the accepted practices in C#, but in general it is not enough to hear from one or several users that they don't like the defaults in order for us to change the default behavior. These customization options exist precisely so that people who don't like the defaults could easily adjust Emacs to their liking. Why would you impose your personal preferences on everyone else, instead of letting them customize this as they see fit?