From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Filipp Gunbin Newsgroups: gmane.emacs.devel Subject: Re: Don't move to eol in end-of-defun? Date: Mon, 01 Aug 2022 01:31:28 +0300 Message-ID: References: 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="18188"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (darwin) Cc: emacs-devel@gnu.org To: Daniel =?utf-8?Q?Mart=C3=ADn?= Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Mon Aug 01 00:32:45 2022 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 1oIHUJ-0004TZ-7w for ged-emacs-devel@m.gmane-mx.org; Mon, 01 Aug 2022 00:32:45 +0200 Original-Received: from localhost ([::1]:53046 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oIHUI-0002rb-Bv for ged-emacs-devel@m.gmane-mx.org; Sun, 31 Jul 2022 18:32:42 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:60144) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oIHTD-0001SF-8A for emacs-devel@gnu.org; Sun, 31 Jul 2022 18:31:35 -0400 Original-Received: from out4-smtp.messagingengine.com ([66.111.4.28]:44445) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oIHTB-0000Q8-9y for emacs-devel@gnu.org; Sun, 31 Jul 2022 18:31:34 -0400 Original-Received: from compute2.internal (compute2.nyi.internal [10.202.2.46]) by mailout.nyi.internal (Postfix) with ESMTP id 53AA65C00A3; Sun, 31 Jul 2022 18:31:31 -0400 (EDT) Original-Received: from mailfrontend2 ([10.202.2.163]) by compute2.internal (MEProxy); Sun, 31 Jul 2022 18:31:31 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fastmail.fm; h= cc:cc:content-transfer-encoding:content-type:date:date:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:sender:subject:subject:to:to; s=fm3; t=1659306691; x= 1659393091; bh=3vKw1qzn1VZ62TK3Zl1ZWiFYkFpp3bjjQvxLXvj04i8=; b=H e6Wo3gFtvIAvOkXcY5Y1z63eP84pl2THPkmXPlwd1XX5XLkLdSsXTi0zJi7glTUZ pCgeD+WmSvSQ6B1MfQEz3yxyOU9OG19wV1/iYKht/YRb5+Gw+zxIdVJ+DPm1Acld kvdtHAxPJwO+ScuUSey9iQHtQ0e83z3DzPVZeBercWbeJFuD1y5ss8ViLf6p67Sf om1+sDDofgnNuyTOGgBmeU+PU3v/JvVl4yzfWJpiFZ8hXK9Ed5MpOt54hro1YQpV 7OLqhGrkrGM6+lPDhrlj2bk/hTarDM0I/619/eSgWVg/P1Hdb8IJAZY1fFc/PTuU H5ozyuI1bJAQ+ZCxD3mfQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:date:date:feedback-id:feedback-id:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:sender:subject:subject:to:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm3; t=1659306691; x= 1659393091; bh=3vKw1qzn1VZ62TK3Zl1ZWiFYkFpp3bjjQvxLXvj04i8=; b=J wd3SNECWxl2XGRYZPF2TZCUGCGql+GKdYCv95yqs1jDsII5A5+O7oQ3iW3vpYIIX f89zjnLQHBD+Z3Qyxus0CZDk45raHP2mNmdmdD2dqGWScjJR2ZbGHRXCuBa6NHkk oJF5hgHaRu4EUfrzizGnE+4iBlS9u745yvcKgmDUYTMY0qHOjEStd7fe6HNe2fVA amf1TsgSkkwVyZEobwXcxImEVGM+LNeTfudnYhk0ImFlUkNa4W1M+HvpAO0gKQMk EUHOX2ewKRh7bJA16pTgZatLXMWoQXqv2YyIwn8VdRV7b54yCNC1iPg+RD+ShuDY ddjA6LjdEF4UwjKdYKy8w== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvfedrvddvvddgtddvucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhephffvvefujghffgffkfggtgfgsehtqhertddtreejnecuhfhrohhmpefhihhl ihhpphcuifhunhgsihhnuceofhhguhhnsghinhesfhgrshhtmhgrihhlrdhfmheqnecugg ftrfgrthhtvghrnhepfeelfeffteeiteeuvdettdfgheegveethfeuveejheejleeuiefg vedtiefhueegnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrh homhepfhhguhhnsghinhesfhgrshhtmhgrihhlrdhfmh X-ME-Proxy: Feedback-ID: id48c41f1:Fastmail Original-Received: by mail.messagingengine.com (Postfix) with ESMTPA; Sun, 31 Jul 2022 18:31:30 -0400 (EDT) In-Reply-To: ("Daniel =?utf-8?Q?Mart=C3=ADn=22's?= message of "Sun, 31 Jul 2022 01:40:16 +0200") Mail-Followup-To: Daniel =?utf-8?Q?Mart=C3=ADn?= , emacs-devel@gnu.org Received-SPF: pass client-ip=66.111.4.28; envelope-from=fgunbin@fastmail.fm; helo=out4-smtp.messagingengine.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 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, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_PASS=-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: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 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:292927 Archived-At: On 31/07/2022 01:40 +0200, Daniel Mart=C3=ADn wrote: > Filipp Gunbin writes: > >> In Java, it's a common style to have hanging parentheses: >> >> class C <1>{<2> >> void foo() { >> }<3> >> }<4> >> >> If we're at position <1> and press C-M-e, then it's logical to move to >> <4>, and that's what I implement in javaimp package, by defining my own >> beginning-of-defun-function / end-of-defun-function. > > If I yank your sample program in a buffer in Java mode, with point at > <1>, C-M-e goes to <4>, as expected. So I don=C2=B4t know why you need to > implement your own end-of-defun-function in your package. I'd like to not rely on java-mode (part of cc-mode). Thanks.