From debbugs-submit-bounces@debbugs.gnu.org Thu Jun 26 19:58:57 2025 Received: (at submit) by debbugs.gnu.org; 26 Jun 2025 23:58:57 +0000 Received: from localhost ([127.0.0.1]:55060 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1uUwUX-0005bI-UB for submit@debbugs.gnu.org; Thu, 26 Jun 2025 19:58:55 -0400 Received: from lists.gnu.org ([2001:470:142::17]:55124) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1uUwUJ-0005Yw-EL for submit@debbugs.gnu.org; Thu, 26 Jun 2025 19:58:49 -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 1uUwUD-0007ze-Mc for bug-gnu-emacs@gnu.org; Thu, 26 Jun 2025 19:58:33 -0400 Received: from mail-oa1-x42.google.com ([2001:4860:4864:20::42]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1uUwUB-0005Gb-SE for bug-gnu-emacs@gnu.org; Thu, 26 Jun 2025 19:58:33 -0400 Received: by mail-oa1-x42.google.com with SMTP id 586e51a60fabf-2e95ab2704fso1108100fac.3 for ; Thu, 26 Jun 2025 16:58:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1750982310; x=1751587110; darn=gnu.org; h=mime-version:message-id:date:subject:to:from:from:to:cc:subject :date:message-id:reply-to; bh=cend8FVuiEMzYP/5xhbeypqSP9wDoFMBnmgbFW9jK/c=; b=CQHA8GLEaUQfstCCroT/PZX949V0h4k5qlUd6f+Cg1aCvObxtjgD7QzMs/qVSh3xf5 taGHgsbAvs4ste3Q+hjwyOmWyA11RdoFE3pCfeJ9Hi2222SpiU8RR2kw/3Gb6Slma4bD n4U/m159YnRlFYomVxR0wTZXo+Q9yYl0CGW8eHM9HlGJwVpsBM3Aqg7CxuUpQ+Omu3rU dG4eyBV9o8ncbkNoq9s4os/RQ2ZZEN8MhY4yn2l6YUsy+4NBygvFFUgFVzXOZWmFoUne PH2Zzz2KuFbCfl6ZcC201RZlYEey6Fwy7g5VQ9pB+rHNkMYnOFbJm33KOSw8r/BgeRmG OeOw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1750982310; x=1751587110; h=mime-version:message-id:date:subject:to:from:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=cend8FVuiEMzYP/5xhbeypqSP9wDoFMBnmgbFW9jK/c=; b=HOnUuLXHiU1AK/j3iu9FMfx2XqBQYAzrdai8sWXf6uFSjhtIqjrsw1aFL4hdvfhmNZ qnuUSop+9NGxe2Qx8eCu5p3bn8PDzjXFNzhb4dCfjirfaIdY3+82/vATUlDawngOGSee ZZTlLdBk1NAQ7n2YU1i7leY+qPpa9PqtWjEUps+Zv6/ll4gHwqzlLiAy1tUIFboFCE3g QFaIzsuNZpK6i4NS8Q/5UQTGRKuKqhidSNAqsGyF9MT4A8HqX73RbIUg1zF4iU4zLvzm XAft7TVDuemAxJvFkTDIgRYrvB9oNWDLchOE8/o3oynIe+oYiRUENCSq4gaTAth0sexr dOzQ== X-Gm-Message-State: AOJu0YxGQfXD/4pLTAQmJaGNDN1rt/SsSlI4PJjySn0GPxcfU/jdssGn x8R3SDNsqHpxeZ+cgdQkm0fwwhc7Fl0Oq7NMAAQ8OCenLawf8Fh/93lM2FT+O2xQ X-Gm-Gg: ASbGnctmyP7JhJ2ReN3uA712HNkNhEvR7hkFuwuOdbf/bqr+ZD87RLHPTqSkmQCxHDu U3JYY3fa1XULY0g+mNR8lp0EsME6fSxcmL274VwBQYG+1OcGFmQkkL3dD6opTDg82ooPsWnGm4l JkIk4SXwg2ZQu0WU9xDKsM8Iqc+ufy9DR/lgsqlrfwboWltX/hyY5zjRDmawxZubVqRUaT97SvJ DBZC6BDf/1bj0rz8vogxnWkC2pTLbBhOPVrdTnVPKoOaH9ycPu2QcShioc5XjcYUHyDXbUrqLC+ aWg767V79ODgvyaJ2pCBsz3fbNuRHw== X-Google-Smtp-Source: AGHT+IHfl401KjrOCXsW0A2NSK89gL4KdBcJX36e6DTDFFAZiS+Kegs0ofhQNd82HaxT4a+Udea8Tw== X-Received: by 2002:a05:6871:ea09:b0:2c2:5f8c:4630 with SMTP id 586e51a60fabf-2efed0efac8mr712632fac.0.1750982309765; Thu, 26 Jun 2025 16:58:29 -0700 (PDT) Received: from fedora ([2806:10ae:e:b56a::1]) by smtp.gmail.com with ESMTPSA id 586e51a60fabf-2efd512d59bsm600543fac.45.2025.06.26.16.58.28 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 26 Jun 2025 16:58:29 -0700 (PDT) From: =?utf-8?Q?Elijah_Gabe_P=C3=A9rez?= To: bug-gnu-emacs@gnu.org Subject: [PATCH] Add 'forward-delete-char-hungry' command X-Debbugs-Cc: Date: Thu, 26 Jun 2025 17:58:27 -0600 Message-ID: <87ldpevyvw.fsf@gmail.com> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Received-SPF: pass client-ip=2001:4860:4864:20::42; envelope-from=eg642616@gmail.com; helo=mail-oa1-x42.google.com X-Spam_score_int: -17 X-Spam_score: -1.8 X-Spam_bar: - X-Spam_report: (-1.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_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: 1.2 (+) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: Tags: patch Hello, This patch adds a new command similar to `backward-delete-char-untabify`, but intended to be used forward. Content analysis details: (1.2 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [2001:470:142:0:0:0:0:17 listed in] [list.dnswl.org] 0.2 FREEMAIL_ENVFROM_END_DIGIT Envelope-from freemail username ends in digit (eg642616[at]gmail.com) 1.0 SPF_SOFTFAIL SPF: sender does not match SPF record (softfail) -0.0 SPF_HELO_PASS SPF: HELO matches SPF record 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (eg642616[at]gmail.com) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.2 (/) --=-=-= Content-Type: text/plain Tags: patch Hello, This patch adds a new command similar to `backward-delete-char-untabify`, but intended to be used forward. I had originally planned to add the `untabify` method like `backward-delete-char-untabify`, but I found a few bugs while testing it (the reason is annotated in the patch), so I decided to keep the hungry methods. --=-=-= Content-Type: text/patch Content-Disposition: attachment; filename=0001-Add-forward-delete-char-hungry-command-Bug.patch >From 7a88ca429fa857ec10b2985e17a3ceaf77d97681 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?El=C3=ADas=20Gabriel=20P=C3=A9rez?= Date: Wed, 14 May 2025 17:58:47 -0600 Subject: [PATCH] Add 'forward-delete-char-hungry' command (Bug#) * etc/NEWS: Announce changes. * lisp/simple.el (forward-delete-char-hungry-method): New user option. (forward-delete-char-hungry): New command. --- etc/NEWS | 16 +++++++++++++++ lisp/simple.el | 53 ++++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 69 insertions(+) diff --git a/etc/NEWS b/etc/NEWS index eb85baae341..17d156c3c20 100644 --- a/etc/NEWS +++ b/etc/NEWS @@ -619,6 +619,22 @@ sentence. The new command 'fill-region-as-paragraph-semlf' fills a region of text using semantic linefeeds as if the region were a single paragraph. +--- +** New command 'forward-delete-char-hungry'. +This command delete all whitespace forward or only one character. +The exact behavior depends on 'forward-delete-char-hungry-method'. + +--- +** New user option 'forward-delete-char-hungry-method'. +This option controls the method for used in 'forward-delete-char-hungry' +and can have the following values: + +'hungry' for delete all whitespace, both tabs and spaces. + +'all' for delete all whitespace, including tabs, spaces and newlines. + +nil (the default) for just delete one character, including tabs. + * Changes in Specialized Modes and Packages in Emacs 31.1 diff --git a/lisp/simple.el b/lisp/simple.el index fa173b26289..701597569e1 100644 --- a/lisp/simple.el +++ b/lisp/simple.el @@ -6667,6 +6667,59 @@ backward-delete-char-untabify ;; Avoid warning about delete-backward-char (with-no-warnings (delete-backward-char n killp))))) +(defcustom forward-delete-char-hungry-method nil + "The method for hungry deleting forward. +Can be `hungry' -- delete all whitespace, both tabs and spaces; + `all' -- delete all whitespace, including tabs, spaces and newlines; + nil -- just delete one character, including tabs." + :type '(choice (const hungry) (const all) (const nil)) + :version "31.1" + :group 'killing) + +(defun forward-delete-char-hungry (arg &optional killp) + "Delete all whitespace forward or only one character. +The exact behavior depends on `forward-delete-char-hungry-method'. + +Delete ARG chars, and kill (save in kill ring) if KILLP is non-nil. + +This is similar to `backward-delete-char-untabify' which see." + (interactive "*p\nP") + (if (and (use-region-p) + delete-active-region + (= arg 1)) + ;; Delete the text of the region and deactivate the mark, in the + ;; same way that `delete-forward-char' does. + (with-no-warnings (delete-forward-char 1 killp)) + + ;; FIXME: The untabify method makes cursor move to end of + ;; tabs/spaces when `undo' or `undo-redo' are used, which is + ;; annoying. + + ;; (when (eq forward-delete-char-hungry-method 'untabify) + ;; (let ((count arg)) + ;; (save-excursion + ;; (while (and (> count 0) (not (eobp))) + ;; (if (= (following-char) ?\t) + ;; (let ((col (current-column))) + ;; (forward-char 1) + ;; (setq col (- (current-column) col)) + ;; (insert-char ?\s col) + ;; (delete-char -1))) + ;; (forward-char 1) + ;; (setq count (1- count)))))) + (let* ((skip (cond ((eq forward-delete-char-hungry-method 'hungry) " \t") + ((eq forward-delete-char-hungry-method 'all) " \t\n\r"))) + (n (if skip + (let* ((oldpt (point)) + (wh (- (save-excursion + (skip-chars-forward skip) + (constrain-to-field nil oldpt)) + oldpt))) + (+ arg (if (zerop wh) 0 (1- wh)))) + arg))) + ;; Avoid warning about delete-forward-char + (with-no-warnings (delete-forward-char n killp))))) + (defun char-uppercase-p (char) "Return non-nil if CHAR is an upper-case character. If the Unicode tables are not yet available, e.g. during bootstrap, -- 2.50.0 --=-=-= Content-Type: text/plain -- - E.G via GNU Emacs and Org. --=-=-=-- From debbugs-submit-bounces@debbugs.gnu.org Fri Jun 27 02:37:40 2025 Received: (at 78909) by debbugs.gnu.org; 27 Jun 2025 06:37:41 +0000 Received: from localhost ([127.0.0.1]:59497 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1uV2iR-0008Iy-4L for submit@debbugs.gnu.org; Fri, 27 Jun 2025 02:37:40 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:37400) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1uV2iP-0008Hx-1b for 78909@debbugs.gnu.org; Fri, 27 Jun 2025 02:37:37 -0400 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 1uV2iI-0004IA-4c; Fri, 27 Jun 2025 02:37:30 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-version:References:Subject:In-Reply-To:To:From: Date; bh=UUZyKbwaee6Qewy0oYNOwL977H78BIuUaj+L+lU8vJw=; b=DF9hdt5T4+YU7VCLP48A 9C//lJzq+qhsa9ztoM72egzmY/mMr7sKHcw6/On4sIOJDjxeWU+cA4K1W8N6r9IOAsaQjkJx+rKWA s1ITeLGu4+n+37KOcDSsbVIZyAHL8988EXKy4ZYYYFFyaI0aCcX9bMzAJlHfJlZlTY5qGzXJQaQXO 2borBpeYnlItQs2Vz5uqtky4N6WUnp6PM45U2qZ8VeG/IQsIU5SLRbw6+VMnpAvkCj3pF1DrPgYqe GunBDfmpSfVc3I79OSIHSyNYHqefKZO2BDlMm/7SV0FaPi9rKiFZl9C8/epKWlSA2CK2oY3YZrZHP yp+xTQ/p847SBw==; Date: Fri, 27 Jun 2025 09:37:26 +0300 Message-Id: <86ecv5bsgp.fsf@gnu.org> From: Eli Zaretskii To: Elijah Gabe =?utf-8?Q?P=C3=A9rez?= In-Reply-To: <87ldpevyvw.fsf@gmail.com> (message from Elijah Gabe =?utf-8?Q?P=C3=A9rez?= on Thu, 26 Jun 2025 17:58:27 -0600) Subject: Re: bug#78909: [PATCH] Add 'forward-delete-char-hungry' command References: <87ldpevyvw.fsf@gmail.com> MIME-version: 1.0 Content-type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 78909 Cc: 78909@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) > From: Elijah Gabe Pérez > Date: Thu, 26 Jun 2025 17:58:27 -0600 > > This patch adds a new command similar to > `backward-delete-char-untabify`, but intended to be used forward. Thanks, but can you describe the rationale? backward-delete-char-untabify exists because when the indentation is done with TABs or a mix of TABs and SPCes, decrementing the indentation by one column might involve replacing a TAB with the equivalent number of SPC characters. But this new command doesn't have a comparable feature, whereby it "outdents" the line by one column? Instead, it seems it deletes the first character following point, which means if that character is a TAB, the indentation will be decreased by more than one column. So what is the purpose of having this command, and what are the use cases where it would be useful? From debbugs-submit-bounces@debbugs.gnu.org Fri Jun 27 03:57:09 2025 Received: (at 78909) by debbugs.gnu.org; 27 Jun 2025 07:57:09 +0000 Received: from localhost ([127.0.0.1]:60460 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1uV3xM-00052D-W6 for submit@debbugs.gnu.org; Fri, 27 Jun 2025 03:57:09 -0400 Received: from mail-wm1-x335.google.com ([2a00:1450:4864:20::335]:54674) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84_2) (envelope-from ) id 1uV3xK-00050U-F4 for 78909@debbugs.gnu.org; Fri, 27 Jun 2025 03:57:07 -0400 Received: by mail-wm1-x335.google.com with SMTP id 5b1f17b1804b1-453398e90e9so12927465e9.1 for <78909@debbugs.gnu.org>; Fri, 27 Jun 2025 00:57:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1751011020; x=1751615820; darn=debbugs.gnu.org; h=content-transfer-encoding:mime-version:message-id:date:references :in-reply-to:subject:cc:to:from:from:to:cc:subject:date:message-id :reply-to; bh=WL4zMX68SXjOudVz6kxjXznfas5DV6IRsEg70ODIfFs=; b=PwA38VdeO35kgYhv/7F5uv7WtCqRkxA7Lj3975v9tEVaOaEdhSZuHNBWBV9vNbAXY9 o7FzKsW0UAgUZfVOwUEOE/9Y8qVBTzy4XF1JcN2NEc/EoVZk6x3PEp1jfcu4eeLe2Goe 7fBHV6opMeKq9Xuv1YDigbKP/KNL1+9QgNwxKVT/6FeRZow1SjGaqA5eWGdVrMhA/+gC teXh8WOcqTJ6joMvs084No14cNBE53xo7U4cmerd/PVlpacCTvThqcTwbTwrU20n7/tL r8xrcPaYshirDIqSSNr+Z4rK0+wSACM5dWqkTs1FqphhYI15tqhJ1UR3r6ooON0n8uQ8 YyNw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1751011020; x=1751615820; h=content-transfer-encoding:mime-version:message-id:date:references :in-reply-to:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=WL4zMX68SXjOudVz6kxjXznfas5DV6IRsEg70ODIfFs=; b=ghinWVTQnsUtKqw1Mshpmz1pbfn2g4YBKEyD+WgQfEwOGKUdJ5JBZCVB9VXE2+pzqM 7SjyTQQSfn8he2dFSIpXyC06a83ah3gBKpluxtaTWJjEe5TMew0hrgPvvblEsROrJmAI IFqke+akNenXBdGhURVnYsu/lhWuhl7jNJWtZ7TvRAeTxPSYFXDvOj3RtzOEYGClYNq3 DL+284PuuiW0PUHHK3ExLYIkSxSzUA+COTZs2KXEhrPaVr/pxyEla17/681DBtmOq4sT vE0uRB7ofRe08g1PFhNcW0uvwPwY1l0vsW5u1p5KlGyPIg1FKT+32p05PGkHSCCPlify p1qQ== X-Forwarded-Encrypted: i=1; AJvYcCVuQANFp5TerR30hFkiVKjV7DcmXRm+bbVhC0Sr6dnfuJPRfj4HBLoUGARksTU/1WNG+MU4ag==@debbugs.gnu.org X-Gm-Message-State: AOJu0YyYDbDWA8nkW5oEWzHkLdDeQhRWdMCgTISBMMfr5zSsvqX94nUr PJgjMjMHvqS5+Vmdpl0YSO1DZE4WW8+tST1oS5dKIyrkeUrCxp5Drq9Wz9A8gQ== X-Gm-Gg: ASbGncv4BE3svVOB4xOwkllJSN+g1+d+kK4e1oZ2sEa+iS8E0b7y8h2+KI+6y1I6oDG wkwb2/ZdZrJEVEydGoUV7AiDcjTDuGNiFtaphX3ZKLovbS3IPCVAzx7Z9Vc3KyD6ARKkbRpNUde OOk9pN8N5l/L6WtiG4FqhyoEXUbk3vWQ13Je55RHVRJrQKksDRnSnTwTbSmVzDmpZuk+SWnYzqf cfW5h8atXP/fkSe8O52W3ju3DVzXSaHNiwNXGVMNquLgnpo8T0AuDb33IOaAjkeV47+0GBhHXNi P6g4Mq5IXPr9OD1pOIAUIrbXahnmGijIXo2VJUjsgnW4D8OTbA== X-Google-Smtp-Source: AGHT+IHO5iMfV0C01G5QtCF/9hkSqG3O10tlLUBBNg90q9Wl4ZyqTeNOQ3gDPT19ibdDf3nPgyVUjQ== X-Received: by 2002:a05:600c:45c7:b0:442:dc6f:2f11 with SMTP id 5b1f17b1804b1-4538ee6e953mr19288595e9.25.1751011019472; Fri, 27 Jun 2025 00:56:59 -0700 (PDT) Received: from rltb ([2a01:e0a:3f3:fb51:b786:16ab:7348:3964]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-4538a3b2fd7sm43248165e9.17.2025.06.27.00.56.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 27 Jun 2025 00:56:59 -0700 (PDT) From: Robert Pluim To: Eli Zaretskii Subject: Re: bug#78909: [PATCH] Add 'forward-delete-char-hungry' command In-Reply-To: <86ecv5bsgp.fsf@gnu.org> References: <87ldpevyvw.fsf@gmail.com> <86ecv5bsgp.fsf@gnu.org> Date: Fri, 27 Jun 2025 09:56:58 +0200 Message-ID: <87a55tr511.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 78909 Cc: 78909@debbugs.gnu.org, Elijah Gabe =?utf-8?Q?P=C3=A9rez?= X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) >>>>> On Fri, 27 Jun 2025 09:37:26 +0300, Eli Zaretskii said: >> From: Elijah Gabe P=C3=A9rez >> Date: Thu, 26 Jun 2025 17:58:27 -0600 >>=20 >> This patch adds a new command similar to >> `backward-delete-char-untabify`, but intended to be used forward. Eli> Thanks, but can you describe the rationale? Eli> backward-delete-char-untabify exists because when the indentation = is Eli> done with TABs or a mix of TABs and SPCes, decrementing the Eli> indentation by one column might involve replacing a TAB with the Eli> equivalent number of SPC characters. But this new command doesn't Eli> have a comparable feature, whereby it "outdents" the line by one Eli> column? Instead, it seems it deletes the first character following Eli> point, which means if that character is a TAB, the indentation wil= l be Eli> decreased by more than one column. Eli> So what is the purpose of having this command, and what are the use Eli> cases where it would be useful? cc-mode already provides hungry versions of forwards and backwards whitespace deletion which can be used in other modes, I don=CA=BCt see why we need different commands. See (info "(emacs) Hungry Delete") Although there might be a case for having a minor mode to make enabling use of those commands easier. Robert --=20 From debbugs-submit-bounces@debbugs.gnu.org Fri Jun 27 21:02:47 2025 Received: (at 78909) by debbugs.gnu.org; 28 Jun 2025 01:02:48 +0000 Received: from localhost ([127.0.0.1]:44880 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1uVJxv-0007CN-Ax for submit@debbugs.gnu.org; Fri, 27 Jun 2025 21:02:47 -0400 Received: from mail-ot1-x342.google.com ([2607:f8b0:4864:20::342]:42377) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84_2) (envelope-from ) id 1uVJxs-0007BG-9a for 78909@debbugs.gnu.org; Fri, 27 Jun 2025 21:02:45 -0400 Received: by mail-ot1-x342.google.com with SMTP id 46e09a7af769-72bc3987a05so1586458a34.1 for <78909@debbugs.gnu.org>; Fri, 27 Jun 2025 18:02:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1751072558; x=1751677358; darn=debbugs.gnu.org; h=content-transfer-encoding:mime-version:user-agent:message-id:date :references:in-reply-to:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=Nc8k1++kagceAxnBj+voKJPYxw75s1Pg9MyDFeI2XDA=; b=BHnVvEyxGz8SYkbvt/2+LcFbpHmy7V/Uv0zzI55gQ+f5Mgqpd/mxWrPv+g8w1ZkKuG x+IlYEcYwZ4/DkH+WKHmkna1DWyYMcyS1mH33jyOTmcA17tXbX/ObrRXrOq6rzzA/tyl RPj5x3U6ICVS4lz3ZxIyGDcCvRBp7smMzAKrbFEJOIb3Hgu9rcVsOAT03RxIaNwGe0LF je2FcmrBd/KfNZLvsliY4hEpKIyDF87Sh1NbyTNb70c6AC1uGksEyqHuBthY757GDhWS GPSe6EU1S1GagfpGBflqSzzR15u8wu0zjorgpFSUDyGX+guOYvokxh2pxiaYP8UVRxIG pw4Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1751072558; x=1751677358; h=content-transfer-encoding:mime-version:user-agent:message-id:date :references:in-reply-to:subject:cc:to:from:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=Nc8k1++kagceAxnBj+voKJPYxw75s1Pg9MyDFeI2XDA=; b=KuYBaQixXi+Y0kexu4JTzwI4yjtRAvTW9HHjyGtBhwKfP90KkSOTArwkALNJoi6HiK 3dZ1HEoZLtvBhKn1vRicYJ/mC9IkQG976Gvzc2EXCla/X81ajtWHTVWRqFocRGdO4Pi8 MasQd7X+/KjQToiPsT7hlhJg50t87cykRrNQxM4lnHA7y4mCzZrse1JhwkcAvA5/Mxmp JxXtZL8M/qFK2y3iTGnhLjnWsGgnr/jBba5bFX8WMBjsTKwyZRJrbJXqWHa9C5zsCG1X kfdhyrnfVJxedpvYsCvlVx8TObTSNj1xBuR1Oa3888lhzMv5Mbk1xvotSEzBqW67homU ZJlQ== X-Gm-Message-State: AOJu0YwurM79iYGkxSFJw5DnK1fssBXqokoGvc4fgj6l1Q28B0vFHNR3 ecW1aFmsv+ISQM/xarP7pYb5kS2awN5KnQg9lALGR0cSbS9iAB0ppbHg+zUPIJ7r X-Gm-Gg: ASbGncslR9M1jEv3AgTtNU/wmgNb0qHSvIjWa7KCE7bAkNWTWrd64wi+/XlyatZME0S x/kQ55bV3xZ/pnMXkuYONtC6vLKJICVZ2R2TkrS6HIhHpmG3Vkb0+hexDjzQNORfcSZgU2bm+oW n/oDbZm+SYWH7GLUQaa8oxzhC2gJfjnPC2EUhp9xT5ZHvLU3nPcAObxZxI7ktCWTtDEhgcwL2CK DD1405KnMy+tOlqEQw8vKvlUvCAbAoAktNpW0tgDzCm79psZiCDT3Pu0o62pls5xAGM7H2DGYFe YPhQxVwavBmA/2yBvQkWy6Wlt4RReQ== X-Google-Smtp-Source: AGHT+IFjfHoPMbeJqubJSIqcVdh1EXWgArLeBoMgSO2PuoUS6+ej7kHhzyVltVNOU6XqoV3ctI/0yg== X-Received: by 2002:a05:6830:2655:b0:73a:f16e:78c2 with SMTP id 46e09a7af769-73afc785f6dmr3808753a34.4.1751072558065; Fri, 27 Jun 2025 18:02:38 -0700 (PDT) Received: from fedora ([2806:10ae:e:b56a::1]) by smtp.gmail.com with ESMTPSA id 46e09a7af769-73afafee652sm597499a34.2.2025.06.27.18.02.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 27 Jun 2025 18:02:37 -0700 (PDT) From: =?utf-8?Q?Elijah_Gabe_P=C3=A9rez?= To: Eli Zaretskii Subject: Re: bug#78909: [PATCH] Add 'forward-delete-char-hungry' command In-Reply-To: <86ecv5bsgp.fsf@gnu.org> References: <87ldpevyvw.fsf@gmail.com> <86ecv5bsgp.fsf@gnu.org> Date: Fri, 27 Jun 2025 19:02:36 -0600 Message-ID: <8734bkwudv.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/31.0.50 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: 0.3 (/) X-Debbugs-Envelope-To: 78909 Cc: 78909@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.7 (/) Eli Zaretskii writes: >> From: Elijah Gabe P=C3=A9rez >> Date: Thu, 26 Jun 2025 17:58:27 -0600 >>=20 >> This patch adds a new command similar to >> `backward-delete-char-untabify`, but intended to be used forward. > > Thanks, but can you describe the rationale? > > backward-delete-char-untabify exists because when the indentation is > done with TABs or a mix of TABs and SPCes, decrementing the > indentation by one column might involve replacing a TAB with the > equivalent number of SPC characters. But this new command doesn't > have a comparable feature, whereby it "outdents" the line by one > column? Instead, it seems it deletes the first character following > point, which means if that character is a TAB, the indentation will be > decreased by more than one column. > > So what is the purpose of having this command, and what are the use > cases where it would be useful? I had originally intended to add a kind of `hungry-delete-mode`, because sometimes this type of deletion is useful (e.g. for some programming modes). While `cc-mode` already have it, it's only "exclusive" for `cc-mode` modes. This new command was more of a kind of `c-hungry-delete-forward` than a `backward-delete-char-untabify`. I wasn't sure if it would be worth moving those cc-mode commands for general use, or make/move the `hungry` feature from `backward-delete-char-untabify` to be used generally. --=20 - E.G via GNU Emacs and Org. From debbugs-submit-bounces@debbugs.gnu.org Sat Jun 28 03:17:45 2025 Received: (at 78909) by debbugs.gnu.org; 28 Jun 2025 07:17:45 +0000 Received: from localhost ([127.0.0.1]:46798 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1uVPon-0005wj-3t for submit@debbugs.gnu.org; Sat, 28 Jun 2025 03:17:45 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:38744) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1uVPok-0005vc-Nb for 78909@debbugs.gnu.org; Sat, 28 Jun 2025 03:17:43 -0400 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 1uVPof-0006qi-Dc; Sat, 28 Jun 2025 03:17:37 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-version:References:Subject:In-Reply-To:To:From: Date; bh=+JLjm6KfuY7qdPmV1tCO49phFA+S9wBN1BJYdlD9Oec=; b=LSITzRHRd2q7ydzjNbfr omr7ksx8m6KwMRO+DcojT/v3cXbS3NXV1PEEvg/9KQgyyGkgtsLR+Dpq3tYLLgbsW74Qz69PwnlzT psr85nBKcrxe2W1MMT/xFcnBnteheYPKzzH9ukirpN3SldJLndKWNRmNtZYwJ1//UwZO2dfllto1s A4QQ/sN2TOkqnrjf5dQWuRi/3z0wNYXeeucdZ/oeV29GYRRX28FriZR5cJBJEiMB+o0a4b9N+EH8w ww9Kzs0dBWaIROdcQc+FhZn5mYzNAIDH08vk6y6qgU3VQM08Az/d6AftWLsmeNacmJT6lwW9JwIXk 64OIu1WuPZP0eg==; Date: Sat, 28 Jun 2025 10:17:33 +0300 Message-Id: <86v7og8hde.fsf@gnu.org> From: Eli Zaretskii To: Elijah Gabe =?utf-8?Q?P=C3=A9rez?= In-Reply-To: <8734bkwudv.fsf@gmail.com> (message from Elijah Gabe =?utf-8?Q?P=C3=A9rez?= on Fri, 27 Jun 2025 19:02:36 -0600) Subject: Re: bug#78909: [PATCH] Add 'forward-delete-char-hungry' command References: <87ldpevyvw.fsf@gmail.com> <86ecv5bsgp.fsf@gnu.org> <8734bkwudv.fsf@gmail.com> MIME-version: 1.0 Content-type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 78909 Cc: 78909@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) > From: Elijah Gabe Pérez > Cc: 78909@debbugs.gnu.org > Date: Fri, 27 Jun 2025 19:02:36 -0600 > > Eli Zaretskii writes: > > >> From: Elijah Gabe Pérez > >> Date: Thu, 26 Jun 2025 17:58:27 -0600 > >> > >> This patch adds a new command similar to > >> `backward-delete-char-untabify`, but intended to be used forward. > > > > Thanks, but can you describe the rationale? > > > > backward-delete-char-untabify exists because when the indentation is > > done with TABs or a mix of TABs and SPCes, decrementing the > > indentation by one column might involve replacing a TAB with the > > equivalent number of SPC characters. But this new command doesn't > > have a comparable feature, whereby it "outdents" the line by one > > column? Instead, it seems it deletes the first character following > > point, which means if that character is a TAB, the indentation will be > > decreased by more than one column. > > > > So what is the purpose of having this command, and what are the use > > cases where it would be useful? > > I had originally intended to add a kind of `hungry-delete-mode`, because > sometimes this type of deletion is useful (e.g. for some programming > modes). > > While `cc-mode` already have it, it's only "exclusive" for `cc-mode` > modes. > > This new command was more of a kind of `c-hungry-delete-forward` than a > `backward-delete-char-untabify`. > > I wasn't sure if it would be worth moving those cc-mode commands for > general use, or make/move the `hungry` feature from > `backward-delete-char-untabify` to be used generally. In addition to C Mode's hungry-delete, we also have M-\ and M-SPC, which are available globally. Are they not enough? if not, can you explain what's missing in those commands? From debbugs-submit-bounces@debbugs.gnu.org Sun Jun 29 13:06:35 2025 Received: (at 78909) by debbugs.gnu.org; 29 Jun 2025 17:06:35 +0000 Received: from localhost ([127.0.0.1]:58689 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1uVvU9-000346-VM for submit@debbugs.gnu.org; Sun, 29 Jun 2025 13:06:35 -0400 Received: from mail-wm1-x333.google.com ([2a00:1450:4864:20::333]:55537) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84_2) (envelope-from ) id 1uVvU7-00032b-BY for 78909@debbugs.gnu.org; Sun, 29 Jun 2025 13:06:32 -0400 Received: by mail-wm1-x333.google.com with SMTP id 5b1f17b1804b1-451d7b50815so8948205e9.2 for <78909@debbugs.gnu.org>; Sun, 29 Jun 2025 10:06:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1751216784; x=1751821584; darn=debbugs.gnu.org; h=content-transfer-encoding:mime-version:message-id:date:references :in-reply-to:subject:cc:to:from:from:to:cc:subject:date:message-id :reply-to; bh=1kxZNh67Q9cYeDeXogUHQ5DO8qIlnbFxrlM33GKPdP8=; b=JsUdHrcHAQVejSoOIOOgXek/mMjnM/2FAYMMVl9b6xaGoyJFIxwDDzuD+HNkMRIOv4 usKgaGiL3BmaITfP8by2B2uZRcCx7Zw1s9SURnAP2U0c4Ck5lmEUiikY+/2or7pISEUN WA0IBaQPPU6b/uPPU8xJey9qyluTu5Tj5/WNmPDAu1iRjLnpg+WoXIJy/4Z/ZnMFC7fd Y3gUVOceDurHg4khSRzEBrlWbJAnjl0nUdNZ52gWDOuL7OUS4i4HGamc9yKdPS16+ong tt/CJrxcvf3SgejH3bMo6ON8nWDOHpwm9KhiH3xt8C8kpQ/yC8QNNkfpMujiaVwigTmv xmRw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1751216784; x=1751821584; h=content-transfer-encoding:mime-version:message-id:date:references :in-reply-to:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=1kxZNh67Q9cYeDeXogUHQ5DO8qIlnbFxrlM33GKPdP8=; b=H9jg12wYlSHpYbZujsfLx9+cks9yiwOb5CkC8QZlKM8Gr+mD3sZFJI1fwtMKzSmC9B tzzSntiw99lu6hfUUYNNLLEABGqCAtSxVmyXQQIMeZWRsuZJ9UpfduVHx7p1PWT1X09l D9akCV0ihHkYxpq/iwhyLvWDplX4AmVMEdZlW3lHVG1Cj8/I+AjQpuJ+l/uTTNE4kwFP mbg95sCHinUfWm9kecPJ24+i/YBvorZPYs2wsf6NL/Yhk0pXWNCMH/LZRM/KPBYXYfPY QYa/1WZwlMiQnDloX3zmllsJoYQzFDPVfr60XdcQ1bvu1ZTe6if0zxsENTMmezb9Nu9W jmiQ== X-Forwarded-Encrypted: i=1; AJvYcCV7Q5dsqgXPSsgXi2XN6q3oYvND/nChV6eawPxyy7/LOOMyNkFkG1bbb0IaWFBOKc4N9dkbdw==@debbugs.gnu.org X-Gm-Message-State: AOJu0YzJe89hFI+T7bgTlhYcgyMDAF8jjf0XoM8Qiu2mTKnbohObwgpd vMuMyE5xAAF44oIPnuN+Cf/3hk73z2b3OIlWQk2FXQWEAW7RMeAR6jju5yj4yA== X-Gm-Gg: ASbGnctZj3zSU0HUqrbYrtz0NZ/3ik7ZLV+VBSeKYPUNFZAFdKv3ThoF7q3uadFgupB enIfUqvhvfVpW4qGABGgnMlHcr0dzm3fY+KEdXGaXFG5igiYZFHgje1qJQ2JFKfCzfEfPaIZEDo TVkB7aKPv3zYK21Sp/962WivFJ7Q5KlLBvqzlaLWTEmm6pxqP+Jp6fg+EMU7HJv6X4dKnO16EDq UGJRr3B3OPCS3QEijhV6J7oEWrbzaLiIRpXmyecFV2NGKUtYxfc1ZMIXNhEt9w2djuQAxjXw23i gmKbzm6t+xVCczcIgiw/cZd7GYdq3Z4dX8JRhgjK5Bs1KLzPQg== X-Google-Smtp-Source: AGHT+IEg/DegxcyiaAVT4g0nFqpSEWvl0tONr0G/0zZroM22xPOvTTep2K9RCyHKItQNGmL8ItmZrw== X-Received: by 2002:a05:600c:474a:b0:450:d3b9:4b96 with SMTP id 5b1f17b1804b1-4538ee39fbdmr107752295e9.13.1751216784033; Sun, 29 Jun 2025 10:06:24 -0700 (PDT) Received: from rltb ([2a01:e0a:3f3:fb51:8efb:eccf:f98b:f231]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-3a88c80b5aesm8076435f8f.44.2025.06.29.10.06.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 29 Jun 2025 10:06:23 -0700 (PDT) From: Robert Pluim To: Eli Zaretskii Subject: Re: bug#78909: [PATCH] Add 'forward-delete-char-hungry' command In-Reply-To: <86v7og8hde.fsf@gnu.org> References: <87ldpevyvw.fsf@gmail.com> <86ecv5bsgp.fsf@gnu.org> <8734bkwudv.fsf@gmail.com> <86v7og8hde.fsf@gnu.org> Date: Sun, 29 Jun 2025 19:06:22 +0200 Message-ID: <87wm8upje9.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 78909 Cc: 78909@debbugs.gnu.org, Elijah Gabe =?utf-8?Q?P=C3=A9rez?= X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) >>>>> On Sat, 28 Jun 2025 10:17:33 +0300, Eli Zaretskii said: >> I had originally intended to add a kind of `hungry-delete-mode`, bec= ause >> sometimes this type of deletion is useful (e.g. for some programming >> modes). >>=20 >> While `cc-mode` already have it, it's only "exclusive" for `cc-mode` >> modes. >> It=CA=BCs very easy to turn on in cc-mode, but nothing stops you doing (define-key my-favourite-language-mode-map "C-d" #'c-hungry-delete-forwar= d) >> This new command was more of a kind of `c-hungry-delete-forward` tha= n a >> `backward-delete-char-untabify`. >>=20 >> I wasn't sure if it would be worth moving those cc-mode commands for >> general use, or make/move the `hungry` feature from >> `backward-delete-char-untabify` to be used generally. They don=CA=BCt need moving. They might need a minor mode command to turn them on, along with some bindings. Eli> In addition to C Mode's hungry-delete, we also have M-\ and M-SPC, Eli> which are available globally. Are they not enough? if not, can y= ou Eli> explain what's missing in those commands? I=CA=BCm not missing anything. M-SPC in particular is very handy. Robert --=20 From debbugs-submit-bounces@debbugs.gnu.org Tue Jul 01 23:38:08 2025 Received: (at 78909) by debbugs.gnu.org; 2 Jul 2025 03:38:09 +0000 Received: from localhost ([127.0.0.1]:59976 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1uWoIR-0002Z7-Gq for submit@debbugs.gnu.org; Tue, 01 Jul 2025 23:38:08 -0400 Received: from mail-ot1-x343.google.com ([2607:f8b0:4864:20::343]:45492) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84_2) (envelope-from ) id 1uWoIM-0002Wy-6P for 78909@debbugs.gnu.org; Tue, 01 Jul 2025 23:38:03 -0400 Received: by mail-ot1-x343.google.com with SMTP id 46e09a7af769-7382a999970so3306761a34.3 for <78909@debbugs.gnu.org>; Tue, 01 Jul 2025 20:38:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1751427476; x=1752032276; darn=debbugs.gnu.org; h=mime-version:user-agent:message-id:date:references:in-reply-to :subject:cc:to:from:from:to:cc:subject:date:message-id:reply-to; bh=TTsI4qeA7VyGe/5HiWF4kSvbSClL667aUfjFwjDreXo=; b=itCWrpwkRI0/xremNm4LRdgRdgvKMsU4Y3oeOTkZ0qWsGZMcYNei5zOutmM7m9LBSk 0LAKrVKVyTac/UtiEKe1SEgYsgKV1hRpi0VXR2cbCu/QyQ8mI93ZbTgR5TQPE/xUuLzh x+35BoUVKhUDE+uvlEhG0bbuoPSPO/9o1bmZbAoQQQbaxqZBEowD67J4HD0kTEo8EvmO rMrU3ZtRp7XoRWiaFroGM2nt1hoIZ0XMdt+h9RQFstXdQIsjlIgDLPrn649oRCyhKVUy mse6y5lO6esYiuowXXG5fUb0IBoDTkPsnar3xoPcJDnJb4uCp04qM7/khzxstsJRrx2t pZSQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1751427476; x=1752032276; h=mime-version:user-agent:message-id:date:references:in-reply-to :subject:cc:to:from:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=TTsI4qeA7VyGe/5HiWF4kSvbSClL667aUfjFwjDreXo=; b=dyJZhFuU3YmDoK84ONBN7KkdBB7oYGibNpEbiP0FW/wag0cO4rOtPJqKAhBQWtCzQQ 5ltVjhUGd86VE9Vkbq57Lkc6BfV3K8wZ0DViXrDUV0bHRXzdwKIv04MVkRbfIsZDpHR1 ItRBpF1sjYVv6Or88YZy4Ys3vcEMSIu6VgfuggVhd8T5LjmirZle/KpSe8j2snW0t3BL DajqFDQA4N4+W+GKSs1HI9XimRbSLKGl0q5LkDRv7dtuMSb0rnwzfioKeFiHxknGk+YA N4NvRp3r+WNYZPANeMXY9yEY+Y4ODAp18pwkOdjwcTmXJtO56a/gip5xW9Fi9uVXi/2d pnjw== X-Gm-Message-State: AOJu0YzawHA/xIK7maVGRmr/Qug/UhV8gNlmnGzbbIETUYTyk7tSP1x/ g7VJOH/j4LYc4DfO4RKr2F6CRt4aCCG26/3JeFawG4YivG2ijCvGC+9WHV7/BN9/ X-Gm-Gg: ASbGnct0wsc587mQ4yAxwL8CJa7VYEeCNQOXn0q6O+XhcsmzDVpqWPeT9o9i+6Ms/lX O3wK8XCKuetDV1RkHm8suhB2dSo0myJhGOyCLSEGsN4lcbuEAOGHRmDM1E2LuwXB6VXwqGTNOl/ T4/rUdpXqFkOpc5VpAkkHDrBUCg3PbGOxo+L/B1srU07+/c46x/qAHl6gEeg4PtNpYRHPR/nWDX P1tOMk4EPp9YuRCOCTxo3WTdIFsTRqiBOmwqkGEO7xNU6bJeS8karCu+okTv0nAL/k3lyCFMSAn uKikCqWobpmF7UY22zmNKgvoETVZnw== X-Google-Smtp-Source: AGHT+IHA+LBtytll6euF/HzgkVJvC0Eq4Op2Lvn8FX4xrm8e1PfupT6ouXHc6fy7ZNaNwbYKCHrSdw== X-Received: by 2002:a05:6830:7303:b0:73b:2ad0:6218 with SMTP id 46e09a7af769-73b4cf49105mr1004687a34.11.1751427475707; Tue, 01 Jul 2025 20:37:55 -0700 (PDT) Received: from fedora ([2806:10ae:e:b56a::1]) by smtp.gmail.com with ESMTPSA id 46e09a7af769-73b2c5a1a64sm1083964a34.15.2025.07.01.20.37.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 01 Jul 2025 20:37:54 -0700 (PDT) From: =?utf-8?Q?Elijah_Gabe_P=C3=A9rez?= To: Eli Zaretskii Subject: Re: bug#78909: [PATCH] Add 'forward-delete-char-hungry' command In-Reply-To: <86v7og8hde.fsf@gnu.org> References: <87ldpevyvw.fsf@gmail.com> <86ecv5bsgp.fsf@gnu.org> <8734bkwudv.fsf@gmail.com> <86v7og8hde.fsf@gnu.org> Date: Tue, 01 Jul 2025 21:37:53 -0600 Message-ID: <87ecuzz2i6.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/31.0.50 MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 0.3 (/) X-Debbugs-Envelope-To: 78909 Cc: 78909@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.7 (/) Eli Zaretskii writes: >> I had originally intended to add a kind of `hungry-delete-mode`, because >> sometimes this type of deletion is useful (e.g. for some programming >> modes). >> >> While `cc-mode` already have it, it's only "exclusive" for `cc-mode` >> modes. >> >> This new command was more of a kind of `c-hungry-delete-forward` than a >> `backward-delete-char-untabify`. >> >> I wasn't sure if it would be worth moving those cc-mode commands for >> general use, or make/move the `hungry` feature from >> `backward-delete-char-untabify` to be used generally. > > In addition to C Mode's hungry-delete, we also have M-\ and M-SPC, > which are available globally. Are they not enough? M-\ and M-SPC are fine, of course, but I think it would be fine to have other commands that combine both behaviors: delete whitespaces if there are, otherwise delete the character forward/backward, a DWIM style. > if not, can you explain what's missing in those commands? Actually nothing, I'm proposing 2 DWIM-type commands (or a minor mode) for this hungry-like deletion, similar to c-hungry commands. `backward-delete-char-untabify` has 2 interesting hungry-like deletions, one that only deletes both tabs and spaces, and other that deletes _all_ whitespaces. -- - E.G via GNU Emacs and Org. From debbugs-submit-bounces@debbugs.gnu.org Tue Jul 01 23:54:46 2025 Received: (at 78909) by debbugs.gnu.org; 2 Jul 2025 03:54:46 +0000 Received: from localhost ([127.0.0.1]:59991 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1uWoYW-0005C1-L3 for submit@debbugs.gnu.org; Tue, 01 Jul 2025 23:54:45 -0400 Received: from mail-oi1-x244.google.com ([2607:f8b0:4864:20::244]:54714) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84_2) (envelope-from ) id 1uWoYO-00059n-0s for 78909@debbugs.gnu.org; Tue, 01 Jul 2025 23:54:41 -0400 Received: by mail-oi1-x244.google.com with SMTP id 5614622812f47-404e580bf09so957757b6e.1 for <78909@debbugs.gnu.org>; Tue, 01 Jul 2025 20:54:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1751428470; x=1752033270; darn=debbugs.gnu.org; h=content-transfer-encoding:mime-version:user-agent:message-id:date :references:in-reply-to:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=oB5/i79GsQg8zE/iU7LnQZC+ZLUhSEej0hjEj0iI7l4=; b=g78mTurydurLUlvKd3RzVbk7uEJWRsfpTtrIaq+zJDFCrYZiB3hIc6b1G0i+BV13ff iWIM3Wp+QuVyY2OwXJgGWkClqbi1ie2bk2n8goaahLUpRG56NaihXnHZlZYnUayTz1TK zrEzCI+wSSYK88rTI+kVPzGL+mcXlQnFjpioKAvLltf93XlfggFyl2LsV7encj745nmW hrHfSbTMOYUQdgZcY0o8VvwFRBOop7VvytnNDiBlOaLErHPaB+ZGgLuoc0jcLBjuLpyd Qq0TZ9uot5jVfNtMQdRw3dxz1GIxraS2XziaSFY+NiPc86XnmudHSkCf7gcmUUGRnm27 VxlA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1751428470; x=1752033270; h=content-transfer-encoding:mime-version:user-agent:message-id:date :references:in-reply-to:subject:cc:to:from:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=oB5/i79GsQg8zE/iU7LnQZC+ZLUhSEej0hjEj0iI7l4=; b=W7m6PZONsFU0adnmSPKJ7eoIcP66IQ+AAp7qMUZf2PxnQlMX6MMWFvy0QQbcz5rnlj kUHW6zhgbJPd0OAujxbQmJ7v67bGA2RYwq9KAlYd7PVC2QcZ7M5z5+Medjc7Gz3tDSbK 7+NgINxUwlqjUCBA8F+eepPNVv50bMFKR0AAf6YHLf14DWzDwJGvVUN0wUkOk2vyfTfB gOMJeVq5ODfLYM/msisd7IDlI7qBlYzeDHXCGKP7yit6hsqceuaex58FyJcRY2xfD22K F2C6oH+wO4vY1FjK1JswYrrSlVdFF7xowNiro7NghnZN/15J9K7lEDd78va0MTCsHGqo +YnA== X-Forwarded-Encrypted: i=1; AJvYcCXEKQSp90Ss4anVa0fwf1QJeP8K2Y26u6j7eZAyN8ZgHad9Nh1HBz9KQDR5LOmj1D7/+udi5w==@debbugs.gnu.org X-Gm-Message-State: AOJu0YzgrX0SoPpQILSstUhx5vNTwOx+y+rqXA/Ji+xC4LwkeOElJMNj ger2g0GyQl2UeUHabN5rEHcD4arHhk20+1/fNcBj+X7vWEg4yb63q/+x9Y1X3JSq X-Gm-Gg: ASbGncsuOuSbRitr0lkyA8MH0/tE4xWjJVliPLbXQETkuBUkg+m1sUvLBUc+mUFs4OH jC6IKL/9e8FIBhWvgD7M7uSJAj9phKdcU9QSAXKnSfWht2JVIYbi9qILx7429Csic5+8ctH5z/5 NCIBcG3Ke2pPZkc08dsaojPT2B57q4ueeWvtvliUBqDDVmLrsKAavJy9woaJbZo0qaOKe58HTId iTYTze/XOUUQop6HY+rFfSNmiXBxrKiv8vP6sRRTNrNS7bHFk7i1y1mE9CkIHWkw2zyg0NKzmHP APCZrEvoC67hIGH6b9Sdsw3cT9ZUBg== X-Google-Smtp-Source: AGHT+IG7fZRdKbSLHfYu+f/dFySjZIbr/OGiHXbwol7SfjUC2uQCjQmAEfBoynmiMqBSgAQH1GwUzA== X-Received: by 2002:a05:6808:201e:b0:40b:4208:8602 with SMTP id 5614622812f47-40b8853f92bmr990135b6e.4.1751428469777; Tue, 01 Jul 2025 20:54:29 -0700 (PDT) Received: from fedora ([2806:10ae:e:b56a::1]) by smtp.gmail.com with ESMTPSA id 5614622812f47-40b3241e38csm2402608b6e.34.2025.07.01.20.54.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 01 Jul 2025 20:54:29 -0700 (PDT) From: =?utf-8?Q?Elijah_Gabe_P=C3=A9rez?= To: Robert Pluim Subject: Re: bug#78909: [PATCH] Add 'forward-delete-char-hungry' command In-Reply-To: <87wm8upje9.fsf@gmail.com> References: <87ldpevyvw.fsf@gmail.com> <86ecv5bsgp.fsf@gnu.org> <8734bkwudv.fsf@gmail.com> <86v7og8hde.fsf@gnu.org> <87wm8upje9.fsf@gmail.com> Date: Tue, 01 Jul 2025 21:54:27 -0600 Message-ID: <87a55nz1qk.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/31.0.50 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: 0.3 (/) X-Debbugs-Envelope-To: 78909 Cc: 78909@debbugs.gnu.org, Eli Zaretskii X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.7 (/) Robert Pluim writes: >>>>>> On Sat, 28 Jun 2025 10:17:33 +0300, Eli Zaretskii sai= d: > >> I had originally intended to add a kind of `hungry-delete-mode`, b= ecause > >> sometimes this type of deletion is useful (e.g. for some programmi= ng > >> modes). > >>=20 > >> While `cc-mode` already have it, it's only "exclusive" for `cc-mod= e` > >> modes. > >> > > It=CA=BCs very easy to turn on in cc-mode, but nothing stops you doing > > (define-key my-favourite-language-mode-map "C-d" #'c-hungry-delete-forw= ard) Yes, but it feels weird that i need to load cc-mode package for use those commands outside cc modes. > >> This new command was more of a kind of `c-hungry-delete-forward` t= han a > >> `backward-delete-char-untabify`. > >>=20 > >> I wasn't sure if it would be worth moving those cc-mode commands f= or > >> general use, or make/move the `hungry` feature from > >> `backward-delete-char-untabify` to be used generally. > > They don=CA=BCt need moving. They might need a minor mode command to turn > them on, along with some bindings. I didn't mean to move them at all (that would create incompatibility), i meant to make them an alias for the new commands or use new commands for the behavior, or definitely not modify them and run away. --=20 - E.G via GNU Emacs and Org. From debbugs-submit-bounces@debbugs.gnu.org Sat Jul 05 05:03:57 2025 Received: (at 78909) by debbugs.gnu.org; 5 Jul 2025 09:03:57 +0000 Received: from localhost ([127.0.0.1]:40179 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1uXyoO-00077O-5M for submit@debbugs.gnu.org; Sat, 05 Jul 2025 05:03:56 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:45102) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1uXyoL-00076J-S9 for 78909@debbugs.gnu.org; Sat, 05 Jul 2025 05:03:54 -0400 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 1uXyoG-00058j-Iv; Sat, 05 Jul 2025 05:03:48 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-version:References:Subject:In-Reply-To:To:From: Date; bh=FW9DrWOBQvrUzPwyEA22SGBFuRxAhIfPd+KicXZkIZI=; b=fLmGKLPTPDJKtLy2yr+i 4SUCl2FskiG/S75bCwJ7DhvYcmRFb6j7ItHp+jsihCm1yKPkyr/c7g7bdpdITAPLSB48TFJeUGjCe 4q96vulMDwMYCyocdeyQc7CX0ua6qd/tmIMnT0FpFYX5vZqZ64j/JRgDdPefGat4IDjokvYisYlu0 U2RjfbzEqgozMXugAFRTUfzkiKmxSRA1KyWe2XsuCVG8TH5MdfUdk9ZeibxPeTvtrpLk7Krk1gc5A REjLkGkVXqkeRxQ0Rsu/qMsKVk3um+2Tc6CfN/1YePv9VSptuCPlptUhcVmY32iCuqZWkWPOL2uQR +mfXQ6TTUQ5CWg==; Date: Sat, 05 Jul 2025 12:03:46 +0300 Message-Id: <86a55jvwjx.fsf@gnu.org> From: Eli Zaretskii To: Elijah Gabe =?utf-8?Q?P=C3=A9rez?= In-Reply-To: <87ecuzz2i6.fsf@gmail.com> (message from Elijah Gabe =?utf-8?Q?P=C3=A9rez?= on Tue, 01 Jul 2025 21:37:53 -0600) Subject: Re: bug#78909: [PATCH] Add 'forward-delete-char-hungry' command References: <87ldpevyvw.fsf@gmail.com> <86ecv5bsgp.fsf@gnu.org> <8734bkwudv.fsf@gmail.com> <86v7og8hde.fsf@gnu.org> <87ecuzz2i6.fsf@gmail.com> MIME-version: 1.0 Content-type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 78909 Cc: 78909@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) > From: Elijah Gabe Pérez > Cc: 78909@debbugs.gnu.org > Date: Tue, 01 Jul 2025 21:37:53 -0600 > > Eli Zaretskii writes: > > >> I had originally intended to add a kind of `hungry-delete-mode`, because > >> sometimes this type of deletion is useful (e.g. for some programming > >> modes). > >> > >> While `cc-mode` already have it, it's only "exclusive" for `cc-mode` > >> modes. > >> > >> This new command was more of a kind of `c-hungry-delete-forward` than a > >> `backward-delete-char-untabify`. > >> > >> I wasn't sure if it would be worth moving those cc-mode commands for > >> general use, or make/move the `hungry` feature from > >> `backward-delete-char-untabify` to be used generally. > > > > In addition to C Mode's hungry-delete, we also have M-\ and M-SPC, > > which are available globally. Are they not enough? > > M-\ and M-SPC are fine, of course, but I think it would be fine to have > other commands that combine both behaviors: delete whitespaces if there > are, otherwise delete the character forward/backward, a DWIM style. > > > if not, can you explain what's missing in those commands? > > Actually nothing, I'm proposing 2 DWIM-type commands (or a minor mode) > for this hungry-like deletion, similar to c-hungry commands. But that's my point: M-\ and M-SPC do the hungry-delete thing already. So why do we need a new command? From debbugs-submit-bounces@debbugs.gnu.org Tue Jul 08 21:15:58 2025 Received: (at 78909-done) by debbugs.gnu.org; 9 Jul 2025 01:15:58 +0000 Received: from localhost ([127.0.0.1]:46772 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1uZJPa-0005x8-0E for submit@debbugs.gnu.org; Tue, 08 Jul 2025 21:15:58 -0400 Received: from mail-oi1-x243.google.com ([2607:f8b0:4864:20::243]:59857) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84_2) (envelope-from ) id 1uZJPY-0005wg-7O for 78909-done@debbugs.gnu.org; Tue, 08 Jul 2025 21:15:49 -0400 Received: by mail-oi1-x243.google.com with SMTP id 5614622812f47-40ba3d91c35so3108589b6e.3 for <78909-done@debbugs.gnu.org>; Tue, 08 Jul 2025 18:15:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1752023742; x=1752628542; darn=debbugs.gnu.org; h=mime-version:user-agent:message-id:date:references:in-reply-to :subject:cc:to:from:from:to:cc:subject:date:message-id:reply-to; bh=hq4835n0B918WVp5vBw6YG0qj00p7Y98mPxX957bvTI=; b=NOrjn8AStL4gSAarsQR4iIot9ZRubRqdXDbM1raNVSclOKgnmhiZTZ228MG4fpmlK+ +JXpWhU25zJ9crDeP+5RbiNi6kPKDRuQWRh2qaKnZBOKNoABRASpcbNKcsFu4QzHzlGs WwtEzDU17CMfxh4NYT4FDLXp7bNwiipUfYG0CndyRB26BIxsv7bH8oD5RYeenYrbafn9 gNu5WWOCFsv+IkG/8RMGVQbon1gwumaQ6cUW0nFY/+ojQzuh/WGm29qRTg6NGIyTUZD2 JSmF5J8VxJ5gza3YBlNchK40F7ovjJ0FohDVmrioMkKaM4mN4OgmVUEr1QSCprKENWWy JXDw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1752023742; x=1752628542; h=mime-version:user-agent:message-id:date:references:in-reply-to :subject:cc:to:from:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=hq4835n0B918WVp5vBw6YG0qj00p7Y98mPxX957bvTI=; b=umMpfQ8pqMv+N3EcbbL+BlV3kcFQCfGruNg/Gf2BVk/bVjRr/+j4ZYO5gXAkBd4dJW eHR3AkPjXYVDYYasu0J16FgURGsubH+E4GXlOiSyUW6DnS2VXIQ63yDRQA/apvtDaY03 HjuTvCMJIs48McnFGY7ejxjms3lNhQ8TjisxZQRJdthc3XCfEs7hpXoEUWdgsb81DhHE PqRMZvOHxT2qigIEGS/3O8Ng6+wdKJjLLUE5dECbw4vvDiXW3K7UdS0qOy4yxcPBMqkq MjfjxBfMQwqc1bm3+81ujIAR51eNCbvjV/2T8AjWh28JHHDIEJMDeM/6abAS3DWLRFfR luGg== X-Gm-Message-State: AOJu0Yxk6znyeYZJuexUeDc/5F65IK3X7gmQ7aWvgpEYwXErtS1yrX+k MvBRDpuyhBdt6mo87c0rrwOYHGXxfDsVs3IKxBeJZ2voQ6Wb8aIUcQk+5JVs12VH X-Gm-Gg: ASbGncu6zsYegdv/TC/qFO7MKmdHG8oJRRQpdwjzYo/Ebokkc9jcFZNWpJuvRH1NvE5 mhiUl/goKi2y7YE24e0rNra4WgpSjrs7UMYSarHt1X4oEr5y99XPANhW8XK7pk7l3F4EStT4W+l ESp68L3XMyDteGyBP6IcgNxd+SMwrgV1qWxMdV96BC+yijGn0epDUZn4z1dSR37j35HQFK4qUar oCKdmeiu/TVfVvF5Yx7aYKOxf45XEVXqcBf/kjVysKR4O70JzErT2LID/TjXkeNliokiw/vp8m9 Hn5QfHDTRNGGqxgouQ8TFK8FASJXUg== X-Google-Smtp-Source: AGHT+IFYUWuwuIkFcRCSdaiIaXuR/ud+oNer+/5mj6E7LwFFQJ+1aV5FrdGANVBHgg/j7eWChPjuvQ== X-Received: by 2002:a05:6808:6f8f:b0:40b:1222:8fd8 with SMTP id 5614622812f47-412bd49a5damr350927b6e.35.1752023742093; Tue, 08 Jul 2025 18:15:42 -0700 (PDT) Received: from fedora ([2806:10ae:e:b56a::1]) by smtp.gmail.com with ESMTPSA id 586e51a60fabf-2f790277188sm3187510fac.41.2025.07.08.18.15.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 08 Jul 2025 18:15:41 -0700 (PDT) From: =?utf-8?Q?Elijah_Gabe_P=C3=A9rez?= To: Eli Zaretskii Subject: Re: bug#78909: [PATCH] Add 'forward-delete-char-hungry' command In-Reply-To: <86a55jvwjx.fsf@gnu.org> References: <87ldpevyvw.fsf@gmail.com> <86ecv5bsgp.fsf@gnu.org> <8734bkwudv.fsf@gmail.com> <86v7og8hde.fsf@gnu.org> <87ecuzz2i6.fsf@gmail.com> <86a55jvwjx.fsf@gnu.org> Date: Tue, 08 Jul 2025 19:15:40 -0600 Message-ID: <874ivmf9kz.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/31.0.50 MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 0.3 (/) X-Debbugs-Envelope-To: 78909-done Cc: 78909-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.7 (/) Eli Zaretskii writes: > But that's my point: M-\ and M-SPC do the hungry-delete thing already. > So why do we need a new command? Well honestly i saw it useful since there are already 2 packages in MELPA that provides this, i thought that Emacs can provide this built-in, but given the low interest, I'm closing this. -- - E.G via GNU Emacs and Org. From unknown Fri Aug 08 22:17:08 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Wed, 06 Aug 2025 11:24:05 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator