From debbugs-submit-bounces@debbugs.gnu.org Sun Mar 05 21:02:56 2017 Received: (at submit) by debbugs.gnu.org; 6 Mar 2017 02:02:56 +0000 Received: from localhost ([127.0.0.1]:41557 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ckhzE-00087F-4h for submit@debbugs.gnu.org; Sun, 05 Mar 2017 21:02:56 -0500 Received: from eggs.gnu.org ([208.118.235.92]:39454) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ckhzB-000870-Ls for submit@debbugs.gnu.org; Sun, 05 Mar 2017 21:02:54 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ckhz5-0005Ir-Jn for submit@debbugs.gnu.org; Sun, 05 Mar 2017 21:02:48 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50,T_DKIM_INVALID autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:43016) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1ckhz5-0005In-GE for submit@debbugs.gnu.org; Sun, 05 Mar 2017 21:02:47 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:58654) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ckhz4-0005Du-7p for bug-gnu-emacs@gnu.org; Sun, 05 Mar 2017 21:02:47 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ckhz1-0005IR-1L for bug-gnu-emacs@gnu.org; Sun, 05 Mar 2017 21:02:46 -0500 Received: from gateway24.websitewelcome.com ([192.185.50.91]:20362) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1ckhz0-0005GR-PI for bug-gnu-emacs@gnu.org; Sun, 05 Mar 2017 21:02:42 -0500 Received: from cm1.websitewelcome.com (cm.websitewelcome.com [192.185.0.102]) by gateway24.websitewelcome.com (Postfix) with ESMTP id CCD5AFF45 for ; Sun, 5 Mar 2017 20:02:27 -0600 (CST) Received: from gator3053.hostgator.com ([50.87.144.69]) by cm1.websitewelcome.com with id sS2Q1u01z1W3Awq01S2R2F; Sun, 05 Mar 2017 20:02:27 -0600 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lawlist.com ; s=default; h=Content-Type:MIME-Version:Subject:To:From:Message-ID:Date: Sender:Reply-To:Cc:Content-Transfer-Encoding:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: In-Reply-To:References:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=XNCaPQwhDMHi0GA3OCGBH95Yp7bRQlmbwJ96wrLxu9A=; b=dYYiLbEMe7LUxJFsxaOrMlNOrG iq8oEq0pRskPuKAnMm4nmIgsoN57ngiEJVZN+3wWjUQr1UHoGDYoun8/GOEQYzPzJWO3LrQ6Beom9 ARpJu2yX9eE/WieqbJ/ZVrt4udhtQkVnSo3PjKlrfPOYsfF/kU5SJjH7qyXlWQ0c9o3p59NIv6o59 eikfK7KcZJETQnTvST1B9q74uAyvjgcVJemaNcLrtkw7wX8d7vaXPhD7chRdmo+AneXDG+demGNcy yYwI37MRt1Z260H9MET3Fx1Nj0sFGPzoH6gf+b8m2L8CjpijYwh+nYe556X4fUHGwuZhhXdN9Z+26 VLCWwtZQ==; Received: from cpe-45-48-239-195.socal.res.rr.com ([45.48.239.195]:51036 helo=server.local) by gator3053.hostgator.com with esmtpsa (TLSv1:DHE-RSA-AES256-SHA:256) (Exim 4.87) (envelope-from ) id 1ckhyi-000T8h-Bn for bug-gnu-emacs@gnu.org; Sun, 05 Mar 2017 20:02:24 -0600 Date: Sun, 05 Mar 2017 18:02:23 -0800 Message-ID: From: Keith David Bershatsky To: bug-gnu-emacs@gnu.org Subject: perform-replace leaves mark-active when not transient-mark-mode MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - gator3053.hostgator.com X-AntiAbuse: Original Domain - gnu.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - lawlist.com X-BWhitelist: no X-Source-IP: 45.48.239.195 X-Exim-ID: 1ckhyi-000T8h-Bn X-Source: X-Source-Args: X-Source-Dir: X-Source-Sender: cpe-45-48-239-195.socal.res.rr.com (server.local) [45.48.239.195]:51036 X-Source-Auth: lawlist X-Email-Count: 1 X-Source-Cap: bGF3bGlzdDtsYXdsaXN0O2dhdG9yMzA1My5ob3N0Z2F0b3IuY29t X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -4.0 (----) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -4.0 (----) When transient-mark-mode is turned off, perform-replace leaves mark-active set to `t`. Step 1: Launch emacs -q Step 2: Turn off transient-mark-mode. (transient-mark-mode -1) Step 3: Evaluate mark-active and verify it is `nil`. Step 4: Run a simple perform-replace such as: (replace-regexp ";" "@" nil 1 2) Step 5: Evaluate mark-active and see that it is now set `t`. The desired behavior is to leave `mark-active` set to `nil` if it was previously set to `nil`. I fixed this in my own setup with a very simple test at the outset of perform-replace to see whether mark-active was set to `t` at the outset and then turn it off at the end of the function if it was not previously active. Thanks, Keith From debbugs-submit-bounces@debbugs.gnu.org Mon Mar 06 11:27:13 2017 Received: (at 25992) by debbugs.gnu.org; 6 Mar 2017 16:27:13 +0000 Received: from localhost ([127.0.0.1]:42988 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ckvTd-0007uu-FT for submit@debbugs.gnu.org; Mon, 06 Mar 2017 11:27:13 -0500 Received: from eggs.gnu.org ([208.118.235.92]:36742) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ckvTb-0007uh-4s for 25992@debbugs.gnu.org; Mon, 06 Mar 2017 11:27:12 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ckvTT-0002aH-0J for 25992@debbugs.gnu.org; Mon, 06 Mar 2017 11:27:06 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50,RP_MATCHES_RCVD autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:49836) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ckvTS-0002aD-TA; Mon, 06 Mar 2017 11:27:02 -0500 Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:2245 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1ckvTS-0005zc-6Y; Mon, 06 Mar 2017 11:27:02 -0500 Date: Mon, 06 Mar 2017 18:26:53 +0200 Message-Id: <83innmid6a.fsf@gnu.org> From: Eli Zaretskii To: Keith David Bershatsky In-reply-to: (message from Keith David Bershatsky on Sun, 05 Mar 2017 18:02:23 -0800) Subject: Re: bug#25992: perform-replace leaves mark-active when not transient-mark-mode References: X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: 25992 Cc: 25992@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: Eli Zaretskii Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.0 (-----) > Date: Sun, 05 Mar 2017 18:02:23 -0800 > From: Keith David Bershatsky > > When transient-mark-mode is turned off, perform-replace leaves mark-active set to `t`. > > Step 1: Launch emacs -q > > Step 2: Turn off transient-mark-mode. (transient-mark-mode -1) > > Step 3: Evaluate mark-active and verify it is `nil`. > > Step 4: Run a simple perform-replace such as: (replace-regexp ";" "@" nil 1 2) > > Step 5: Evaluate mark-active and see that it is now set `t`. > > The desired behavior is to leave `mark-active` set to `nil` if it was previously set to `nil`. I'm not sure why you worry about mark-active when transient-mark-mode is off: AFAIK that flag is only meaningful when transient-mark-mode is on. Can you describe your use case? Anyway, the reason for activating the mark is that replace-regexp calls push-mark, which always activates the mark when transient-mark-mode is turned off. Not sure why we do that, but the code which does that has been doing it for the last 24 years, so I don't think we should change that now, unless we have a _very_ good reason. Thanks. From debbugs-submit-bounces@debbugs.gnu.org Mon Mar 06 12:07:55 2017 Received: (at 25992) by debbugs.gnu.org; 6 Mar 2017 17:07:55 +0000 Received: from localhost ([127.0.0.1]:43032 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ckw71-0000Uz-81 for submit@debbugs.gnu.org; Mon, 06 Mar 2017 12:07:55 -0500 Received: from gateway21.websitewelcome.com ([192.185.45.155]:13920) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ckw6y-0000Ur-Sy for 25992@debbugs.gnu.org; Mon, 06 Mar 2017 12:07:53 -0500 Received: from cm6.websitewelcome.com (cm6.websitewelcome.com [108.167.139.19]) by gateway21.websitewelcome.com (Postfix) with ESMTP id 74FDA400DC9EA for <25992@debbugs.gnu.org>; Mon, 6 Mar 2017 11:07:49 -0600 (CST) Received: from gator3053.hostgator.com ([50.87.144.69]) by cm6.websitewelcome.com with id sh6z1u0Aw1W3Awq01h7Dj7; Mon, 06 Mar 2017 11:07:37 -0600 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lawlist.com ; s=default; h=Content-Type:MIME-Version:Subject:Cc:To:From:Message-ID:Date: Sender:Reply-To:Content-Transfer-Encoding:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: In-Reply-To:References:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=AjB0vI5KZEaZL/ZzYsQWVbmBtFzVO1paRC8VudUxgc8=; b=FSRt6cPOinz7daSCKr/+ZMLPD+ SSsamCXQDlv7UuQ8e7nRodL0084aNqQMgJFoYQLuS5DUnT7LxsCm8go5iX1+enUW6mMpf3suiHLS8 gRz+iou7ppv918XLGD2IYPnOcjMrio4lD+hnUVCMaJw/wI3T8esvsLf6Pt30LHPoHPNfixQ5e5iIv BGZXu/ssEyQA9NQxQLAl4BtR06vzImxOaiJKhirNvKpFFH+dnN4f4uGouXsQQgKTa3WARiKDqPnU5 fU/0gOmPXdlJd9qDcD4YZHkAsRFXLRdBYTayWobdBRXnv8W5qQ0fB5GJsvs2Q1Ewe8o2BrGCB59/2 C2mIZy2w==; Received: from cpe-45-48-239-195.socal.res.rr.com ([45.48.239.195]:50383 helo=server.local) by gator3053.hostgator.com with esmtpsa (TLSv1:DHE-RSA-AES256-SHA:256) (Exim 4.87) (envelope-from ) id 1ckw64-0000cU-QN; Mon, 06 Mar 2017 11:06:56 -0600 Date: Mon, 06 Mar 2017 09:06:56 -0800 Message-ID: From: Keith David Bershatsky To: Eli Zaretskii Subject: Re: bug#25992: perform-replace leaves mark-active when not transient-mark-mode MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - gator3053.hostgator.com X-AntiAbuse: Original Domain - debbugs.gnu.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - lawlist.com X-BWhitelist: no X-Source-IP: 45.48.239.195 X-Exim-ID: 1ckw64-0000cU-QN X-Source: X-Source-Args: X-Source-Dir: X-Source-Sender: cpe-45-48-239-195.socal.res.rr.com (server.local) [45.48.239.195]:50383 X-Source-Auth: lawlist X-Email-Count: 1 X-Source-Cap: bGF3bGlzdDtsYXdsaXN0O2dhdG9yMzA1My5ob3N0Z2F0b3IuY29t X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 25992 Cc: 25992@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.0 (/) Thank you for taking a look at issue #25992. In a custom test to determine whether the region is active, I had been testing mark-active prior to using (region-beginning) and/or (region-end) to avoid trowing an error "The mark is not set now, so there is no region". When the following is true `(and mark-active (= (region-beginning) (region-end)))`, my custom function should return nil. Keith ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; DATE: Mon, 06 Mar 2017 18:26:53 +0200 FROM: Eli Zaretskii > > transient-mark-mode > > > Date: Sun, 05 Mar 2017 18:02:23 -0800 > > From: Keith David Bershatsky > > > > When transient-mark-mode is turned off, perform-replace leaves mark-active set to `t`. > > > > Step 1: Launch emacs -q > > > > Step 2: Turn off transient-mark-mode. (transient-mark-mode -1) > > > > Step 3: Evaluate mark-active and verify it is `nil`. > > > > Step 4: Run a simple perform-replace such as: (replace-regexp ";" "@" nil 1 2) > > > > Step 5: Evaluate mark-active and see that it is now set `t`. > > > > The desired behavior is to leave `mark-active` set to `nil` if it was previously set to `nil`. > > I'm not sure why you worry about mark-active when transient-mark-mode > is off: AFAIK that flag is only meaningful when transient-mark-mode is > on. Can you describe your use case? > > Anyway, the reason for activating the mark is that replace-regexp > calls push-mark, which always activates the mark when > transient-mark-mode is turned off. Not sure why we do that, but the > code which does that has been doing it for the last 24 years, so I > don't think we should change that now, unless we have a _very_ good > reason. > > Thanks. From debbugs-submit-bounces@debbugs.gnu.org Mon Mar 06 13:45:55 2017 Received: (at 25992) by debbugs.gnu.org; 6 Mar 2017 18:45:55 +0000 Received: from localhost ([127.0.0.1]:43149 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ckxdr-0006Vu-0m for submit@debbugs.gnu.org; Mon, 06 Mar 2017 13:45:55 -0500 Received: from eggs.gnu.org ([208.118.235.92]:48739) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ckxdq-0006Vh-8c for 25992@debbugs.gnu.org; Mon, 06 Mar 2017 13:45:54 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ckxdh-0007aA-BC for 25992@debbugs.gnu.org; Mon, 06 Mar 2017 13:45:49 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-0.0 required=5.0 tests=BAYES_20,RP_MATCHES_RCVD autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:51961) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ckxdh-0007Zy-8A; Mon, 06 Mar 2017 13:45:45 -0500 Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:2302 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1ckxdg-000862-AS; Mon, 06 Mar 2017 13:45:44 -0500 Date: Mon, 06 Mar 2017 20:45:32 +0200 Message-Id: <83a88yi6r7.fsf@gnu.org> From: Eli Zaretskii To: Keith David Bershatsky In-reply-to: (message from Keith David Bershatsky on Mon, 06 Mar 2017 09:06:56 -0800) Subject: Re: bug#25992: perform-replace leaves mark-active when not transient-mark-mode References: X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: 25992 Cc: 25992@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: Eli Zaretskii Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.0 (-----) > Date: Mon, 06 Mar 2017 09:06:56 -0800 > From: Keith David Bershatsky > Cc: 25992@debbugs.gnu.org > > In a custom test to determine whether the region is active, I had been testing mark-active prior to using (region-beginning) and/or (region-end) to avoid trowing an error "The mark is not set now, so there is no region". When the following is true `(and mark-active (= (region-beginning) (region-end)))`, my custom function should return nil. Why can't you just check whether the function 'mark' returns nil? From debbugs-submit-bounces@debbugs.gnu.org Tue Mar 07 00:55:55 2017 Received: (at 25992) by debbugs.gnu.org; 7 Mar 2017 05:55:55 +0000 Received: from localhost ([127.0.0.1]:43494 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cl86F-0002ei-Ab for submit@debbugs.gnu.org; Tue, 07 Mar 2017 00:55:55 -0500 Received: from gateway31.websitewelcome.com ([192.185.143.38]:19631) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cl86D-0002ea-8X for 25992@debbugs.gnu.org; Tue, 07 Mar 2017 00:55:54 -0500 Received: from cm10.websitewelcome.com (cm10.websitewelcome.com [100.42.49.4]) by gateway31.websitewelcome.com (Postfix) with ESMTP id A5D0544384F for <25992@debbugs.gnu.org>; Mon, 6 Mar 2017 23:55:51 -0600 (CST) Received: from gator3053.hostgator.com ([50.87.144.69]) by cmsmtp with SMTP id l85pc2fMR0oSxl85qcDVOq; Mon, 06 Mar 2017 23:55:32 -0600 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lawlist.com ; s=default; h=Content-Type:MIME-Version:Subject:Cc:To:From:Message-ID:Date: Sender:Reply-To:Content-Transfer-Encoding:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: In-Reply-To:References:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=RUKl0870VHxIn2ZDx6jlYsEsvfh8eGthJQjq1lhRXwc=; b=KFXnfm09Ifuej4wx40TJypIRKN WZ1UVt3ODmdUAPpylf9PWTk4m3DgMrw6pps7QbqAJYAY8FzcozCZEuBqRiWO1S5r+/wRC2eABvKKr TGenQrKST7J/MzjBf1pBzF4BgoXphMaFXCXM5VO9PiT/OVlrlr5LzHysMRNSYXLDx9S4g6OXTLy9t YPRsG2M2P6siiJqzvgsndFf32m0ytE2K2WKzRYtXCBXAUUnR3reugoxHhmAH2mKng7De2bALxVDDr BJ0gx1YMrFeaxl9hYzrTuQjq8GKZvJqX+8SSOaj0/4t3mGFXI+0bcDO809AFyOA5MHSf8pK4baIH+ g2idBELQ==; Received: from cpe-45-48-239-195.socal.res.rr.com ([45.48.239.195]:50430 helo=server.local) by gator3053.hostgator.com with esmtpsa (TLSv1:DHE-RSA-AES256-SHA:256) (Exim 4.87) (envelope-from ) id 1cl868-000VWz-KL; Mon, 06 Mar 2017 23:55:48 -0600 Date: Mon, 06 Mar 2017 21:55:47 -0800 Message-ID: From: Keith David Bershatsky To: Eli Zaretskii Subject: Re: bug#25992: perform-replace leaves mark-active when not transient-mark-mode MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - gator3053.hostgator.com X-AntiAbuse: Original Domain - debbugs.gnu.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - lawlist.com X-BWhitelist: no X-Source-IP: 45.48.239.195 X-Exim-ID: 1cl868-000VWz-KL X-Source: X-Source-Args: X-Source-Dir: X-Source-Sender: cpe-45-48-239-195.socal.res.rr.com (server.local) [45.48.239.195]:50430 X-Source-Auth: lawlist X-Email-Count: 8 X-Source-Cap: bGF3bGlzdDtsYXdsaXN0O2dhdG9yMzA1My5ob3N0Z2F0b3IuY29t X-Spam-Score: 0.5 (/) X-Debbugs-Envelope-To: 25992 Cc: 25992@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.5 (/) Thank you very much for the suggestion to check 'mark' prior to calling either 'region-beginning' or 'region-end', as an alternative to testing the variable 'mark-active'. Keith ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; DATE: Mon, 06 Mar 2017 20:45:32 +0200 FROM: Eli Zaretskii > > transient-mark-mode > > > Date: Mon, 06 Mar 2017 09:06:56 -0800 > > From: Keith David Bershatsky > > Cc: 25992@debbugs.gnu.org > > > > In a custom test to determine whether the region is active, I had been testing mark-active prior to using (region-beginning) and/or (region-end) to avoid trowing an error "The mark is not set now, so there is no region". When the following is true `(and mark-active (= (region-beginning) (region-end)))`, my custom function should return nil. > > Why can't you just check whether the function 'mark' returns nil? From debbugs-submit-bounces@debbugs.gnu.org Tue Mar 07 10:37:56 2017 Received: (at 25992) by debbugs.gnu.org; 7 Mar 2017 15:37:57 +0000 Received: from localhost ([127.0.0.1]:44746 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1clHBU-0003zr-Mr for submit@debbugs.gnu.org; Tue, 07 Mar 2017 10:37:56 -0500 Received: from eggs.gnu.org ([208.118.235.92]:50250) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1clHBS-0003ze-Nk for 25992@debbugs.gnu.org; Tue, 07 Mar 2017 10:37:55 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1clHBJ-0001RV-LK for 25992@debbugs.gnu.org; Tue, 07 Mar 2017 10:37:49 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-0.5 required=5.0 tests=BAYES_05,RP_MATCHES_RCVD autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:38772) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1clHBJ-0001RO-ID; Tue, 07 Mar 2017 10:37:45 -0500 Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:4012 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1clHBI-00075Q-Qp; Tue, 07 Mar 2017 10:37:45 -0500 Date: Tue, 07 Mar 2017 17:37:17 +0200 Message-Id: <831su9hzde.fsf@gnu.org> From: Eli Zaretskii To: Keith David Bershatsky In-reply-to: (message from Keith David Bershatsky on Mon, 06 Mar 2017 21:55:47 -0800) Subject: Re: bug#25992: perform-replace leaves mark-active when not transient-mark-mode References: X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: 25992 Cc: 25992@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: Eli Zaretskii Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.0 (-----) > Date: Mon, 06 Mar 2017 21:55:47 -0800 > From: Keith David Bershatsky > Cc: 25992@debbugs.gnu.org > > Thank you very much for the suggestion to check 'mark' prior to calling either 'region-beginning' or 'region-end', as an alternative to testing the variable 'mark-active'. So can this bug be closed now? From debbugs-submit-bounces@debbugs.gnu.org Tue Mar 07 12:33:13 2017 Received: (at 25992) by debbugs.gnu.org; 7 Mar 2017 17:33:13 +0000 Received: from localhost ([127.0.0.1]:44906 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1clIz3-0000Gk-2A for submit@debbugs.gnu.org; Tue, 07 Mar 2017 12:33:13 -0500 Received: from gateway32.websitewelcome.com ([192.185.145.115]:19549) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1clIz0-0000Gc-QX for 25992@debbugs.gnu.org; Tue, 07 Mar 2017 12:33:11 -0500 Received: from cm4.websitewelcome.com (unknown [108.167.139.16]) by gateway32.websitewelcome.com (Postfix) with ESMTP id 3102FAB1DCC for <25992@debbugs.gnu.org>; Tue, 7 Mar 2017 11:33:09 -0600 (CST) Received: from gator3053.hostgator.com ([50.87.144.69]) by cm4.websitewelcome.com with id t5Yz1u00s1W3Awq015Z0RP; Tue, 07 Mar 2017 11:33:02 -0600 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lawlist.com ; s=default; h=Content-Type:MIME-Version:Subject:Cc:To:From:Message-ID:Date: Sender:Reply-To:Content-Transfer-Encoding:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: In-Reply-To:References:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=SJ/ipgtuxwWd1SWyic2pK6Jue6xAVjZM7b+dkV48mr4=; b=Ts8Upw2xnvFRyJBzwnPe/R2otV k22YcnWNAB37uAHNaGOs0Qtr8uc0X1SCTfGODxTWjmdlfs3V57iSLgzL/kGNTYwvz1N4Te0sq1Q2b m1Zg5kv/3vis0mGUii8Ap9RfSua47i/AsyXq7PWuW34O+LSAohRdQZxDWbqdLQtfj7AMw8UOw7Six IjfR68PI8zRxLATvtbujZN0vazUmatUhBfe7xT7EviuiHfUco1Y5tS5C+BtyGqhmbxQXrgnX/UJes evo3ZFaGQvKSS79TI4iblY1lLsQLfuU6YkOqk6oIZvktL5wBag49z/IqRdQmEEUT+sUnpZ3zpazYO yLyCR0gw==; Received: from cpe-45-48-239-195.socal.res.rr.com ([45.48.239.195]:49651 helo=server.local) by gator3053.hostgator.com with esmtpsa (TLSv1:DHE-RSA-AES256-SHA:256) (Exim 4.87) (envelope-from ) id 1clIyp-0006YR-1P; Tue, 07 Mar 2017 11:32:59 -0600 Date: Tue, 07 Mar 2017 09:32:58 -0800 Message-ID: From: Keith David Bershatsky To: Eli Zaretskii Subject: Re: bug#25992: perform-replace leaves mark-active when not transient-mark-mode MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - gator3053.hostgator.com X-AntiAbuse: Original Domain - debbugs.gnu.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - lawlist.com X-BWhitelist: no X-Source-IP: 45.48.239.195 X-Exim-ID: 1clIyp-0006YR-1P X-Source: X-Source-Args: X-Source-Dir: X-Source-Sender: cpe-45-48-239-195.socal.res.rr.com (server.local) [45.48.239.195]:49651 X-Source-Auth: lawlist X-Email-Count: 1 X-Source-Cap: bGF3bGlzdDtsYXdsaXN0O2dhdG9yMzA1My5ob3N0Z2F0b3IuY29t X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 25992 Cc: 25992@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.0 (/) Yes, thank you, please close out bug#25992. Keith ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; DATE: Tue, 07 Mar 2017 17:37:17 +0200 FROM: Eli Zaretskii > > transient-mark-mode > > > Date: Mon, 06 Mar 2017 21:55:47 -0800 > > From: Keith David Bershatsky > > Cc: 25992@debbugs.gnu.org > > > > Thank you very much for the suggestion to check 'mark' prior to calling either 'region-beginning' or 'region-end', as an alternative to testing the variable 'mark-active'. > > So can this bug be closed now? From debbugs-submit-bounces@debbugs.gnu.org Tue Mar 07 14:26:33 2017 Received: (at 25992-done) by debbugs.gnu.org; 7 Mar 2017 19:26:33 +0000 Received: from localhost ([127.0.0.1]:44995 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1clKkj-0003DT-HT for submit@debbugs.gnu.org; Tue, 07 Mar 2017 14:26:33 -0500 Received: from eggs.gnu.org ([208.118.235.92]:34951) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1clKkh-0003DE-Vd for 25992-done@debbugs.gnu.org; Tue, 07 Mar 2017 14:26:32 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1clKkZ-0007LZ-Iu for 25992-done@debbugs.gnu.org; Tue, 07 Mar 2017 14:26:26 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RP_MATCHES_RCVD autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:42191) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1clKkZ-0007LJ-GR; Tue, 07 Mar 2017 14:26:23 -0500 Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:4299 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1clKkY-0004dz-BS; Tue, 07 Mar 2017 14:26:22 -0500 Date: Tue, 07 Mar 2017 21:25:55 +0200 Message-Id: <83h934hosc.fsf@gnu.org> From: Eli Zaretskii To: Keith David Bershatsky In-reply-to: (message from Keith David Bershatsky on Tue, 07 Mar 2017 09:32:58 -0800) Subject: Re: bug#25992: perform-replace leaves mark-active when not transient-mark-mode References: X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: 25992-done Cc: 25992-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: Eli Zaretskii Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.0 (-----) > Date: Tue, 07 Mar 2017 09:32:58 -0800 > From: Keith David Bershatsky > Cc: 25992@debbugs.gnu.org > > Yes, thank you, please close out bug#25992. Done. From unknown Sat Sep 20 08:14:59 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Wed, 05 Apr 2017 11:24:05 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator