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.bugs Subject: bug#69097: [PATCH] Add 'kill-region-or-word' command Date: Fri, 23 Feb 2024 03:04:25 +0000 Message-ID: References: <871q9g8z8k.fsf@posteo.net> <87ttm7gi9i.fsf@posteo.net> <87sf1obkw9.fsf@posteo.net> Reply-To: rms@gnu.org Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="13672"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 69097@debbugs.gnu.org To: Philip Kaludercic Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri May 03 18:16:18 2024 Return-path: Envelope-to: geb-bug-gnu-emacs@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 1s2va5-0003Li-P0 for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 03 May 2024 18:16:17 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1s2vZV-0007tR-Es; Fri, 03 May 2024 12:15:41 -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 1s2vZU-0007s1-4z for bug-gnu-emacs@gnu.org; Fri, 03 May 2024 12:15:40 -0400 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1s2vZT-00014r-Rh for bug-gnu-emacs@gnu.org; Fri, 03 May 2024 12:15:39 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1s2vZq-0003G4-13 for bug-gnu-emacs@gnu.org; Fri, 03 May 2024 12:16:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Richard Stallman Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 03 May 2024 16:16:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 69097 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 69097-submit@debbugs.gnu.org id=B69097.171475295212474 (code B ref 69097); Fri, 03 May 2024 16:16:01 +0000 Original-Received: (at 69097) by debbugs.gnu.org; 3 May 2024 16:15:52 +0000 Original-Received: from localhost ([127.0.0.1]:47076 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1s2vZf-0003F3-Pl for submit@debbugs.gnu.org; Fri, 03 May 2024 12:15:52 -0400 Original-Received: from mout01.posteo.de ([185.67.36.141]:55277) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1s2vZb-0003EO-LS for 69097@debbugs.gnu.org; Fri, 03 May 2024 12:15:50 -0400 Original-Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id DFB5F240027 for <69097@debbugs.gnu.org>; Fri, 3 May 2024 18:15:18 +0200 (CEST) Original-Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4VWG9f2q1Tz9rxG for <69097@debbugs.gnu.org>; Fri, 3 May 2024 18:15:18 +0200 (CEST) Resent-To: 69097@debbugs.gnu.org Resent-From: Philip Kaludercic Resent-Date: Fri, 03 May 2024 18:15:17 +0200 Resent-Message-ID: <87bk5m7tyi.fsf@posteo.net> Original-Received: from proxy02.posteo.name ([127.0.0.1]) by dovecot15.posteo.name (Dovecot) with LMTP id /ZC7I94J2GVQGgMAB3Nl4w for ; Fri, 23 Feb 2024 04:04:28 +0100 Original-Received: from proxy02.posteo.de ([127.0.0.1]) by proxy02.posteo.name (Dovecot) with LMTP id lQBIF7YI2GVU9QAAGFAyLg ; Fri, 23 Feb 2024 04:04:28 +0100 Original-Received: from mailin03.posteo.de (unknown [10.0.0.63]) by proxy02.posteo.de (Postfix) with ESMTPS id 4TgvxS1l1Lz11XQ for ; Fri, 23 Feb 2024 04:04:28 +0100 (CET) Original-Received: from mx03.posteo.de (mailin03.posteo.de [127.0.0.1]) by mailin03.posteo.de (Postfix) with ESMTPS id 2D8F3218CE for ; Fri, 23 Feb 2024 04:04:28 +0100 (CET) X-Posteo-Spam-Status: v=1; e=base64; a=aes-256-gcm; d=6b/NguHiEeBBnK+kf0H+VuobUNLsCzvt3RcT4IaiGEROyrUJtf/SAoo19N5kLLhGxSJY7hs1A 3ded1JbGkyh/l27ynLFOtim9HtNijLbw6OzldhCLfQ4c/m06a/EuTu0S21M9vfxtEiLoqxdAi/l DGhfNu6puBiwbQ4Ua8q4/+xfGvR7Yzcm6PbTYlVIz2Q7f9LuaELkpFWfwpl2zYNhnehU2SLcP5P aHjFMP+TKY1GSdWV17A/Q+OkUXnTKGhh9KCATtleC/lYKAxd3d6FDojdxyLxnKJ408+egLv6JfP WDEWGjxMp4S/PM6ByksHMOXB5xkNfihkf72EcO82Lr1FdfeXDP Authentication-Results: posteo.de; dmarc=pass (p=none dis=none) header.from=gnu.org Authentication-Results: posteo.de; spf=pass smtp.mailfrom=gnu.org X-Posteo-Antispam-Signature: v=1; e=base64; a=aes-256-gcm; d=UX1Mu6qlXc6Cwk244ve0WMyfqekIY5MLJuStOUvSOGuR531GuOLw4rwRdeiTmeN97eBhF65NLu98VBnyB9T+P7aOULJ+DgB0//3wj82ixaOJkm2PyojzRigHvetZHY3Si8IvrR94 Authentication-Results: posteo.de; dkim=pass (2048-bit key) header.d=gnu.org header.i=@gnu.org header.b=KVfHu46E; dkim-atps=neutral X-Posteo-TLS-Received-Status: TLSv1.2 Original-Received: from eggs.gnu.org (eggs.gnu.org [209.51.188.92]) by mx03.posteo.de (Postfix) with ESMTPS id 4TgvxR4VTzz11nj for ; Fri, 23 Feb 2024 04:04:27 +0100 (CET) Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rdLrN-0000j2-Fz for philipk@posteo.net; Thu, 22 Feb 2024 22:04:25 -0500 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=xfvUDTCTcnGYSFXjjsGHaCID0rC7bs8g9BDU5qMEEHQ=; b=KVfHu46EeQd/ +Nfv0al4t3ZViphHt91s4DQnAP7oVn10oXcHmuGFxLftG2/BBY20q8pJ4hsRaWxKs9QdOmw5qaC+B 4GR4nZIxKy/BR+ojffg2O7oYJnJp2d6gkzvywTCwSiLs6g2ecUAMTovWh30QGtC0Q3KTtRacodayj fiYnW3HEIt10+mWAopbrEyys1PA6zUqwud/A01PNgYk7ctXQOj8P+UZ0lKILgCiAhIh+ZAe2/ESEY D6K2nwYBXE1E6WNUG4ch7ceuMWn7yhJ1MVehKZxMFLP8pktCFFeRTPYY2k+O37rbC3evxEZb3jCb1 NfdZC3lvw+yy21h9mdwziA==; Original-Received: from rms by fencepost.gnu.org with local (Exim 4.90_1) (envelope-from ) id 1rdLrN-0004wj-5E; Thu, 22 Feb 2024 22:04:25 -0500 In-Reply-To: <87sf1obkw9.fsf@posteo.net> (message from Philip Kaludercic on Mon, 19 Feb 2024 14:15:18 +0000) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:284385 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. ]]] > My command boils down to using `use-region-p'. This makes usage > together with `transient-mark-mode' intuitive, because if you can see > the selection, you kill a region, otherwise a word is deleted. That seems natural. Have you tried putting this on M-d? It could be convenient but it could instead be disturbing and surprising. -- 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)