From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Magnar Sveen Newsgroups: gmane.emacs.devel Subject: Re: save-excursion and the mark Date: Mon, 06 Apr 2015 18:45:54 +0000 Message-ID: References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=001a11c2629c47022f051312b592 X-Trace: ger.gmane.org 1428345983 2608 80.91.229.3 (6 Apr 2015 18:46:23 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 6 Apr 2015 18:46:23 +0000 (UTC) To: Stefan Monnier , emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Apr 06 20:46:22 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 1YfC2P-00056y-Ii for ged-emacs-devel@m.gmane.org; Mon, 06 Apr 2015 20:46:21 +0200 Original-Received: from localhost ([::1]:41200 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YfC2O-0006cy-TX for ged-emacs-devel@m.gmane.org; Mon, 06 Apr 2015 14:46:20 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:47544) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YfC22-00067a-5g for emacs-devel@gnu.org; Mon, 06 Apr 2015 14:46:02 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YfC21-0002ZD-7d for emacs-devel@gnu.org; Mon, 06 Apr 2015 14:45:58 -0400 Original-Received: from mail-lb0-x22b.google.com ([2a00:1450:4010:c04::22b]:34325) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YfC20-0002Z2-Vn for emacs-devel@gnu.org; Mon, 06 Apr 2015 14:45:57 -0400 Original-Received: by lboc7 with SMTP id c7so25887690lbo.1 for ; Mon, 06 Apr 2015 11:45:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :content-type; bh=oGEb5KXis16Aj7WdTMgg3L4nYZEUlXrBgBNadmYYst4=; b=ciHZlDFRrBtLnQFzR8ECWqRrOZ7ovpqKM1nwJ4Tu1vm4DFMkFNGwgqEPUd+u8gedg8 KNx5LfooevqPBgL71k/+tyRN6in2vykVnZxDrf8jsV4Eiy51PEVDE0VB3OFX9CEkEz/k rdfBeDg1DaTunjeBvCwR58sTgFtbRtpB8PM7jR02NEgHH05r32sEgWcq/wUH09I2irBk Lq8eTv9NBjbZ+F8KoSvPGh3y9vNu7j6+SSLyHd1825L4c/5fCpXJKSnsnPYu/xRNCaDa vN42JMC9p3GS82Pof2gHNeEaDHDx7vgyDKf6HbvLHJ7Lyt95bOPDa5efor1gQCDZ0KHq tr4A== X-Received: by 10.112.157.100 with SMTP id wl4mr14823779lbb.108.1428345955219; Mon, 06 Apr 2015 11:45:55 -0700 (PDT) In-Reply-To: X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2a00:1450:4010:c04::22b 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:185053 Archived-At: --001a11c2629c47022f051312b592 Content-Type: text/plain; charset=UTF-8 The change breaks expand-region, for one. On Mon, Feb 23, 2015 at 5:44 AM Stefan Monnier wrote: > > `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). > > > Stefan > > --001a11c2629c47022f051312b592 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
The change breaks expand-region, for one.

On Mon, Feb 23, 2015 at 5:44 AM Stefan Monnier <monnier@iro.umontreal.ca> wrot= e:

`save-excursion' is defined to save&restore the mark (as well as it= s
being active or not).

But I'm having a hard time finding a piece of code where we actually make use of this.=C2=A0 Can someone point me to such code (either in Emacs = or
in some external package)?=C2=A0 I.e. point me to code which would misbehav= e
if save-excursion were to stop saving&restoring the mark (and/or its activation status).


=C2=A0 =C2=A0 =C2=A0 =C2=A0 Stefan

--001a11c2629c47022f051312b592--