From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Anand Tamariya Newsgroups: gmane.emacs.devel Subject: Semantic code formatting for Java Date: Tue, 29 Dec 2020 11:40:19 +0530 Message-ID: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="00000000000079652805b7943f67" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="5990"; mail-complaints-to="usenet@ciao.gmane.io" To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Tue Dec 29 07:11:20 2020 Return-path: Envelope-to: ged-emacs-devel@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 1ku8E3-0001T9-WD for ged-emacs-devel@m.gmane-mx.org; Tue, 29 Dec 2020 07:11:20 +0100 Original-Received: from localhost ([::1]:47504 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ku8E3-0004Xx-38 for ged-emacs-devel@m.gmane-mx.org; Tue, 29 Dec 2020 01:11:19 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:50680) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ku8DL-00046U-7s for emacs-devel@gnu.org; Tue, 29 Dec 2020 01:10:35 -0500 Original-Received: from mail-il1-x131.google.com ([2607:f8b0:4864:20::131]:36174) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ku8DJ-0004Ht-Be for emacs-devel@gnu.org; Tue, 29 Dec 2020 01:10:34 -0500 Original-Received: by mail-il1-x131.google.com with SMTP id u12so11326144ilv.3 for ; Mon, 28 Dec 2020 22:10:32 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=FFJY6baaDM4G1hfEpSN7xJMwajShJdOLH4Ad3eRrEVI=; b=WL5chquzwyxH3faoIG1F0HlAg3U5rpe3yp2aaXwJH+5C8sj0fpNbw9IoEW1Q/zTAL5 BFN8vI18QXBYgV9t2JfakhrSND9uGl5eoM5QatVqIrbYuss18o+jelTSVvRF7bFLeYd9 fJx9oVzxFYdF2zyQJ6mFpcDXRy4GKzUjDb4SjEDIzSBQVUzhCIhGfdTej9xlSvD6XWV+ vHx68dCgyHiH/JLKyv6Mde5yDjk0FSZ25q2IWYnYx2u2DnLVO+QswhyPfF1hJlgy2a6i xtQzooJhLV/blpDbK6/TgdEWoamhV3fMsIY2F/uHYSlm0sLUe9uIjoZ31F3gT6wKOSqt GOGw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=FFJY6baaDM4G1hfEpSN7xJMwajShJdOLH4Ad3eRrEVI=; b=uBYn3R5e1u1rMVSviyMT5vG78dGh//FXTJCK65CyF4TJ19eW8DePeotFrna1QAZcfv upO7+XZY7Qz2SppiUT7OLIt8mZA23EDI4J8OfVgJaxYDVCwa8r/iapRZjzfLsElRmAF6 yVNKBFeEDZcoBy+f+7sDQ6ln3Gjl4ATmPJSb7nG5zIIh1jzfw/50EXjwJzQApZs4T7mb 7HzoGm2wwHhJxDyNhqej2ltVqJYxrpc8IiihTMHrdMUHWZUdT6DAg2oe+NVkE15z9r6m T0N4fN7SvZtP01Ktz7i2UjdQAJkfZaKXDmwOCgdfjps1Uxx2ZnyIx1bqcSsGW2+BWjCJ EF0A== X-Gm-Message-State: AOAM532doekH/vtLQNCWGPhbKKZDJ/VD9wtbeR7MwxRqKKFVSL+gfEZx De4YaMzT7kGXeE2qhold+HQa13xsGWfA7kZ59ErYsV2BKf+p1A== X-Google-Smtp-Source: ABdhPJwfdCQ79V7+FP9ZSblPKrKy2ltFhyxzG0tzOgqsNU0ujdtgCRvE1QLn2ysEkXTAzlaaSzYTFzcCfNvtRhpuSto= X-Received: by 2002:a92:9510:: with SMTP id y16mr47350191ilh.26.1609222231515; Mon, 28 Dec 2020 22:10:31 -0800 (PST) Received-SPF: pass client-ip=2607:f8b0:4864:20::131; envelope-from=atamariya@gmail.com; helo=mail-il1-x131.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 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, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:262052 Archived-At: --00000000000079652805b7943f67 Content-Type: text/plain; charset="UTF-8" Hi, Here's an alpha release of code formatting for Java using semantic lexer. It aims to format according to Oracle Java conventions. This image shows a side-by-side comparison of Emacs formatting vs custom formatting. Patches are welcome. Code: semantic-indent-region Regards, Anand --00000000000079652805b7943f67 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hi,

Here's an alpha release of code=20 formatting for Java using semantic lexer. It aims to format according to Oracle Java conventions. This imag= e shows a side-by-side comparison of Emacs formatting vs custom formatt= ing.

Patches are welcome.=

Code: semantic-indent-region

Regards,

Anand

<= /div>
--00000000000079652805b7943f67--