From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Theodor Thornhill via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Newsgroups: gmane.emacs.bugs Subject: bug#63141: Incorrect indentation in csharp-mode Date: Sat, 29 Apr 2023 12:40:30 +0200 Message-ID: <77880442-05AB-40CC-ABA5-DDC40AC4413A@thornhill.no> 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> <83cz3nqkl5.fsf@gnu.org> Reply-To: Theodor Thornhill Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="16857"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 63141@debbugs.gnu.org, jostein@kjonigsen.net To: Eli Zaretskii , Jen-Chieh Shen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Apr 29 12:41:20 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 1psi0z-0004Ah-K7 for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 29 Apr 2023 12:41:18 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1psi0r-0005fp-Nc; Sat, 29 Apr 2023 06:41:09 -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 1psi0k-0005fL-OA for bug-gnu-emacs@gnu.org; Sat, 29 Apr 2023 06:41:05 -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 1psi0k-0000Oq-F1 for bug-gnu-emacs@gnu.org; Sat, 29 Apr 2023 06:41:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1psi0k-0007VL-6o for bug-gnu-emacs@gnu.org; Sat, 29 Apr 2023 06:41:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Theodor Thornhill Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 29 Apr 2023 10:41:02 +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.168276484028807 (code B ref 63141); Sat, 29 Apr 2023 10:41:02 +0000 Original-Received: (at 63141) by debbugs.gnu.org; 29 Apr 2023 10:40:40 +0000 Original-Received: from localhost ([127.0.0.1]:35293 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1psi0O-0007UY-BT for submit@debbugs.gnu.org; Sat, 29 Apr 2023 06:40:40 -0400 Original-Received: from out-9.mta0.migadu.com ([91.218.175.9]:18257) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1psi0J-0007UK-NM for 63141@debbugs.gnu.org; Sat, 29 Apr 2023 06:40:38 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=thornhill.no; s=key1; t=1682764834; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=L7ii4bstSChrecB/UkE/UZ3nVuYKBgr1fm2y0U/QPuE=; b=gqCyBcyK7Sd1C6mSvec8Og0Yo5ULgX51zoVLA2HROtUy7VkBEnz+J+eL7/sJPpCxtkaHGv t8kiQdkuuxlKUCtNGIc0AwcjjkvUvimAHsAxkEnbO+2l4J+hp15yzJJEAYTDJNbKxrOzBl 2xsqlYn1LhgROE3T0+O9nFCS7Fx+XaStl/TgDHRlesG1spX7DGoaRRW2kXjvu3AEhBofZj cVMHATRfYnpEbR8aj+y9cYRyEt9reM5eoc212/0+f3FX3/1wkte8lIQ8zbeF7CI25wd+jE USKWUZv63+h7r4iU2qEejhh3RltebYIuFzhTI+a4cXpexVNMD2srDatUTTQDWQ== X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. In-Reply-To: <83cz3nqkl5.fsf@gnu.org> X-Migadu-Flow: FLOW_OUT 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:260808 Archived-At: On 29 April 2023 08:16:38 CEST, Eli Zaretskii wrote: >> From: Jen-Chieh Shen >> Date: Fri, 28 Apr 2023 22:54:15 -0700 >> Cc: theo@thornhill=2Eno, 63141@debbugs=2Egnu=2Eorg, jostein@kjonigsen= =2Enet >>=20 >> > Isn't this user preference that is customizable via c-offset-alist? >>=20 >> Yes, it is=2E > >Then this is not a bug=2E > >> csharp-mode has the following: >>=20 >> ```elisp >> (c-add-style "csharp" >> '("java" >> (c-basic-offset =2E 4) >> (c-comment-only-line-offset =2E (0 =2E 0)) >> (c-offsets-alist =2E ((inline-open =2E 0) >> (arglist-intro =2E +) >> (arglist-close =2E 0) >> (inexpr-class =2E 0) >> (case-label =2E +) >> (cpp-macro =2E c-lineup-= dont-change) >> (substatement-open =2E 0))))) >> ``` >>=20 >> I consider it an awkward indentation, so better to change the default (= change to the expected >> behavior)=2E > >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=2E These customization options exist precisely so that >people who don't like the defaults could easily adjust Emacs to their >liking=2E Why would you impose your personal preferences on everyone >else, instead of letting them customize this as they see fit? I agree=2E It's not a bug, but could absolutely be a missing feature/consi= deration=2E I'd be happy to review a patch with the proposed changes, thoug= h=2E Thanks, Theo