From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: save-excursion and the mark Date: Mon, 23 Feb 2015 22:52:42 -0500 Message-ID: References: <87bnkklv44.fsf@gmail.com> <877fv8niq0.fsf@gmail.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1424750031 7247 80.91.229.3 (24 Feb 2015 03:53:51 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 24 Feb 2015 03:53:51 +0000 (UTC) Cc: emacs-devel@gnu.org To: Alexis Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Feb 24 04:53:40 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 1YQ6Z1-0002xn-Gx for ged-emacs-devel@m.gmane.org; Tue, 24 Feb 2015 04:53:39 +0100 Original-Received: from localhost ([::1]:46648 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YQ6Z0-0005Bb-VR for ged-emacs-devel@m.gmane.org; Mon, 23 Feb 2015 22:53:38 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:45197) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YQ6Yn-0005BW-Ef for emacs-devel@gnu.org; Mon, 23 Feb 2015 22:53:26 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YQ6Yj-00057g-At for emacs-devel@gnu.org; Mon, 23 Feb 2015 22:53:25 -0500 Original-Received: from ironport2-out.teksavvy.com ([206.248.154.181]:35873) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YQ6Yj-00057T-6r for emacs-devel@gnu.org; Mon, 23 Feb 2015 22:53:21 -0500 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: ArsTAPOG1lRsoXmY/2dsb2JhbABbgwaDX4VTwGUEAgKBDUQBAQEBAQF8hA0BBAFWIwULCzQSFBgNJIg4CM4jAQEBAQYBAQEBHo8gWAeEKgWKJ59LgUUihAwggTOBQAEBAQ X-IPAS-Result: ArsTAPOG1lRsoXmY/2dsb2JhbABbgwaDX4VTwGUEAgKBDUQBAQEBAQF8hA0BBAFWIwULCzQSFBgNJIg4CM4jAQEBAQYBAQEBHo8gWAeEKgWKJ59LgUUihAwggTOBQAEBAQ X-IronPort-AV: E=Sophos;i="5.09,536,1418101200"; d="scan'208";a="111292589" Original-Received: from 108-161-121-152.dsl.teksavvy.com (HELO pastel.home) ([108.161.121.152]) by ironport2-out.teksavvy.com with ESMTP/TLS/DHE-RSA-AES256-SHA; 23 Feb 2015 22:53:19 -0500 Original-Received: by pastel.home (Postfix, from userid 20848) id ED2A63C34; Mon, 23 Feb 2015 22:52:42 -0500 (EST) In-Reply-To: <877fv8niq0.fsf@gmail.com> (Alexis's message of "Tue, 24 Feb 2015 13:31:19 +1100") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 206.248.154.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:183438 Archived-At: > My `org-vcard` package on MELPA makes use of `save-excursion` in a few > places, but mostly out of politeness towards the user (i.e. restoring point > after my code has done its thing). Yes. 99.9% of the uses expect it to save&restore point. That's not the cases I'm interested in. > At any rate, since the usage is so limited, i'd be happy to manually > save point and the mark, if it's felt that it would be generally > beneficial for `save-excursion` to not do so itself. I'm tempted to throw away the "save&restore mark" feature, since it seems to be never used, and I've actually bumped into a few cases where it's more annoying than useful (tho I wouldn't call them truly harmful). Stefan