From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Ivan Shmakov Newsgroups: gmane.emacs.devel Subject: Re: save-excursion and the mark Date: Wed, 25 Feb 2015 09:18:00 +0000 Message-ID: <87mw422vuf.fsf@violet.siamics.net> References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1424855915 22232 80.91.229.3 (25 Feb 2015 09:18:35 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 25 Feb 2015 09:18:35 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Feb 25 10:18:29 2015 Return-path: Envelope-to: ged-emacs-devel@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 1YQY6v-0006uZ-8f for ged-emacs-devel@m.gmane.org; Wed, 25 Feb 2015 10:18:29 +0100 Original-Received: from localhost ([::1]:53435 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YQY6u-0003qI-KG for ged-emacs-devel@m.gmane.org; Wed, 25 Feb 2015 04:18:28 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:44290) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YQY6q-0003pz-KD for emacs-devel@gnu.org; Wed, 25 Feb 2015 04:18:25 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YQY6n-0002IO-II for emacs-devel@gnu.org; Wed, 25 Feb 2015 04:18:24 -0500 Original-Received: from fely.am-1.org ([2a01:4f8:d15:1b86::2]:41696) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YQY6n-0002G9-8L for emacs-devel@gnu.org; Wed, 25 Feb 2015 04:18:21 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=siamics.net; s=a2013295; h=Content-Transfer-Encoding:Content-Type:MIME-Version:Message-ID:In-Reply-To:Date:Sender:References:Subject:To:From; bh=XerKDXO0Dx2KnspQFs5xpTbCS4kV25yYwczJ7rNsc9g=; b=JDvpmcGusXR80LBbrIp9HFCDHh4nyJp1TiS+WYeGA8WURrKXD9Dw5wAS6d+lXtMb8mtKa6Q4nPtHuCYw8Qb25G+nbrNqrAMtpDotGGMt8t5mfDPTnqjN/+nXeXBVLFqxvlvw48GZij866AMnkZWqnucFUMvTPJviVTABKt/DM8E=; Original-Received: from [2a02:2560:6d4:26ca::1:1d] (helo=violet.siamics.net) by fely.am-1.org with esmtps (TLS1.2:DHE_RSA_AES_128_CBC_SHA1:128) (Exim 4.80) (envelope-from ) id 1YQY6a-0005x7-Cz for emacs-devel@gnu.org; Wed, 25 Feb 2015 09:18:08 +0000 Original-Received: from localhost ([::1] helo=violet.siamics.net) by violet.siamics.net with esmtps (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.80) (envelope-from ) id 1YQY6T-0005j6-3N for emacs-devel@gnu.org; Wed, 25 Feb 2015 16:18:01 +0700 Mail-Followup-To: emacs-devel@gnu.org In-Reply-To: (Stefan Monnier's message of "Sun, 22 Feb 2015 23:44:13 -0500") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2a01:4f8:d15:1b86::2 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:183485 Archived-At: >>>>> Stefan Monnier writes: > `save-excursion' is defined to save&restore the mark (as well as its > being active or not). > But I'm having a hard time finding a piece of code where we actually > make use of this. Can someone point me to such code (either in Emacs > or in some external package)? I. e. point me to code which would > misbehave if save-excursion were to stop saving&restoring the mark > (and/or its activation status). FWIW, I=E2=80=99m having a hard time thinking of /why/ someone may make use of such a behavior. The mark is pretty much a UI feature, and the code isn=E2=80=99t supposed to ever touch it /unless/ the very intent of said code is to change its position. At which point saving and restoring its state becomes contrary to that intent. Unless there be a substantial code base which relies on the current behavior, I=E2=80=99d rather just change it, while taking reasonable effort to identify the affected packages and inform their respective maintainers of the fixes necessary. --=20 FSF associate member #7257 Mother Gaia =E2=80=94 Stratovarius =E2=80=A6 3= 013 B6A0 230E 334A