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: Wed, 03 Aug 2022 15:37:24 +0300 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="40508"; 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: Richard Stallman Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Wed Aug 03 14:44:25 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 1oJDjb-000AJD-TP for ged-emacs-devel@m.gmane-mx.org; Wed, 03 Aug 2022 14:44:24 +0200 Original-Received: from localhost ([::1]:60278 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oJDja-0006im-Sh for ged-emacs-devel@m.gmane-mx.org; Wed, 03 Aug 2022 08:44:22 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:37942) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oJDd1-0005zL-G9 for emacs-devel@gnu.org; Wed, 03 Aug 2022 08:37:37 -0400 Original-Received: from wout3-smtp.messagingengine.com ([64.147.123.19]:58807) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oJDcx-0003CE-NN; Wed, 03 Aug 2022 08:37:34 -0400 Original-Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.west.internal (Postfix) with ESMTP id 8D753320024A; Wed, 3 Aug 2022 08:37:28 -0400 (EDT) Original-Received: from mailfrontend2 ([10.202.2.163]) by compute5.internal (MEProxy); Wed, 03 Aug 2022 08:37:28 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fastmail.fm; h= cc:cc: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=fm1; t=1659530248; x=1659616648; bh=j6SJ/LMK0d AojyvDtrHHDvF2WUKGyHDHM/lW7sRn6Zo=; b=bjXydZYzeKzxwCBGIp4O4G6rAI iH7hOH7CAKknqsbGNxyLYU2WGCWe8pUObZXfSCaqvXVIe7rnA5Nql4qq6fYnKrTP u3O5oz+EgRmH3FRMISr7gpCDUnyvo8cxpQrFI6x9Bmb2A9GlFz77EYdZKCNT74cI CRM7uIWe+Ke4g4UJSlLDYmRvEx1y3TTxt162cxNEWL33/cwx9/9/iTrFuog/VEiC HUaVqFhsIoCb3+HKtSkKcUzHZB3/9800x1pMZvRuuFK9PojCI5hjPzOe3WaY0XpP pp0FpxoLbgtcv9CGTgBe8VhDu9BfZoMGKr1DuLt8ag73OZXbTvA+ReNhQWzw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc: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=1659530248; x=1659616648; bh=j6SJ/LMK0dAojyvDtrHHDvF2WUKG yHDHM/lW7sRn6Zo=; b=lrZ3npe7/aUSuUhFr2NUenmqOTR7ENDttsmCGyUgWR/C NqW2RLfyUElPLlu0H/fhh3XMJzzx8fUwK/3vQv6AxR1QFnxxwJB01iPZmDfz/7yf F9vbI/JLeLcMgSxTTyXnOKfdQN0E5Gq4N+VxYgn5t4z/M2tgSryxomWUpReysdAf Rl5OEvAK6RqbXK6JP55Se14s8LszT/zjtfAYhBioIoRPLOnw7CzRwwajOv2pv9tO eMddPN5iM7jYsWy4jTKnWeJMz9YO3uLyTcCt1bAagySnxl5pfGe8EjlRDhhOksIx go1elQxnuA0ZT5mPqsp1pGu45NsmzaiolgM0//xFCA== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvfedrvddvjedgheegucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpefhvfevufgjfhgffffkgggtsehttd ertddtredtnecuhfhrohhmpefhihhlihhpphcuifhunhgsihhnuceofhhguhhnsghinhes fhgrshhtmhgrihhlrdhfmheqnecuggftrfgrthhtvghrnhepfffhjeevieeiiedutefghe ffleeiveeffeeftdekleehledufeeuueduheevieffnecuvehluhhsthgvrhfuihiivgep tdenucfrrghrrghmpehmrghilhhfrhhomhepfhhguhhnsghinhesfhgrshhtmhgrihhlrd hfmh X-ME-Proxy: Feedback-ID: id48c41f1:Fastmail Original-Received: by mail.messagingengine.com (Postfix) with ESMTPA; Wed, 3 Aug 2022 08:37:27 -0400 (EDT) In-Reply-To: (Richard Stallman's message of "Tue, 02 Aug 2022 23:46:14 -0400") Mail-Followup-To: Richard Stallman , emacs-devel@gnu.org Received-SPF: pass client-ip=64.147.123.19; envelope-from=fgunbin@fastmail.fm; helo=wout3-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, 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:293019 Archived-At: On 02/08/2022 23:46 -0400, Richard Stallman wrote: > [[[ To any NSA and FBI agents reading my email: please consider ]]] > [[[ whether defending the US Constitution against all enemies, ]]] > [[[ foreign or domestic, requires you to follow Snowden's example. ]]] > > > 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>, > > I'm not convinced. I made end-of-defun move to the newline between defuns, > usually, because there are situations where it is useful to end up there. > One of them is in C-M-h (mark-defun), but it's not that alone. > > I think these reasons apply to all languages, especially when there's > a blank line between the defuns. Yes, that will be the behavior. This post and example were about moving over the braces vs. moving into them, and <4> will really be on blank line between defuns. Thanks.