GNU bug report logs -
#13175
24.3.50; Isearch: doc of `C-M-w' and interaction with Backspace (`DEL')
Previous Next
Reported by: "Drew Adams" <drew.adams <at> oracle.com>
Date: Thu, 13 Dec 2012 17:29:02 UTC
Severity: minor
Found in version 24.3.50
Done: Juri Linkov <juri <at> jurta.org>
Bug is archived. No further changes may be made.
To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 13175 in the body.
You can then email your comments to 13175 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#13175
; Package
emacs
.
(Thu, 13 Dec 2012 17:29:02 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
"Drew Adams" <drew.adams <at> oracle.com>
:
New bug report received and forwarded. Copy sent to
bug-gnu-emacs <at> gnu.org
.
(Thu, 13 Dec 2012 17:29:02 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
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 <at> 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'
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#13175
; Package
emacs
.
(Fri, 14 Dec 2012 01:06:03 GMT)
Full text and
rfc822 format available.
Message #8 received at 13175 <at> debbugs.gnu.org (full text, mbox):
> 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))
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#13175
; Package
emacs
.
(Fri, 14 Dec 2012 01:34:02 GMT)
Full text and
rfc822 format available.
Message #11 received at 13175 <at> debbugs.gnu.org (full text, mbox):
> But I agree that a possible confusion between these two commands
> could be clarified. The following patch does this:
Thanks. That helps.
bug closed, send any further explanations to
13175 <at> debbugs.gnu.org and "Drew Adams" <drew.adams <at> oracle.com>
Request was from
Juri Linkov <juri <at> jurta.org>
to
control <at> debbugs.gnu.org
.
(Sat, 15 Dec 2012 12:22:02 GMT)
Full text and
rfc822 format available.
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Sat, 12 Jan 2013 12:24:04 GMT)
Full text and
rfc822 format available.
This bug report was last modified 11 years and 117 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.