From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Karl Fogel Newsgroups: gmane.emacs.devel Subject: Re: "Staying in the same place" Date: Mon, 04 Apr 2016 14:49:21 -0500 Message-ID: <87d1q5rw72.fsf@red-bean.com> References: <87h9fhrxb3.fsf@red-bean.com> Reply-To: Karl Fogel NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1459799390 17162 80.91.229.3 (4 Apr 2016 19:49:50 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 4 Apr 2016 19:49:50 +0000 (UTC) Cc: Stefan Monnier , emacs-devel@gnu.org To: Lars Magne Ingebrigtsen Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Apr 04 21:49:50 2016 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 1anAVP-0003ho-L2 for ged-emacs-devel@m.gmane.org; Mon, 04 Apr 2016 21:49:47 +0200 Original-Received: from localhost ([::1]:60821 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1anAVP-0003xk-7h for ged-emacs-devel@m.gmane.org; Mon, 04 Apr 2016 15:49:47 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:51739) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1anAV7-0003xO-SQ for emacs-devel@gnu.org; Mon, 04 Apr 2016 15:49:34 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1anAV3-0000jS-Ay for emacs-devel@gnu.org; Mon, 04 Apr 2016 15:49:29 -0400 Original-Received: from mail-yw0-x231.google.com ([2607:f8b0:4002:c05::231]:33985) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1anAV3-0000jO-7C for emacs-devel@gnu.org; Mon, 04 Apr 2016 15:49:25 -0400 Original-Received: by mail-yw0-x231.google.com with SMTP id d68so128499966ywe.1 for ; Mon, 04 Apr 2016 12:49:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:from:to:cc:subject:references:reply-to:date:in-reply-to :message-id:user-agent:mime-version; bh=S34XTeY1ucogyytZeZD4swqm+fxi6OqTamdr+MzX7WQ=; b=gGyNhHRkk4fD1tHGH62UsEkokEHAsf4ePxSJvXSzWEosSC1c7XfuDVeYhbRgJlKkWg S1h37oDTl50x5+oRm5VSABel3wMSDNewJh5ZGgYQKixNxcevlaM69+J6H8Zq0r5gfxdX Uk7oOKtN5p9IGNUTBA+3/Hf4SVg1K3OLdkaQ0CueCvTXrrdHSrBhVGtwmkmkZMebpgkx dinbhXWwatGbFNkHQ72jiUG8AUyZsKE2rv1F83vX+RQJOptdapeZcKBXukvdYu876uns 0fwp1aVOx5iNX/I9G+0Z1qcz/LY1XlTeHiwkeit8qQzTpTCf27hFhRF4zR/RgDfu0T5d rucA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:sender:from:to:cc:subject:references:reply-to :date:in-reply-to:message-id:user-agent:mime-version; bh=S34XTeY1ucogyytZeZD4swqm+fxi6OqTamdr+MzX7WQ=; b=d39qd56J5O+8SgJxVSn/lPPJeajtl4SqKuVYS+11BAjYzXFbqhfFNedl7hzbhd/mr/ bW4v+X/YazjhcvTWbDkKEAflj6k4Dh4ocmJAGQmZa/a+Bad2KLjFiMb7qDwnfqFd55Im ehxcazM1/9dSUiXZECLJ92tlBfYWZjDzqMD7hM+wFz1q/6I/e9ZcltGwt9vOhSidCXfN S6SM8Nx/6IYKVJI26Vwgq8wb0iOQwqCCoR+rXUj3OLYZl4wu4ZtblN1PYQsSIKUbVz+4 xoMX7MmbV2HeDIR1ardQOLAbweK/2SA7jR1xlybbR5O1CMf3MpGIR5EYlmMpIGHKFiwl zVdg== X-Gm-Message-State: AD7BkJJJoIHdlt07x9nT2YFSjuLuiXNi0RtwwZFxMlt8Ndwx5MO4SB/XrLOBJfsM+9bouQ== X-Received: by 10.37.81.70 with SMTP id f67mr2601459ybb.32.1459799364708; Mon, 04 Apr 2016 12:49:24 -0700 (PDT) Original-Received: from floss (74-92-190-114-Illinois.hfc.comcastbusiness.net. [74.92.190.114]) by smtp.gmail.com with ESMTPSA id t189sm18334914ywd.43.2016.04.04.12.49.22 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 04 Apr 2016 12:49:22 -0700 (PDT) In-Reply-To: (Lars Magne Ingebrigtsen's message of "Mon, 04 Apr 2016 21:43:19 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.92 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2607:f8b0:4002:c05::231 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:202709 Archived-At: Lars Magne Ingebrigtsen writes: >> (defmacro fuzzy-save-excursion (&rest body) >> record-the-position-fuzzily-using-mode-specific-code >> run-the-body >> restore-the-fuzzily-recorded-position >> ) > >Yes, I think having a macro for this would be very handy and encourage >usage of this stuff. However, the restore-the-fuzzily-recorded-position >thing should also be available in a handy fashion for when we're doing >asynchronous fuzzy point restoration (with diff mode and compilation >mode, for instance). Yes, absolutely. A "fuzzily recorded position" should be a first-class object that can be passed around like any value. There can be a macro that generates and consumes such objects entirely internally to the macro, but the objects can also be generated explicitly in code and consumed later.