From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Ed Avis Newsgroups: gmane.emacs.bugs Subject: bug#14708: 24.2; query-replace-regexp when match and replacement are the same Date: Mon, 24 Jun 2013 11:44:40 +0000 Message-ID: <7E039918541B4C4183BFDB8F015C74300E8E80@WCL-EXCH02.wcl.local> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1372089141 593 80.91.229.3 (24 Jun 2013 15:52:21 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 24 Jun 2013 15:52:21 +0000 (UTC) To: 14708@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Jun 24 17:52:21 2013 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 1Ur93w-0004Ur-Ne for geb-bug-gnu-emacs@m.gmane.org; Mon, 24 Jun 2013 17:52:16 +0200 Original-Received: from localhost ([::1]:42979 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ur93w-00038L-DF for geb-bug-gnu-emacs@m.gmane.org; Mon, 24 Jun 2013 11:52:16 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:49697) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ur93p-0002xh-Df for bug-gnu-emacs@gnu.org; Mon, 24 Jun 2013 11:52:12 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Ur93l-0002QS-Ua for bug-gnu-emacs@gnu.org; Mon, 24 Jun 2013 11:52:09 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:44498) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ur93l-0002QN-SI for bug-gnu-emacs@gnu.org; Mon, 24 Jun 2013 11:52:05 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1Ur93l-000097-Le for bug-gnu-emacs@gnu.org; Mon, 24 Jun 2013 11:52:05 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Ed Avis Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 24 Jun 2013 15:52:05 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 14708 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: "'bug-gnu-emacs@gnu.org'" Original-Received: via spool by submit@debbugs.gnu.org id=B.1372089107464 (code B ref -1); Mon, 24 Jun 2013 15:52:05 +0000 Original-Received: (at submit) by debbugs.gnu.org; 24 Jun 2013 15:51:47 +0000 Original-Received: from localhost ([127.0.0.1]:38806 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Ur93S-00007N-GN for submit@debbugs.gnu.org; Mon, 24 Jun 2013 11:51:47 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:59100) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Ur5Ce-0006Ap-1l for submit@debbugs.gnu.org; Mon, 24 Jun 2013 07:45:00 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Ur5CV-00030M-SR for submit@debbugs.gnu.org; Mon, 24 Jun 2013 07:44:54 -0400 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:42420) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ur5CV-00030G-Pi for submit@debbugs.gnu.org; Mon, 24 Jun 2013 07:44:51 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:60806) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ur5CS-0007vH-FM for bug-gnu-emacs@gnu.org; Mon, 24 Jun 2013 07:44:51 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Ur5CO-0002yu-B1 for bug-gnu-emacs@gnu.org; Mon, 24 Jun 2013 07:44:48 -0400 Original-Received: from mail1.bemta5.messagelabs.com ([195.245.231.140]:49767) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ur5CO-0002yX-1Q for bug-gnu-emacs@gnu.org; Mon, 24 Jun 2013 07:44:44 -0400 Original-Received: from [85.158.139.83:39976] by server-4.bemta-5.messagelabs.com id 30/49-20445-A2138C15; Mon, 24 Jun 2013 11:44:42 +0000 X-Env-Sender: eda@waniasset.com X-Msg-Ref: server-3.tower-182.messagelabs.com!1372074281!28394356!1 X-Originating-IP: [80.169.169.167] X-StarScan-Received: X-StarScan-Version: 6.9.9; banners=waniasset.com,-,- X-VirusChecked: Checked Original-Received: (qmail 32567 invoked from network); 24 Jun 2013 11:44:41 -0000 Original-Received: from unknown (HELO WCL-EXCHCAS02.wcl.local) (80.169.169.167) by server-3.tower-182.messagelabs.com with AES128-SHA encrypted SMTP; 24 Jun 2013 11:44:41 -0000 Original-Received: from WCL-EXCH02.wcl.local ([169.254.1.11]) by WCL-EXCHCAS02.wcl.local ([149.85.127.102]) with mapi id 14.02.0318.004; Mon, 24 Jun 2013 12:44:41 +0100 Thread-Topic: 24.2; query-replace-regexp when match and replacement are the same Thread-Index: Ac5w0CjtpWjfQgWfSKGXwT/2YP4U9g== Accept-Language: en-US, en-GB Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [149.85.127.148] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Mailman-Approved-At: Mon, 24 Jun 2013 11:51:45 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.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:75507 Archived-At: This bug report will be sent to the Bug-GNU-Emacs mailing list and the GNU bug tracker at debbugs.gnu.org. Please check that the From: line contains a valid email address. After a delay of up to one day, you should receive an acknowledgement at that address. Please write in English if possible, as the Emacs maintainers usually do not have translators for other languages. Please describe exactly what actions triggered the bug, and the precise symptoms of the bug. If you can, give a recipe starting from `emacs -Q': Enter some text in a buffer with some space characters and some double or triple spaced like this. Do M-x query-replace-regexp and enter ' +' as the regexp and ' ' as the replacement text. Emacs matches each sequence of one or more space characters, as specified in the regexp, and asks whether to replace it. However, for many of the cases the replacement text will be the same as the match, so it makes no difference whether you replace or not. Since the aim of query-replace-regexp is=20primarily to do a search and replace, not to find all places in the buffer where a regexp matches, it should instead skip over those cases and only ask about places where replacing will make a difference. So in this example, only the double and triple spaces would be asked about for replacement. If Emacs crashed, and you have the Emacs process in the gdb debugger, please include the output from the following gdb commands: `bt full' and `xbacktrace'. For information about debugging Emacs, please read the file /usr/share/emacs/24.2/etc/DEBUG. In GNU Emacs 24.2.1 (x86_64-redhat-linux-gnu, GTK+ Version 3.6.4) of 2013-04-12 on buildvm-05.phx2.fedoraproject.org Configured using: `configure '--build=3Dx86_64-redhat-linux-gnu' '--host=3Dx86_64-redhat-linux-gnu' '--program-prefix=3D' '--disable-dependency-tracking' '--prefix=3D/usr' '--exec-prefix=3D/usr' '--bindir=3D/usr/bin' '--sbindir=3D/usr/sbin' '--sysconfdir=3D/etc' '--datadir=3D/usr/share' '--includedir=3D/usr/include' '--libdir=3D/usr/lib64' '--libexecdir=3D/usr/libexec' '--localstatedir=3D/var' '--sharedstatedir=3D/var/lib' '--mandir=3D/usr/share/man' '--infodir=3D/usr/share/info' '--with-dbus' '--with-gif' '--with-jpeg' '--with-png' '--with-rsvg' '--with-tiff' '--with-xft' '--with-xpm' '--with-x-toolkit=3Dgtk3' '--with-gpm=3Dno' '--with-wide-int' 'build_alias=3Dx86_64-redhat-linux-gnu' 'host_alias=3Dx86_64-redhat-linux-gnu' 'CFLAGS=3D-DMAIL_USE_LOCKF -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=3D2 -fexceptions -fstack-protector --param=3Dssp-buffer-size=3D4 -m64 -mtune=3Dgeneric' 'LDFLAGS=3D-Wl,-z,re= lro '' Important settings: value of $LC_ALL: nil value of $LC_COLLATE: C value of $LC_CTYPE: en_GB.UTF-8 value of $LC_MESSAGES: en_GB.UTF-8 value of $LC_MONETARY: en_GB.UTF-8 value of $LC_NUMERIC: en_GB.UTF-8 value of $LC_TIME: en_GB.UTF-8 value of $LANG: en_GB.UTF-8 value of $XMODIFIERS: nil locale-coding-system: utf-8-unix default enable-multibyte-characters: t Major mode: HTML Minor modes in effect: diff-auto-refine-mode: t shell-dirtrack-mode: t tooltip-mode: t mouse-wheel-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t line-number-mode: t transient-mark-mode: t Recent input: a t SPC w a c s l =3D " C-x o ESC O C ESC O C ESC O C ESC O C ESC O C ESC O C ESC O C ESC O C ESC O C ESC O C ESC O C ESC O C ESC O C ESC O C ESC O C ESC O C ESC O C ESC O C ESC O C ESC O C ESC O C ESC O C ESC O C ESC O C ESC O C ESC O C C-@ ESC O B ESC O B ESC O B ESC O B ESC O D ESC O B ESC O D ESC w C-x o C-y ESC O A ESC O A ESC O A ESC O A ESC O A C-e C-d C-e C-d C-e C-d C-e C-d C-e C-d C-e " SPC f o r m a t =3D " 0 . 0 DEL # " SPC r e p o r t - c h a n g e s =3D " 1 " SPC / > < / T D > C-a ESC d C-_ ESC f ESC f ESC x r e DEL DEL q u e r SPC r e SPC - r e g e SPC RET SPC c C-h + C-g ESC x ESC O A RET SPC + RET SPC RET y y y y y y y y y y y y y y y C-a ESC x r e p o r t SPC e m SPC b SPC SPC SPC SPC SPC SPC SPC SPC SPC SPC SPC SPC SPC SPC SPC SPC SPC SPC SPC DEL DEL DEL DEL DEL DEL DEL DEL DEL DEL DEL DEL DEL DEL DEL DEL DEL DEL DEL DEL RET Recent messages: Keyboard macro defined (Type e to repeat macro) [17 times] Making completion list... Mark set Mark saved where search started [2 times] Auto-saving...done Mark set [2 times] Undo! Quit [2 times] Mark set Load-path shadows: ______________________________________________________________________ This email has been scanned by the Symantec Email Security.cloud service. For more information please visit http://www.symanteccloud.com ______________________________________________________________________