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 13:02:12 +0200 Message-ID: <85E96551-13EE-4DAA-8DFB-8190CDE68E7A@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> <77880442-05AB-40CC-ABA5-DDC40AC4413A@thornhill.no> <83ttwzotex.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="40286"; mail-complaints-to="usenet@ciao.gmane.io" Cc: jcs090218@gmail.com, 63141@debbugs.gnu.org, jostein@kjonigsen.net To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Apr 29 13:03:10 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 1psiM8-000AES-V2 for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 29 Apr 2023 13:03:10 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1psiM5-0007sE-2P; Sat, 29 Apr 2023 07:03:05 -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 1psiM3-0007qU-9c for bug-gnu-emacs@gnu.org; Sat, 29 Apr 2023 07:03:03 -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 1psiM2-0003qp-LW for bug-gnu-emacs@gnu.org; Sat, 29 Apr 2023 07:03:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1psiM2-0008Jj-GW for bug-gnu-emacs@gnu.org; Sat, 29 Apr 2023 07:03: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 11:03: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.168276613931906 (code B ref 63141); Sat, 29 Apr 2023 11:03:02 +0000 Original-Received: (at 63141) by debbugs.gnu.org; 29 Apr 2023 11:02:19 +0000 Original-Received: from localhost ([127.0.0.1]:35312 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1psiLK-0008IY-PI for submit@debbugs.gnu.org; Sat, 29 Apr 2023 07:02:19 -0400 Original-Received: from out-59.mta0.migadu.com ([91.218.175.59]:42533) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1psiLH-0008IO-C7 for 63141@debbugs.gnu.org; Sat, 29 Apr 2023 07:02:16 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=thornhill.no; s=key1; t=1682766133; 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=J6XGkKRNBt3bbD9S7lXRxzagnbPS5fxMKRB54G5JPDA=; b=Qa3zNPGsPA2vqP9YYXnQLiQB7fs8EQNZz/hgvQ2vPLh5k6pp2cJtgU0KPNihkh+X/EbUiD tjoM/HTlS+V87cYQ5kzR/xAjD76gstYf45na7zdKt8wCnlE4YekMuvz3EM6EEQ8Of89lhs Z2mq4o4JxQFaK6WxN+pd6L1UWW1yOZaOpNxy/B2ycU/I7+MnA8WGUhSvYL7ltaYXuTRHNF b3qo+zL3EU7heO198e/gbS1nJ/ute9rS7qW5RBvH1hz7LFhPCRGtei69esgHP/+DVAzyzQ 7Zv+xn4INTAw0OhnVV+wv224aZt4TttId2NxCqsOLbHjvSPyN2v5fZOvqyC1/g== X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. In-Reply-To: <83ttwzotex.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:260812 Archived-At: On 29 April 2023 12:48:54 CEST, Eli Zaretskii wrote: >> Date: Sat, 29 Apr 2023 12:40:30 +0200 >> From: Theodor Thornhill >> CC: 63141@debbugs=2Egnu=2Eorg, jostein@kjonigsen=2Enet >>=20 >> >> (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-line= up-dont-change) >> >> (substatement-open =2E 0))))) >> >> ``` >> >>=20 >> >> I consider it an awkward indentation, so better to change the defaul= t (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 th= at >> >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? >>=20 >> I agree=2E It's not a bug, but could absolutely be a missing feature/co= nsideration=2E I'd be happy to review a patch with the proposed changes, th= ough=2E > >The patch I can envision is to change the default c-offsets-alist=2E >But IMO we should only do that if many/most C# programs use the style >suggested by the OP=2E Agreed :)