From unknown Sun Aug 17 22:00:33 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#13175 <13175@debbugs.gnu.org> To: bug#13175 <13175@debbugs.gnu.org> Subject: Status: 24.3.50; Isearch: doc of `C-M-w' and interaction with Backspace (`DEL') Reply-To: bug#13175 <13175@debbugs.gnu.org> Date: Mon, 18 Aug 2025 05:00:33 +0000 retitle 13175 24.3.50; Isearch: doc of `C-M-w' and interaction with Backspa= ce (`DEL') reassign 13175 emacs submitter 13175 "Drew Adams" severity 13175 minor thanks From debbugs-submit-bounces@debbugs.gnu.org Thu Dec 13 12:29:02 2012 Received: (at submit) by debbugs.gnu.org; 13 Dec 2012 17:29:02 +0000 Received: from localhost ([127.0.0.1]:41195 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TjCaj-0006Mb-MB for submit@debbugs.gnu.org; Thu, 13 Dec 2012 12:29:01 -0500 Received: from eggs.gnu.org ([208.118.235.92]:34747) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TjCai-0006MR-GN for submit@debbugs.gnu.org; Thu, 13 Dec 2012 12:29:01 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TjCZp-00049c-E4 for submit@debbugs.gnu.org; Thu, 13 Dec 2012 12:28:07 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-104.2 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_MED, RP_MATCHES_RCVD, UNPARSEABLE_RELAY, USER_IN_WHITELIST autolearn=unavailable version=3.3.2 Received: from lists.gnu.org ([208.118.235.17]:55082) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TjCZp-00049Y-AX for submit@debbugs.gnu.org; Thu, 13 Dec 2012 12:28:05 -0500 Received: from eggs.gnu.org ([208.118.235.92]:46026) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TjCZh-00005C-K5 for bug-gnu-emacs@gnu.org; Thu, 13 Dec 2012 12:28:05 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TjCZg-00046J-EB for bug-gnu-emacs@gnu.org; Thu, 13 Dec 2012 12:27:57 -0500 Received: from userp1040.oracle.com ([156.151.31.81]:48925) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TjCZg-000468-7G for bug-gnu-emacs@gnu.org; Thu, 13 Dec 2012 12:27:56 -0500 Received: from acsinet21.oracle.com (acsinet21.oracle.com [141.146.126.237]) by userp1040.oracle.com (Sentrion-MTA-4.2.2/Sentrion-MTA-4.2.2) with ESMTP id qBDHRrR6024474 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Thu, 13 Dec 2012 17:27:54 GMT Received: from acsmt358.oracle.com (acsmt358.oracle.com [141.146.40.158]) by acsinet21.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id qBDHRrKY006521 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Thu, 13 Dec 2012 17:27:53 GMT Received: from abhmt113.oracle.com (abhmt113.oracle.com [141.146.116.65]) by acsmt358.oracle.com (8.12.11.20060308/8.12.11) with ESMTP id qBDHRr2J005114 for ; Thu, 13 Dec 2012 11:27:53 -0600 Received: from dradamslap1 (/130.35.178.8) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Thu, 13 Dec 2012 09:27:52 -0800 From: "Drew Adams" To: Subject: 24.3.50; Isearch: doc of `C-M-w' and interaction with Backspace (`DEL') Date: Thu, 13 Dec 2012 09:27:52 -0800 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Office Outlook 11 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.6157 Thread-Index: Ac3ZVy3n3ZTxzqCqRLSloEta07CLeg== X-Source-IP: acsinet21.oracle.com [141.146.126.237] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.4.x-2.6.x [generic] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 208.118.235.17 X-Spam-Score: -3.4 (---) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -6.1 (------) In Isearch: `C-M-w' deletes the last char from the search string. Following this with `DEL' adds that char back! Is this behavior intended (a feature) or a bug? Seems like a useful feature, to me. But AFAICT, it is documented nowhere. The doc should, in addition to mentioning this, document `DEL' and `C-M-w' together. Do not document `C-M-w' only in the context of yanking - that makes no sense. And that doc of both together should point out clearly what the differences are, including the fact that `DEL' can cancel searching but `C-M-w' never does that. In GNU Emacs 24.3.50.1 (i386-mingw-nt5.1.2600) of 2012-12-13 on ODIEONE Bzr revision: 111211 eggert@cs.ucla.edu-20121213021749-eyqqen0ewhn2hogq Windowing system distributor `Microsoft Corp.', version 5.1.2600 Configured using: `configure --with-gcc (4.7) --no-opt --enable-checking --cflags -IC:/Devel/emacs/build/include -Wall -Wextra -Wno-sign-compare -Wno-type-limits -Wno-missing-field-initializers -Wno-pointer-sign -Wdeclaration-after-statement --ldflags -LC:/Devel/emacs/build/lib' From debbugs-submit-bounces@debbugs.gnu.org Thu Dec 13 20:05:46 2012 Received: (at 13175) by debbugs.gnu.org; 14 Dec 2012 01:05:46 +0000 Received: from localhost ([127.0.0.1]:41519 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TjJii-0004W6-Oi for submit@debbugs.gnu.org; Thu, 13 Dec 2012 20:05:46 -0500 Received: from ps18281.dreamhost.com ([69.163.218.105]:54025 helo=ps18281.dreamhostps.com) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TjJif-0004Vm-HT for 13175@debbugs.gnu.org; Thu, 13 Dec 2012 20:05:43 -0500 Received: from localhost (ps18281.dreamhostps.com [69.163.218.105]) by ps18281.dreamhostps.com (Postfix) with ESMTP id E0809451E1EF; Thu, 13 Dec 2012 17:04:44 -0800 (PST) From: Juri Linkov To: "Drew Adams" Subject: Re: bug#13175: 24.3.50; Isearch: doc of `C-M-w' and interaction with Backspace (`DEL') Organization: JURTA References: Date: Fri, 14 Dec 2012 02:35:36 +0200 In-Reply-To: (Drew Adams's message of "Thu, 13 Dec 2012 09:27:52 -0800") Message-ID: <87zk1hfpzr.fsf@mail.jurta.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 0.8 (/) X-Debbugs-Envelope-To: 13175 Cc: 13175@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: 0.8 (/) > The doc should, in addition to mentioning this, document `DEL' and > `C-M-w' together. Do not document `C-M-w' only in the context of > yanking - that makes no sense. > > And that doc of both together should point out clearly what the > differences are, including the fact that `DEL' can cancel searching but > `C-M-w' never does that. `DEL' can't cancel searching, it can cancel only last input. Maybe a better word is "discard" instead of "cancel" like in the docstring of `isearch-delete-char'. The first line of the current docstring of `isearch-delete-char' already is quite clear, it says: "Discard last input item and move point back". So when last input was `C-M-w', DEL discards it and moves point back. But I agree that a possible confusion between these two commands could be clarified. The following patch does this: === modified file 'lisp/isearch.el' --- lisp/isearch.el 2012-12-13 23:00:05 +0000 +++ lisp/isearch.el 2012-12-14 00:35:21 +0000 @@ -1746,6 +1746,9 @@ (defun isearch-highlight-regexp () (defun isearch-delete-char () "Discard last input item and move point back. +Last input means the last character or the last isearch command +that added or deleted characters from the search string, +moved point, toggled regexp mode or case-sensitivity, etc. If no previous match was done, just beep." (interactive) (if (null (cdr isearch-cmds)) @@ -1755,6 +1758,8 @@ (defun isearch-delete-char () (defun isearch-del-char (&optional arg) "Delete character from end of search string and search again. +Unlike `isearch-delete-char', it only deletes the last character, +but doesn't cancel the effect of other isearch command. If search string is empty, just beep." (interactive "p") (if (= 0 (length isearch-string)) From debbugs-submit-bounces@debbugs.gnu.org Thu Dec 13 20:33:04 2012 Received: (at 13175) by debbugs.gnu.org; 14 Dec 2012 01:33:04 +0000 Received: from localhost ([127.0.0.1]:41530 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TjK9A-0005V7-GL for submit@debbugs.gnu.org; Thu, 13 Dec 2012 20:33:04 -0500 Received: from userp1040.oracle.com ([156.151.31.81]:23581) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TjK97-0005Um-L3 for 13175@debbugs.gnu.org; Thu, 13 Dec 2012 20:33:03 -0500 Received: from ucsinet22.oracle.com (ucsinet22.oracle.com [156.151.31.94]) by userp1040.oracle.com (Sentrion-MTA-4.2.2/Sentrion-MTA-4.2.2) with ESMTP id qBE1W5fU002318 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Fri, 14 Dec 2012 01:32:05 GMT Received: from acsmt356.oracle.com (acsmt356.oracle.com [141.146.40.156]) by ucsinet22.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id qBE1W4TJ017162 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Fri, 14 Dec 2012 01:32:04 GMT Received: from abhmt107.oracle.com (abhmt107.oracle.com [141.146.116.59]) by acsmt356.oracle.com (8.12.11.20060308/8.12.11) with ESMTP id qBE1W3OG020024; Thu, 13 Dec 2012 19:32:03 -0600 Received: from dradamslap1 (/10.159.136.65) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Thu, 13 Dec 2012 17:32:03 -0800 From: "Drew Adams" To: "'Juri Linkov'" References: <87zk1hfpzr.fsf@mail.jurta.org> Subject: RE: bug#13175: 24.3.50; Isearch: doc of `C-M-w' and interaction with Backspace (`DEL') Date: Thu, 13 Dec 2012 17:32:01 -0800 Message-ID: <3F64E9F88FF1444E96AC9A509A444C21@us.oracle.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Office Outlook 11 In-Reply-To: <87zk1hfpzr.fsf@mail.jurta.org> X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.6157 Thread-Index: Ac3ZlwKRwDO3XaxtRvyuWhYSqT/jZwAA8D/g X-Source-IP: ucsinet22.oracle.com [156.151.31.94] X-Spam-Score: -1.5 (-) X-Debbugs-Envelope-To: 13175 Cc: 13175@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -1.5 (-) > But I agree that a possible confusion between these two commands > could be clarified. The following patch does this: Thanks. That helps. From debbugs-submit-bounces@debbugs.gnu.org Sat Dec 15 07:21:11 2012 Received: (at control) by debbugs.gnu.org; 15 Dec 2012 12:21:11 +0000 Received: from localhost ([127.0.0.1]:43453 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1Tjqju-0002Js-Gi for submit@debbugs.gnu.org; Sat, 15 Dec 2012 07:21:11 -0500 Received: from ps18281.dreamhost.com ([69.163.218.105]:52710 helo=ps18281.dreamhostps.com) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1Tjqjr-0002Jl-QD for control@debbugs.gnu.org; Sat, 15 Dec 2012 07:21:09 -0500 Received: from localhost (ps18281.dreamhostps.com [69.163.218.105]) by ps18281.dreamhostps.com (Postfix) with ESMTP id CAA7E451CD65 for ; Sat, 15 Dec 2012 04:20:00 -0800 (PST) From: Juri Linkov To: control@debbugs.gnu.org Subject: Re: bug#13175: 24.3.50; Isearch: doc of `C-M-w' and interaction with Backspace (`DEL') Organization: JURTA References: <87zk1hfpzr.fsf@mail.jurta.org> <3F64E9F88FF1444E96AC9A509A444C21@us.oracle.com> Date: Sat, 15 Dec 2012 14:19:34 +0200 In-Reply-To: <3F64E9F88FF1444E96AC9A509A444C21@us.oracle.com> (Drew Adams's message of "Thu, 13 Dec 2012 17:32:01 -0800") Message-ID: <874njnzew9.fsf@mail.jurta.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 0.8 (/) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: 0.8 (/) close 13175 stop From unknown Sun Aug 17 22:00:33 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Sat, 12 Jan 2013 12:24:04 +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