From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: save-excursion and the mark Date: Wed, 25 Feb 2015 17:56:52 +0200 Message-ID: <83zj8256ij.fsf@gnu.org> References: <87mw422vuf.fsf@violet.siamics.net> Reply-To: Eli Zaretskii 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 1424879850 12461 80.91.229.3 (25 Feb 2015 15:57:30 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 25 Feb 2015 15:57:30 +0000 (UTC) Cc: emacs-devel@gnu.org To: Ivan Shmakov Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Feb 25 16:57:15 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 1YQeKg-0004jf-Lq for ged-emacs-devel@m.gmane.org; Wed, 25 Feb 2015 16:57:06 +0100 Original-Received: from localhost ([::1]:54733 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YQeKg-0005rO-42 for ged-emacs-devel@m.gmane.org; Wed, 25 Feb 2015 10:57:06 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:45973) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YQeKN-0005oo-CQ for emacs-devel@gnu.org; Wed, 25 Feb 2015 10:56:53 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YQeKH-0004fq-Lt for emacs-devel@gnu.org; Wed, 25 Feb 2015 10:56:47 -0500 Original-Received: from mtaout25.012.net.il ([80.179.55.181]:49471) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YQeKH-0004fi-Da for emacs-devel@gnu.org; Wed, 25 Feb 2015 10:56:41 -0500 Original-Received: from conversion-daemon.mtaout25.012.net.il by mtaout25.012.net.il (HyperSendmail v2007.08) id <0NKC00M003QAAJ00@mtaout25.012.net.il> for emacs-devel@gnu.org; Wed, 25 Feb 2015 17:51:17 +0200 (IST) Original-Received: from HOME-C4E4A596F7 ([87.69.4.28]) by mtaout25.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0NKC00LX341GTT10@mtaout25.012.net.il>; Wed, 25 Feb 2015 17:51:17 +0200 (IST) In-reply-to: <87mw422vuf.fsf@violet.siamics.net> X-012-Sender: halo1@inter.net.il X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 80.179.55.181 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:183494 Archived-At: > From: Ivan Shmakov > Date: Wed, 25 Feb 2015 09:18:00 +0000 >=20 > =09FWIW, I=E2=80=99m having a hard time thinking of /why/ someone m= ay make > =09use of such a behavior. The mark is pretty much a UI feature, > =09and the code isn=E2=80=99t supposed to ever touch it /unless/ th= e very > =09intent of said code is to change its position. At which point > =09saving and restoring its state becomes contrary to that intent. The code inside save-excursion could inadvertently or unknowingly invoke functions that push the mark.