From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Juri Linkov Newsgroups: gmane.emacs.bugs Subject: bug#13175: 24.3.50; Isearch: doc of `C-M-w' and interaction with Backspace (`DEL') Date: Fri, 14 Dec 2012 02:35:36 +0200 Organization: JURTA Message-ID: <87zk1hfpzr.fsf@mail.jurta.org> References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1355447119 23235 80.91.229.3 (14 Dec 2012 01:05:19 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 14 Dec 2012 01:05:19 +0000 (UTC) Cc: 13175@debbugs.gnu.org To: "Drew Adams" Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Dec 14 02:05:33 2012 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1TjJiU-0004pW-JO for geb-bug-gnu-emacs@m.gmane.org; Fri, 14 Dec 2012 02:05:30 +0100 Original-Received: from localhost ([::1]:47983 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TjJiH-0004IB-F9 for geb-bug-gnu-emacs@m.gmane.org; Thu, 13 Dec 2012 20:05:17 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:44305) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TjJiB-0004AK-VH for bug-gnu-emacs@gnu.org; Thu, 13 Dec 2012 20:05:14 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TjJi9-0004Z6-5L for bug-gnu-emacs@gnu.org; Thu, 13 Dec 2012 20:05:11 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:59508) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TjJi9-0004Yq-2U for bug-gnu-emacs@gnu.org; Thu, 13 Dec 2012 20:05:09 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1TjJj1-0004XL-S7 for bug-gnu-emacs@gnu.org; Thu, 13 Dec 2012 20:06:03 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Juri Linkov Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 14 Dec 2012 01:06:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 13175 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 13175-submit@debbugs.gnu.org id=B13175.135544714617373 (code B ref 13175); Fri, 14 Dec 2012 01:06:03 +0000 Original-Received: (at 13175) by debbugs.gnu.org; 14 Dec 2012 01:05:46 +0000 Original-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 Original-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 Original-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) In-Reply-To: (Drew Adams's message of "Thu, 13 Dec 2012 09:27:52 -0800") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (x86_64-pc-linux-gnu) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 140.186.70.43 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.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:68487 Archived-At: > 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))