From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Stefan Daschek Newsgroups: gmane.emacs.bugs Subject: Inconsistency with repeat-complex-command and transient-mark-mode Date: 14 Mar 2003 23:44:21 +0100 Sender: bug-gnu-emacs-bounces+gnu-bug-gnu-emacs=m.gmane.org@gnu.org Message-ID: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1047692519 6432 80.91.224.249 (15 Mar 2003 01:41:59 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Sat, 15 Mar 2003 01:41:59 +0000 (UTC) Original-X-From: bug-gnu-emacs-bounces+gnu-bug-gnu-emacs=m.gmane.org@gnu.org Sat Mar 15 02:41:58 2003 Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 18u0gQ-0001fW-00 for ; Sat, 15 Mar 2003 02:41:58 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 18u0gU-0000Tg-05 for gnu-bug-gnu-emacs@m.gmane.org; Fri, 14 Mar 2003 20:42:02 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13) id 18u0gH-0000B9-00 for bug-gnu-emacs@prep.ai.mit.edu; Fri, 14 Mar 2003 20:41:49 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13) id 18u0g8-0008JI-00 for bug-gnu-emacs@prep.ai.mit.edu; Fri, 14 Mar 2003 20:41:42 -0500 Original-Received: from trinity.ranger.supernews.net ([216.168.1.22] helo=trinity.supernews.net) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 18u0g5-0007RP-00 for bug-gnu-emacs@prep.ai.mit.edu; Fri, 14 Mar 2003 20:41:37 -0500 Original-Received: from mail.fu-berlin.de ([160.45.11.165] ident=root) by trinity.supernews.net with esmtp (Exim 4.12) id 18u0fs-000E0R-00 for gnu-emacs-bug@moderators.isc.org; Sat, 15 Mar 2003 01:41:24 +0000 Original-Received: by mail.fu-berlin.de (Smail3.2.0.98) from Curry.ZEDAT.FU-Berlin.DE (160.45.10.36) with esmtp id ; Sat, 15 Mar 2003 02:41:23 +0100 (MET) Original-Received: by Curry.ZEDAT.FU-Berlin.DE (Smail3.2.0.98) from news.fu-berlin.de with bsmtp id ; Sat, 15 Mar 2003 02:41:22 +0100 (MET) Original-To: gnu-emacs-bug@moderators.isc.org Original-Path: noniq.noniq.AT!not-for-mail Original-Newsgroups: gnu.emacs.bug Original-Lines: 23 X-Orig-NNTP-Posting-Host: noniq.noniq.at (217.19.37.174) X-Orig-X-Trace: fu-berlin.de 1047692482 70771913 217.19.37.174 (16 [94277]) X-Orig-Path: 217.19.37.174!nobody User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2 X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: Bug reports for GNU Emacs, the Swiss army knife of text editors List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , Errors-To: bug-gnu-emacs-bounces+gnu-bug-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.bugs:4617 X-Report-Spam: http://spam.gmane.org/gmane.emacs.bugs:4617 There are several commands which behave differently in transient-mark-mode when the mark is active. Now what happens when I try to repeat one of these commands with repeat-complex-command? Well, it seems there are 2 different things that may happen, according to which command was used. I give an example for each behaviour (this is what C-x ESC ESC shows after calling that command while the mark was active): (keep-lines "foo") (query-replace "foo" "bar" nil 180 195) As you see, the values of region-beginning and region-end are sort of "hardcoded" in the second case. This means that trying to consecutively apply a command to different regions with C-x ESC ESC works with keep-lines but does not work with query-replace. I consider this behaviour rather confusing and suggest a change so that query-replace (and query-replace-regexp) act like keep-lines in this regard. ciao, noniq