From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Jarek Czekalski Newsgroups: gmane.emacs.bugs Subject: bug#15275: 24.3; replace-string function does not respect current region Date: Thu, 05 Sep 2013 14:55:32 +0200 Message-ID: <52287F44.2090707@poczta.onet.pl> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1378395259 979 80.91.229.3 (5 Sep 2013 15:34:19 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 5 Sep 2013 15:34:19 +0000 (UTC) To: 15275@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Sep 05 17:34:22 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 1VHbZc-0002aM-KG for geb-bug-gnu-emacs@m.gmane.org; Thu, 05 Sep 2013 17:34:20 +0200 Original-Received: from localhost ([::1]:60532 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VHbZb-0008Ic-Pj for geb-bug-gnu-emacs@m.gmane.org; Thu, 05 Sep 2013 11:34:19 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:55202) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VHbZS-0008FR-91 for bug-gnu-emacs@gnu.org; Thu, 05 Sep 2013 11:34:16 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VHbZL-0001hv-UH for bug-gnu-emacs@gnu.org; Thu, 05 Sep 2013 11:34:10 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:33733) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VHbZL-0001hr-QR for bug-gnu-emacs@gnu.org; Thu, 05 Sep 2013 11:34:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1VHbZL-0003AT-Ho for bug-gnu-emacs@gnu.org; Thu, 05 Sep 2013 11:34:03 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Jarek Czekalski Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 05 Sep 2013 15:34:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 15275 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.137839518812065 (code B ref -1); Thu, 05 Sep 2013 15:34:03 +0000 Original-Received: (at submit) by debbugs.gnu.org; 5 Sep 2013 15:33:08 +0000 Original-Received: from localhost ([127.0.0.1]:42019 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VHbYR-00038Q-9m for submit@debbugs.gnu.org; Thu, 05 Sep 2013 11:33:07 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:38555) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VHZ6L-0007UQ-UX for submit@debbugs.gnu.org; Thu, 05 Sep 2013 08:55:59 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VHZ6A-0000uv-IO for submit@debbugs.gnu.org; Thu, 05 Sep 2013 08:55:52 -0400 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:33322) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VHZ6A-0000ur-Eq for submit@debbugs.gnu.org; Thu, 05 Sep 2013 08:55:46 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:40264) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VHZ64-0003wx-RG for bug-gnu-emacs@gnu.org; Thu, 05 Sep 2013 08:55:46 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VHZ5y-0000u2-5i for bug-gnu-emacs@gnu.org; Thu, 05 Sep 2013 08:55:40 -0400 Original-Received: from smtpo11.poczta.onet.pl ([213.180.142.142]:51894) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VHZ5x-0000tf-Ni for bug-gnu-emacs@gnu.org; Thu, 05 Sep 2013 08:55:34 -0400 Original-Received: from [192.168.17.9] (cj.e-siemianowice.pl [95.215.234.30]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: jarekczek@poczta.onet.pl) by smtp.poczta.onet.pl (Onet) with ESMTPSA id 3cW21v0SWQz9v8sj for ; Thu, 5 Sep 2013 14:55:30 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=poczta.onet.pl; s=2011; t=1378385731; bh=fdy5LUGs9QV/PjxO+OPryU9eAR4DV21L5iBYipsQmTQ=; h=Message-ID:Date:From:MIME-Version:To:Subject:Content-Type: Content-Transfer-Encoding; b=Jp4b+m7cmatgXZRnnRZ3Nkov/FEhfZ+/Qapr845XQ4fiTPN/rgp9Jl3QDbTtbVWLm CmWYTNNmfaiZmr7N83aFHriIIHtZDs3BVnOIjoBciVLjFDaDP7FBakf/Vg6evAy1GD Y6vzW/JGZnvLiLq8ykjdUb3eUWWYlSqpCiJCnHMA= User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:15.0) Gecko/20120824 Thunderbird/15.0 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: Thu, 05 Sep 2013 11:33:03 -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:78000 Archived-At: emacs started with -Q. Documentation of function (replace-string) says: In Transient Mark mode, if the mark is active, operate on the contents of the region. Otherwise, operate from point to the end of the buffer. However I can't make it work on a region and it always replaces from the point up to the end of buffer. For example this call: (replace-string "a" "x") If I execute it through M-x, it works correctly, working only on the region. In GNU Emacs 24.3.1 (i386-mingw-nt6.1.7601) of 2013-03-17 on MARVIN Windowing system distributor `Microsoft Corp.', version 6.1.7601 Configured using: `configure --with-gcc (4.7) --cflags -ID:/devel/emacs/libs/libXpm-3.5.8/include -ID:/devel/emacs/libs/libXpm-3.5.8/src -ID:/devel/emacs/libs/libpng-dev_1.4.3-1/include -ID:/devel/emacs/libs/zlib-dev_1.2.5-2/include -ID:/devel/emacs/libs/giflib-4.1.4-1/include -ID:/devel/emacs/libs/jpeg-6b-4/include -ID:/devel/emacs/libs/tiff-3.8.2-1/include -ID:/devel/emacs/libs/gnutls-3.0.9/include -ID:/devel/emacs/libs/libiconv-1.13.1-1-dev/include -ID:/devel/emacs/libs/libxml2-2.7.8/include/libxml2' Important settings: value of $LANG: PLK locale-coding-system: cp1250 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-: ( r e p l a c e - s t r i n g SPC " i " SPC " * " ) M-x r e p o r Recent messages: For information about GNU Emacs and the GNU system, type C-h C-a. Mark set [2 times] Replaced 8 occurrences nil 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 loaddefs 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 w32 multi-tty emacs)