From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:306:2d92::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id QB8zNp85BGX6LQAAauVa8A:P1 (envelope-from ) for ; Fri, 15 Sep 2023 13:01:52 +0200 Received: from aspmx1.migadu.com ([2001:41d0:306:2d92::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id QB8zNp85BGX6LQAAauVa8A (envelope-from ) for ; Fri, 15 Sep 2023 13:01:51 +0200 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id A999751B95 for ; Fri, 15 Sep 2023 13:01:51 +0200 (CEST) Authentication-Results: aspmx1.migadu.com; dkim=none; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org"; dmarc=fail reason="SPF not aligned (relaxed), No valid DKIM" header.from=gmail.com (policy=none) ARC-Seal: i=1; s=key1; d=yhetil.org; t=1694775711; a=rsa-sha256; cv=none; b=pmexuGLLq3zkIv0uHkvPbiykoqUumiphDtkQt1NU9G7e3WbxrIK/nvhanc4NlnFHOG36r5 XneypQNWYfAWsGjdQpBtzGI7+NpYowuF8hxMDI23v6Z6npv/ExuxyH3f3t0FoylHC41qMD uNHIBZISKZnJPUaSSotU8H8k0ZFL4vWN+S/voNWzzLSnSSf0JHyrMw/ah1/py7QkhZyNtT OJmKQMXbEQBeYZnK6Y3r3QAMzbroW5U8c6MvdtNlI8U9Cnja5dZLj3UJYFXuPGCx6uPlrC TGleIXF+ec4W3KbUIIpflITlHjX+kfebo7lYODzIfB/6wKYctZj13K4sjdFmLA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1694775711; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post; bh=DnSMS0x35pEEa8dywE/lGbxp55E0DZDrJtzDYgxz+Bo=; b=BSg+Ic5o01BfBGPc4KE4jk0sUcIX/LlE37hrZMwRsRQbNlFWpbaazLs57aU3UIRtgg7Bz8 e+S2t4SVCv6H6qeiXGKOeTDNNJbRocAObWEyLHCXMP/Zrgvsh2sKLwL6vBmIxsKkQvECAZ j3LKraS4m0m56GpQLyDOuGUxzrFIX5nlv9NWtEvEGJUVTuS7VPUfSGwvcCKzkw1f10FXD9 oRocNGw8v3EJs7ohK5mNdZrsSU1qYSaTNNWcL+6+tEbspkZxZuHRf0XjFkXeSkbVJ+A+h5 d5ixpoO96e8K52MIcLYoJ8pDulBDEJWvZYJ+Ppdnb8VCTxnsW5AfqZA/7AUGgg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org"; dmarc=fail reason="SPF not aligned (relaxed), No valid DKIM" header.from=gmail.com (policy=none) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qh6Yw-0005iv-BH; Fri, 15 Sep 2023 07:00:38 -0400 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 1qh6Yi-0005dS-QK for emacs-orgmode@gnu.org; Fri, 15 Sep 2023 07:00:25 -0400 Received: from ciao.gmane.io ([116.202.254.214]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qh6Yg-000291-T6 for emacs-orgmode@gnu.org; Fri, 15 Sep 2023 07:00:24 -0400 Received: from list by ciao.gmane.io with local (Exim 4.92) (envelope-from ) id 1qh6Yc-000AAP-67 for emacs-orgmode@gnu.org; Fri, 15 Sep 2023 13:00:18 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: emacs-orgmode@gnu.org From: Max Nikulin Subject: Re: Preventing inadvertent global modifications Date: Fri, 15 Sep 2023 18:00:11 +0700 Message-ID: References: <87jzsuh55a.fsf@localhost> <87msxoc3qp.fsf@localhost> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.15.0 Content-Language: en-US, ru-RU In-Reply-To: <87msxoc3qp.fsf@localhost> Received-SPF: pass client-ip=116.202.254.214; envelope-from=geo-emacs-orgmode@m.gmane-mx.org; helo=ciao.gmane.io X-Spam_score_int: 13 X-Spam_score: 1.3 X-Spam_bar: + X-Spam_report: (1.3 / 5.0 requ) BAYES_00=-1.9, DKIM_ADSP_CUSTOM_MED=0.001, FORGED_GMAIL_RCVD=1, FORGED_MUA_MOZILLA=2.309, FREEMAIL_FORGED_FROMDOMAIN=0.25, FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.249, NICE_REPLY_A=-1.473, NML_ADSP_CUSTOM_MED=0.9, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: emacs-orgmode-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Spam-Score: -3.91 X-Spam-Score: -3.91 X-Migadu-Queue-Id: A999751B95 X-Migadu-Scanner: mx2.migadu.com X-TUID: z5ZBDGikEAhx On 14/09/2023 19:56, Ihor Radchenko wrote: > Max Nikulin writes: > >> C-u C-c C-q still realigns all tags in the buffer, so this option would >> not save me from getting huge diff. > > C-u C-c C-q is explicitly documented to do so. Surely, you may press > universal argument by accident, but so you do for, say, C-u C-u C-k, > deleting 16 lines at once. I am not sure if makes much sense to > intervene here. I have never tried to dispute that it is documented. The issue is not prefix argument and not namely aligning tags, but a lot of modifications scattered across file being invisible in the active frame. I do not remember if I had problems due to C-k, but adding some friction to C-w and M-w if the mark is too far away is in my plan. Fortunately I usually can notice that C-w deletes significant part of my file because mark was set in other window. So undo helps (attention is required however to not revert undo to redo and to stop at proper point). Since adjacent region may be unfolded in response to editing action, sometimes it is hard to figure out if effect of key hit is consistent with expectations. > I am reluctant (see the above), unless other users also think that such > feature would be useful. Since nobody joined to the thread, I assume it is my personal pain, perhaps related to Vim, perhaps to other experience. I can not say that I am investing noticeable amount of efforts to eliminate it, but I hope I will get better ideas in future.