From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: =?ISO-8859-1?Q?Andreas_R=F6hler?= Newsgroups: gmane.emacs.help Subject: Re: Saving "relative point" in a paragraph or line Date: Thu, 12 Sep 2013 10:49:37 +0200 Message-ID: <52318021.4040108@easy-emacs.de> References: <20130912080605.GQ20690@kuru.dyndns-at-home.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1378975685 10288 80.91.229.3 (12 Sep 2013 08:48:05 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 12 Sep 2013 08:48:05 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Sep 12 10:48:07 2013 Return-path: Envelope-to: geh-help-gnu-emacs@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 1VK2ZJ-0005yp-P1 for geh-help-gnu-emacs@m.gmane.org; Thu, 12 Sep 2013 10:48:05 +0200 Original-Received: from localhost ([::1]:40251 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VK2ZJ-00045H-AA for geh-help-gnu-emacs@m.gmane.org; Thu, 12 Sep 2013 04:48:05 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:35631) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VK2Z0-000455-Kk for help-gnu-emacs@gnu.org; Thu, 12 Sep 2013 04:47:53 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VK2Ys-0003vE-7b for help-gnu-emacs@gnu.org; Thu, 12 Sep 2013 04:47:46 -0400 Original-Received: from moutng.kundenserver.de ([212.227.126.187]:57495) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VK2Yr-0003v8-R7 for help-gnu-emacs@gnu.org; Thu, 12 Sep 2013 04:47:38 -0400 Original-Received: from purzel.sitgens (brln-4db92018.pool.mediaWays.net [77.185.32.24]) by mrelayeu.kundenserver.de (node=mrbap3) with ESMTP (Nemesis) id 0Mhl9H-1VXQS31Mnb-00Mu3P; Thu, 12 Sep 2013 10:47:36 +0200 User-Agent: Mozilla/5.0 (X11; Linux i686; rv:17.0) Gecko/20130801 Thunderbird/17.0.8 In-Reply-To: <20130912080605.GQ20690@kuru.dyndns-at-home.com> X-Provags-ID: V02:K0:m/+c+9tm1VEkHSMRVNcQImNnDhMzEgtZ0gL0YrdGwAJ kEzOoc48oyRr8yod6d28BxBIbKn2gLzTHEsWWE2msQH7p91aiy Fo/YzDmQFJRvp5jx9/AIXY7xjJSE+GaHDOg665F43q09O3isBd QHRk9DZvNkPYNBk35T4qupVb8O6D7FwQfVMqEAqTrf/F+QqG80 7MTBJ2y86sOzVALQMYIRZUrmZSJPUeBHjTfsUTY5+sTVvYXhyK hmwMRdyR9uDM1dLAgYPv2GeK3YgXlUdwCoEHUpbwGcvuWffdY5 2QLzma1mB+56uMKdw20ePEHxZ1qaYGW2z7L6MsRhZDIS0KLiMr WbTkKNiYr6prD1Y+Kono= X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.4.x-2.6.x [generic] X-Received-From: 212.227.126.187 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:93342 Archived-At: Am 12.09.2013 10:06, schrieb Suvayu Ali: > Hi, > > I'm trying to write a few wrappers for transpose functions. I would > like to restore the point to the relative position of the element I am > trying to transpose. Are there any standard ways/functions people use > for something like this? > > An example (cursor at -!-): > > - Lorem ipsum dolor -!- sit amet, consectetur adipiscing elit. > - Vestibulum porttitor metus sed est varius, id dapibus est rhoncus. > > | > v > > - Vestibulum porttitor metus sed est varius, id dapibus est rhoncus. > - Lorem ipsum dolor -!- sit amet, consectetur adipiscing elit. > > Thanks for any ideas. > > Cheers, > Not sure IIUC, what about storing location with (setq my-point (copy-marker (point))) Andreas