From debbugs-submit-bounces@debbugs.gnu.org Fri Mar 29 08:21:56 2024 Received: (at submit) by debbugs.gnu.org; 29 Mar 2024 12:21:56 +0000 Received: from localhost ([127.0.0.1]:41870 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rqBF6-0006M9-I0 for submit@debbugs.gnu.org; Fri, 29 Mar 2024 08:21:56 -0400 Received: from lists.gnu.org ([2001:470:142::17]:44800) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rqBF4-0006Ls-R9 for submit@debbugs.gnu.org; Fri, 29 Mar 2024 08:21:55 -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 1rqBEx-00012u-Qq for bug-gnu-emacs@gnu.org; Fri, 29 Mar 2024 08:21:47 -0400 Received: from mout.web.de ([212.227.15.14]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rqBEw-0004pZ-3Z for bug-gnu-emacs@gnu.org; Fri, 29 Mar 2024 08:21:47 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=web.de; s=s29768273; t=1711714902; x=1712319702; i=michael_heerdegen@web.de; bh=wvsOLhtoItmHZAAaavlu2A9kwhV/59Ajg43E+lVOCBY=; h=X-UI-Sender-Class:From:To:Subject:Date; b=lWvl3+huAtM0T15tsWpe+nw7xCABw1sls/CIaBgu1i2Adx6zQCVjVazAF/7+ZWJc tEjYzjXI1XslS11dYQTCRyiQDpI5sE8vcmUNxlN+1JSjld5y6aLdoXPBe6T/aTuKh tDvxwbQD0RaV9che1XqesL8ozgzBAbTvHieLHzLJp1ltyFeDzTQtYcW54nSmQlRBP Bu+mlzEvVeqUr6+Zlp6nnvf6daQbr/YOkx//a8bTarOXd0KP+tlCZhwnvIIaeA/A7 mS20ZE5s2Ta6vKz3EVbgdO4fXtfHYUkwLC2nk8DgOCpr7pGpT1pkM5EaWO8iAV0GC 6IDjMsI+qoQN1cnuDw== X-UI-Sender-Class: 814a7b36-bfc1-4dae-8640-3722d8ec6cd6 Received: from drachen.dragon ([84.60.174.170]) by smtp.web.de (mrweb006 [213.165.67.108]) with ESMTPSA (Nemesis) id 1M6YJB-1rx2zc3idF-006vZ6 for ; Fri, 29 Mar 2024 13:21:41 +0100 From: Michael Heerdegen To: bug-gnu-emacs@gnu.org Subject: 30.0.50; kill-ring-deindent-mode kills too aggressively X-Debbugs-Cc: Po Lu Date: Fri, 29 Mar 2024 13:22:19 +0100 Message-ID: <87v8552pok.fsf@web.de> MIME-Version: 1.0 Content-Type: text/plain X-Provags-ID: V03:K1:ytcouyY7dOQ4tbRBebTBJNYNYX6B+E/Hh8+Vzo9nhkRf3//REmI JEXY/dpf4faHhMWUFjspcVFZLhZVr4C9uvyrfRIuJnCS9aEbmc8xZ3G7wsj6irp9xIirtgO 3yNAP4AmaJEo5Y6mZIQAeJ9QdVOC/z9fR7AmF2UcG/NbAaZb+wtikEsMgn2Ah6sA4hIzymC 2Hz1xBMnod+RQgPVOVEGg== X-Spam-Flag: NO UI-OutboundReport: notjunk:1;M01:P0:imXQ88XcuSs=;n5sB+ay7VwHQtHJz1ugCVbobcpw m2iy5xvI75TvLobnoIkWxsfg4vfvzaYsQraJ1MDLaAyOIkIAjy9zLsyNMj+vhKBBQYcQeDjAa 5cKOaa5iXdQgBGDKa9xlY0fp/phl32fDhUuBPhW58ELEj7NVlifD92YKCTvI55zUNsNqPpBFS tBY4A7fEJihGmOF2ON26bCd/Cled1PnOb+qHKMEEXj0E2BkrjN2CZhh8KGNvrOhyOnCLByKzX bccGSmS3GQbrW+Fsrd9pU50hh1XSko7L5diIQrNywnde+6PHQtJy8xFm7ST2jZ0/wGqtFAhbI qe1Y5m6fR2npKAtpssXVApkrzqmQEy5BMOi/Ofk/J/jcAjhHtUuF/xrIiZieq2y1GHar4pWlB ACbhdFuAWbOrTaGeVf4A1lERtAbqcpCPPcW4KYcFEOBXYymfEqLa3Cxzr7j5ltjpz4rymCwou QxoiDNbEeGnKDLy7InkmMlgVMu384KQklj3tJB3otTRal8QyCetVp9wHQf4jAMz80mcYTMtgB oyI2yxbqhNFNi2ETKUhs7KO4rV6zSIiUVti154efqE9tu26o2qFBlkPIi83A0j/7ZG2Z+6jXB gr7nMbkDzDRlAkyh4Oxke+hh/CD3pDyWst86172tO/UR+slM5gTwToHImbqwTowNe1/rcRN7N UjK9YBOS4xfpD3Bxf5aJIc1jvqwa/h1/syET8fW4s/DtH7VxLi+TrRKcU316BstRW7XAzoxEG mIUCnQbufzZHH7Q3iIiIk6FkZUfAJazRk3XONg9dUnwcFrrhv/o9BOQm3Ak+ZQn7166cO6bP8 L8i+4FV0zHGRf9QjSGySeLNDSxwcny2DtjIG+ebaB0Zbw= Received-SPF: pass client-ip=212.227.15.14; envelope-from=michael_heerdegen@web.de; helo=mout.web.de X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.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_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H4=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: 0.0 (/) 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: -1.0 (-) Hi, I had been editing in some minibuffer prompt opened by some dired command and was at the front of two words like "foo bar". I was successively killing using `kill-word' and yanked the text back at some other place but got "foobar" with inner word whitespace removed. Took a while until I found this was because of `kill-ring-deindent-mode' I had enabled. I know why it did that, technically, but: this is too much, too surprising. As I user I wonder: I was not editing a program, and where was indentation to remove here at all? Please consider to restrict the cases when the deindent functionality kicks in. Restrict it to programming modes, turn the mode into a local mode, restrict for successive kills when it's obvious that we remove whitespace from the middle of a one-line text, such things. That would be my suggestion. Currently, the mode causes nasty unwanted side effects so people will have to turn it off although they like the idea in general. Thanks for reading, Michael.