From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: ithai levi Newsgroups: gmane.emacs.help Subject: Can I type text without changing my current cursor point? Date: Thu, 12 Mar 2009 08:46:42 +0200 Message-ID: <2a024660903112346ncdb86e1uf62f063c644fd6ba@mail.gmail.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=00163642661bd4b1df0464e65861 X-Trace: ger.gmane.org 1236848492 2195 80.91.229.12 (12 Mar 2009 09:01:32 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 12 Mar 2009 09:01:32 +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 Mar 12 10:02:46 2009 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1LhgoK-0001AZ-SD for geh-help-gnu-emacs@m.gmane.org; Thu, 12 Mar 2009 10:02:41 +0100 Original-Received: from localhost ([127.0.0.1]:40744 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Lhgmy-00068F-HM for geh-help-gnu-emacs@m.gmane.org; Thu, 12 Mar 2009 05:01:16 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Lhegs-0004Mv-1G for help-gnu-emacs@gnu.org; Thu, 12 Mar 2009 02:46:50 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Lhegq-0004Mi-9Q for help-gnu-emacs@gnu.org; Thu, 12 Mar 2009 02:46:49 -0400 Original-Received: from [199.232.76.173] (port=42477 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Lhegq-0004Mf-5b for help-gnu-emacs@gnu.org; Thu, 12 Mar 2009 02:46:48 -0400 Original-Received: from mx20.gnu.org ([199.232.41.8]:17948) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1Lhegp-000520-HR for help-gnu-emacs@gnu.org; Thu, 12 Mar 2009 02:46:47 -0400 Original-Received: from mail-fx0-f176.google.com ([209.85.220.176]) by mx20.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Lhego-0008N7-3J for help-gnu-emacs@gnu.org; Thu, 12 Mar 2009 02:46:46 -0400 Original-Received: by fxm24 with SMTP id 24so279203fxm.42 for ; Wed, 11 Mar 2009 23:46:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:date:message-id:subject :from:to:content-type; bh=HnOn5uF4FDEGrzjzHDvbKqGd0CyTbL0nsgw+rGpJJ84=; b=gGYyXtoYyEG70AFrmlHBtVQtr2pLd6G/UhoepeQVTfJrtPUQhD14rd44hs9pEKQ/h2 wce5fMOcbus7UxMhlRtNQn2dxXgBQanHF5P5t0PDSb4+XkxKHASZ8MoiR2Zr6HydXgq0 NOjCo14hU/ZmX+p4AQAY3gZ+gIpvqWEixDWrw= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=w+48/Mjb5LnUmSlXnXA0Wkybd9z/RGLohEXMnKS45xuonuWQL1rStWwbV8H4R0jXnw D2U9iPniGy0MuD2Chej3a/SXA8LEmhGLGFvUit4r64DhbNxbOh+Vu7M9a1f2+PDP/HhW AbQuAGZ0oR+FxNxByXbTpeHiKL+AVIIzwUQTA= Original-Received: by 10.103.137.12 with SMTP id p12mr4141652mun.94.1236840402431; Wed, 11 Mar 2009 23:46:42 -0700 (PDT) X-detected-kernel: by mx20.gnu.org: Linux 2.6 (newer, 2) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) X-Mailman-Approved-At: Thu, 12 Mar 2009 04:59:51 -0400 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:62841 Archived-At: --00163642661bd4b1df0464e65861 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit I'm almost sure I saw this once, I just can recall the sequence. What I want to do is to hit C+something and then type but have my cursor stay in its current point and not move forward. Then I can somehow exit this mode (ESC) and type some text which will be inserted in between. This could be useful to type a prefix, a suffix and then the content without having to move the cursor back. Example: I would type "obj.method(" then press C+? then type "); // a comment", press ESC and type "1,2,3" without moving the cursor. (what I do now is use C+SPC to set the mark, type and then press C+x C+SPC to go back to the mark) TIA :) --00163642661bd4b1df0464e65861 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
I'm almost sure I saw this once, I just can recall the sequence= .=A0
What I want to do is to hit C+something and then type but have my c= ursor stay in its current point and not move forward. Then I can somehow ex= it this mode (ESC) and type some text which will be inserted in between. Th= is could be useful to type a prefix, a suffix and then the content without = having to move the cursor back.=A0


I would type "obj.method(" then press C+? then type "= ;); // a comment", press ESC and type "1,2,3" without moving= the cursor.

<= /span>
(what I do now is use C+SPC to set the mark, type and then press C+x= C+SPC to go back to the mark)

<= /span>
TIA :)
--00163642661bd4b1df0464e65861--