From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Richard Copley Newsgroups: gmane.emacs.bugs Subject: bug#13805: query-replace-regexp has conflicting interactive defaults Date: Sun, 24 Feb 2013 20:38:20 +0000 Message-ID: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 X-Trace: ger.gmane.org 1361738438 14738 80.91.229.3 (24 Feb 2013 20:40:38 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 24 Feb 2013 20:40:38 +0000 (UTC) To: 13805@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Feb 24 21:41:01 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 1U9iNT-0003wK-1e for geb-bug-gnu-emacs@m.gmane.org; Sun, 24 Feb 2013 21:40:55 +0100 Original-Received: from localhost ([::1]:36370 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U9iN8-0008Bd-GJ for geb-bug-gnu-emacs@m.gmane.org; Sun, 24 Feb 2013 15:40:34 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:55876) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U9iN4-0008BS-8E for bug-gnu-emacs@gnu.org; Sun, 24 Feb 2013 15:40:32 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1U9iN3-0000au-47 for bug-gnu-emacs@gnu.org; Sun, 24 Feb 2013 15:40:30 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:42594) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U9iN3-0000aq-0C for bug-gnu-emacs@gnu.org; Sun, 24 Feb 2013 15:40:29 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1U9iOZ-0006DT-RL for bug-gnu-emacs@gnu.org; Sun, 24 Feb 2013 15:42:03 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Richard Copley Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 24 Feb 2013 20:42:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 13805 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.136173850923864 (code B ref -1); Sun, 24 Feb 2013 20:42:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 24 Feb 2013 20:41:49 +0000 Original-Received: from localhost ([127.0.0.1]:48058 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1U9iOK-0006Cq-SX for submit@debbugs.gnu.org; Sun, 24 Feb 2013 15:41:49 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:44404) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1U9iOH-0006Ch-TZ for submit@debbugs.gnu.org; Sun, 24 Feb 2013 15:41:47 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1U9iLA-00087e-UN for submit@debbugs.gnu.org; Sun, 24 Feb 2013 15:38:35 -0500 Original-Received: from lists.gnu.org ([208.118.235.17]:44460) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U9iLA-00087Z-Ot for submit@debbugs.gnu.org; Sun, 24 Feb 2013 15:38:32 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:54900) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U9iL6-0006v1-KX for bug-gnu-emacs@gnu.org; Sun, 24 Feb 2013 15:38:32 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1U9iL0-00085D-8o for bug-gnu-emacs@gnu.org; Sun, 24 Feb 2013 15:38:28 -0500 Original-Received: from mail-ee0-f41.google.com ([74.125.83.41]:53378) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U9iL0-00084x-16 for bug-gnu-emacs@gnu.org; Sun, 24 Feb 2013 15:38:22 -0500 Original-Received: by mail-ee0-f41.google.com with SMTP id c13so1091744eek.28 for ; Sun, 24 Feb 2013 12:38:20 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:date:message-id:subject:from:to :content-type; bh=r8o0ApQ8lFwcP+JfjHSpWILuplVf6iOLo6etMrq5jzc=; b=rcIbS1GpmHrBPhCChicVaqY8EPROFIYNDiq4RM85t/tnKn3rV08FV1eRPJ9G9vPImq 9yDHEGBuixyDDkR20liHzdhxFJ7y2ZPpaX8m8DC61hrph0TAPKfBnx9eS8DMbTIf2KWG s6Y96S5Po0H+T8Nfbi+VKtkAm6lciOmChwJ7CLxl77hTJr5LzTmnaXxFqYfWHPU0yxP9 Bzj4emKS8T6V7xDuRiOtIgbB5mahGezgY49rTKN2Mtl8UwbFenQAJoJbVgjs+8QotOcO Q7XQmEonVyL/Wmc0dINPSxhqbSWdvX/0vVyUSMwufClr1mgs1ocUhA/37Wv8uvIfBUD8 9xZw== X-Received: by 10.14.210.132 with SMTP id u4mr31434429eeo.19.1361738300605; Sun, 24 Feb 2013 12:38:20 -0800 (PST) Original-Received: by 10.14.96.11 with HTTP; Sun, 24 Feb 2013 12:38:20 -0800 (PST) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [fuzzy] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x 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:71752 Archived-At: `query-replace-regexp' offers to repeat the last replacement, but then goes off and does something exciting and new instead. IMHO replace-regexp and friends should not default their argument using the thing at point, because the user doesn't have control of point: it is by definition at one end of the region to be searched. That means the default is useful only in exceptional cases, and just a distraction otherwise. >From `emacs -Q': M-% . RET ! RET ;; To put a replacement into the history. M-b ;; To place point before the word "buffer" in *scratch*. C-M-% ;; Prompts "Query replace regexp (default . -> !): ". RET ;; Prompts "Query replace regexp \_ with: ". RET ! ;; Replaces "buffer" with "". In GNU Emacs 24.3.50.1 (i386-mingw-nt6.2.9200) of 2013-02-24 on MACHINE Bzr revision: 111868 rgm@gnu.org-20130224194517-l50airg5zdb6y0cr Windowing system distributor `Microsoft Corp.', version 6.2.9200 Configured using: `configure --with-gcc (4.7) --cflags -I c:/gnuwin32/include --ldflags -L c:/gnuwin32/lib' Important settings: value of $LANG: ENG locale-coding-system: cp1252 default enable-multibyte-characters: t Major mode: Lisp Interaction Minor modes in effect: tooltip-mode: t mouse-wheel-mode: t tool-bar-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t line-number-mode: t transient-mark-mode: t Recent input: M-% . ! M-b C-M-% ? ! M-x r e p o r t - e m a c s - b u g Recent messages: For information about GNU Emacs and the GNU system, type C-h C-a. Mark set Replaced 0 occurrences Mark set Replaced 1 occurrence Load-path shadows: None found. Features: (shadow sort gnus-util mail-extr emacsbug message format-spec rfc822 mml easymenu mml-sec mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mail-utils time-date tooltip ediff-hook vc-hooks lisp-float-type mwheel dos-w32 ls-lisp w32-common-fns disp-table w32-win w32-vars tool-bar dnd fontset image regexp-opt fringe tabulated-list newcomment lisp-mode register page menu-bar rfn-eshadow timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core frame cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese case-table epa-hook jka-cmpr-hook help simple abbrev minibuffer button faces cus-face macroexp files text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote make-network-process w32notify w32 multi-tty emacs)