From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Visuwesh Newsgroups: gmane.emacs.devel Subject: Re: C-o Date: Tue, 02 Jul 2024 11:53:00 +0530 Message-ID: <87ed8c48jf.fsf@gmail.com> References: <87cynw7omw.fsf@dancol.org> 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="23455"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: Po Lu , Daniel Colascione , Alan Mackenzie , Dmitry Gutov , Stefan Kangas , emacs-devel@gnu.org To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Tue Jul 02 08:29:54 2024 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 1sOX1W-0005yw-Df for ged-emacs-devel@m.gmane-mx.org; Tue, 02 Jul 2024 08:29:54 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sOX11-0002gi-4Y; Tue, 02 Jul 2024 02:29:23 -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 1sOX0u-0002ck-Ol for emacs-devel@gnu.org; Tue, 02 Jul 2024 02:29:18 -0400 Original-Received: from mail-pg1-x543.google.com ([2607:f8b0:4864:20::543]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1sOX0t-0003tc-80 for emacs-devel@gnu.org; Tue, 02 Jul 2024 02:29:16 -0400 Original-Received: by mail-pg1-x543.google.com with SMTP id 41be03b00d2f7-7201cb6cae1so1979706a12.2 for ; Mon, 01 Jul 2024 23:29:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1719901753; x=1720506553; darn=gnu.org; h=content-transfer-encoding:mime-version:user-agent:references :message-id:date:in-reply-to:subject:cc:to:from:from:to:cc:subject :date:message-id:reply-to; bh=kizq7pZ3HZYV1+j3KCG/C8WCi4ZgNlfLanorUGuC7DE=; b=EvRXdrZOtoka+ylNi2sK+Di0rNr0FUeqTKOJsgjTQG3oVy1X7NE8nK666lWS+kksU+ 32v8l1/mKod/e9yR+Xlni3PSLZk/dK+zlzJMM1vAII/R/VwCEp+iSeOt3mHAi3R8t09x it8rS9Ur+1Z418hhYOpTQ6UVCGR14LbEqwnyvn+oG233Lu9Byqet4Ums5nVAwV0dJlyg KqiRAMTb5d/I5U9K/Kpp/zlTrra4BK0NwWNkpgryn+FUPpLHKGuk/tNsCe2YkDyS5r7o 7B9qJsnz64i5xbs379z4p3YpJZUXfz2uoygupzT0gMqhKI6YsLMSpvrTfLrzkjZvMro7 JbCQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1719901753; x=1720506553; h=content-transfer-encoding:mime-version:user-agent:references :message-id:date:in-reply-to:subject:cc:to:from:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=kizq7pZ3HZYV1+j3KCG/C8WCi4ZgNlfLanorUGuC7DE=; b=fqIs9IWaJXbN4tOH394RXj1LoyZ/s4x9gMXXiM6QALS3RV87RSmZHKaqy4XGJbUwhd 4EM1Lo8/H9Lqg9yrYpN3mO39zoYfYEHcsnCiZm1Mn5pS19wAQ5uPpA6Dkcuu/0ixpAlX NMgH5egZRP67/TAtYAhk8Fn6uXBkfasQwGOzvS6eMmc240TNn38fyBW22nTm4TcpMPqi dtRESfl0MlcEhjg+10GKYH4Tv7BtnZbivi76XRFea5dy6W1z0cwrfZrb5K5NyLIFs36w ZO9ubEUcgdbG6dePRUXQF24VcDdYjmKc8/JzKiy85gSA7lumsxbwghLI9Wi9Jo1YPk6V LPfQ== X-Forwarded-Encrypted: i=1; AJvYcCVApi9QB+YxeyaW107SSrsGHaKIitqNEKehpYqXD5SeXQEbtQTua/BfZcqbPPtUtd6/T6j9pTXY/Ri73hAP68UrSbdG X-Gm-Message-State: AOJu0YzpCKKOj0FWmWKQRZ9UoWZ8f09FaQZ/EQOvT/tahle+9l0wkj4Z d2MyUvZCkCU1LByMItI/T8z5hZmXyjPT4paZhxcwIuwYies2hHpT X-Google-Smtp-Source: AGHT+IF69yleAwi4lo3bfFsOD5c25itvPcrc2EtKkbSWiEGZR+V8cuXrsHasQ4tdWqYRdrM34xtv9A== X-Received: by 2002:a05:6a20:3d81:b0:1be:f783:3d64 with SMTP id adf61e73a8af0-1bef783410amr8076029637.28.1719901753358; Mon, 01 Jul 2024 23:29:13 -0700 (PDT) Original-Received: from localhost ([103.232.241.147]) by smtp.gmail.com with ESMTPSA id 98e67ed59e1d1-2c91d3ee4d6sm7924999a91.51.2024.07.01.23.29.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 01 Jul 2024 23:29:12 -0700 (PDT) In-Reply-To: (Stefan Monnier's message of "Mon, 01 Jul 2024 23:26:37 -0400") Received-SPF: pass client-ip=2607:f8b0:4864:20::543; envelope-from=visuweshm@gmail.com; helo=mail-pg1-x543.google.com X-Spam_score_int: 12 X-Spam_score: 1.2 X-Spam_bar: + X-Spam_report: (1.2 / 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_NONE=-0.0001, RCVD_IN_SBL_CSS=3.335, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no 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-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:321098 Archived-At: [=E0=AE=A4=E0=AE=BF=E0=AE=99=E0=AF=8D=E0=AE=95=E0=AE=B3=E0=AF=8D =E0=AE=9C= =E0=AF=82=E0=AE=B2=E0=AF=88 01, 2024] Stefan Monnier wrote: >>> I still think we need to find a better binding for C-o, FWIW. > [...] >>> What do you use it for? > > I'm also curious to know how people use `C-o`, which I never ever use. I primarily use it when I'm rewriting a sentence. I like to keep the old sentence around to compare it with the rewritten one but it is distracting to have them in the same paragraph so I move to beginning of the sentence if required and type C-o. I could type RET but that does not preserve the point. Finally, I join the lines together and kill the old sentence (I have M-j behave like M-- M-^). Note how I never have to move the point except initially. [ I should say that I find it more natural to think and manipulate text vertically downwards rather than vertically upwards like Emacs commands do. Which is why I find it hard to wrap my brain around transpose-lines and delete-indentation. It may be due to my using vi before Emacs. ] Like Po Lu says, it also comes in handy when you're typing in function parameters too. I started using C-o after enabling hard newlines though. Although RET still inserts hard newlines, my brain still thinks of RET as inserting soft newlines so I started to use C-o. Then I found cases for it outside of the hard-soft newline thingy. >> What do you expect? Opening a new line? > > Not sure what answer Daniel was looking for, but for me at least the > question is about the "context" where you use `C-o`. I hope I provided some context. Preservation of the point is very handy. I think I would enjoy C-M-o more in prog-mode but it is a lot more cumbersome to type. Perhaps, I should try rebinding C-o to C-M-o.