From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Richard Stallman Newsgroups: gmane.emacs.devel Subject: Re: Don't move to eol in end-of-defun? Date: Tue, 02 Aug 2022 23:46:14 -0400 Message-ID: References: Reply-To: rms@gnu.org Content-Type: text/plain; charset=Utf-8 Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="12635"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-devel@gnu.org To: Filipp Gunbin Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Wed Aug 03 05:47:03 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 1oJ5La-00034d-22 for ged-emacs-devel@m.gmane-mx.org; Wed, 03 Aug 2022 05:47:02 +0200 Original-Received: from localhost ([::1]:42950 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oJ5LY-0002fk-Us for ged-emacs-devel@m.gmane-mx.org; Tue, 02 Aug 2022 23:47:00 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:56818) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oJ5Kp-0001yh-EO for emacs-devel@gnu.org; Tue, 02 Aug 2022 23:46:15 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:34646) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oJ5Kp-0000rT-6S; Tue, 02 Aug 2022 23:46:15 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=Date:References:Subject:In-Reply-To:To:From: mime-version; bh=uW5UvFOpgE7aFujhMaSLTX/GaQ9CpEeHcQKHwrWizP4=; b=i9T5gJ+RtqdY FfEaUA+zq2ZT5EE7wPwbDAb7/ksEh3rh0Dcnrn3WA53Hhq9GkcAA3GwSEx8Q8DlX8QuaPdfzGRQuv N6ELvvsS5TdWnJA2UhjR1Re2mGumXMq+86MA55JDgmIGqWJ77dyIoY03eL/PBkPtRkXxNsQjTDRfa CPxB9+PfA34UbJW6UPK2vM9vxPPFaFC7HSOP9J0DXh3UIT+oogxbpDuQtMR98v4Kd0zt7+8WJ6jFq V730+rBFT6S4GsjgFdzzFR0Yge6PtQPU01kmBpslvsNljJg1sEsoiTvqMHqlo+cUTr8VLnKM5r9kz qaCY2ebhpGsVq80Y3TAHlw==; Original-Received: from rms by fencepost.gnu.org with local (Exim 4.90_1) (envelope-from ) id 1oJ5Ko-0005IW-Ot; Tue, 02 Aug 2022 23:46:14 -0400 In-Reply-To: (message from Filipp Gunbin on Wed, 27 Jul 2022 15:40:57 +0300) 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:293002 Archived-At: [[[ 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. If you want to end up at the closing delimiter, you can use C-M-a C-M-f. -- Dr Richard Stallman (https://stallman.org) Chief GNUisance of the GNU Project (https://gnu.org) Founder, Free Software Foundation (https://fsf.org) Internet Hall-of-Famer (https://internethalloffame.org)