From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Lars Magne Ingebrigtsen Newsgroups: gmane.emacs.devel Subject: save-excursion and the mark Date: Fri, 17 Apr 2015 20:53:45 +0200 Organization: Programmerer Ingebrigtsen Message-ID: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1429296853 24094 80.91.229.3 (17 Apr 2015 18:54:13 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 17 Apr 2015 18:54:13 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Apr 17 20:54:04 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 1YjBOs-0007Gr-7y for ged-emacs-devel@m.gmane.org; Fri, 17 Apr 2015 20:54:02 +0200 Original-Received: from localhost ([::1]:43116 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YjBOr-000076-EJ for ged-emacs-devel@m.gmane.org; Fri, 17 Apr 2015 14:54:01 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:45088) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YjBOn-000070-F9 for emacs-devel@gnu.org; Fri, 17 Apr 2015 14:53:58 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YjBOk-0005vL-9v for emacs-devel@gnu.org; Fri, 17 Apr 2015 14:53:57 -0400 Original-Received: from plane.gmane.org ([80.91.229.3]:51629) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YjBOk-0005v6-2G for emacs-devel@gnu.org; Fri, 17 Apr 2015 14:53:54 -0400 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1YjBOh-0007A6-44 for emacs-devel@gnu.org; Fri, 17 Apr 2015 20:53:51 +0200 Original-Received: from cm-84.215.51.58.getinternet.no ([84.215.51.58]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 17 Apr 2015 20:53:51 +0200 Original-Received: from larsi by cm-84.215.51.58.getinternet.no with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 17 Apr 2015 20:53:51 +0200 X-Injected-Via-Gmane: http://gmane.org/ Mail-Followup-To: emacs-devel@gnu.org Original-Lines: 12 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: cm-84.215.51.58.getinternet.no Mail-Copies-To: never User-Agent: Gnus/5.130012 (Ma Gnus v0.12) Emacs/25.0.50 (gnu/linux) Cancel-Lock: sha1:zSHcwX13EbcvKgkarluw3f8BvOQ= X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 80.91.229.3 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:185538 Archived-At: Code that previously relied on `save-excursion' restoring the mark no longer works, and that's fine. But could we have a new form like `save-mark' (or something) that we could just slap around forms that previously relied on this form behaving the old way? I was just bitten by this by the async hashcash code moving the mark around and me kill/yanking the wrong bits of the text. -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no