From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Paulo J. Matos" Newsgroups: gmane.emacs.help Subject: Re: Indent goes to beginning of line Date: Fri, 07 Aug 2009 23:05:45 +0100 Message-ID: <1249682746.19695.3.camel@drserver> References: <1249651371.16381.2.camel@drserver> <5FC5B495-CDE9-4A67-9406-3C6C12ED19BF@digg.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1249682809 2334 80.91.229.12 (7 Aug 2009 22:06:49 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 7 Aug 2009 22:06:49 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: Ian Eure Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Aug 08 00:06:42 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 1MZXaD-0006B3-Il for geh-help-gnu-emacs@m.gmane.org; Sat, 08 Aug 2009 00:06:41 +0200 Original-Received: from localhost ([127.0.0.1]:54376 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MZXaD-00010e-2D for geh-help-gnu-emacs@m.gmane.org; Fri, 07 Aug 2009 18:06:41 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MZXZS-0000cv-84 for help-gnu-emacs@gnu.org; Fri, 07 Aug 2009 18:05:54 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MZXZN-0000Wn-91 for help-gnu-emacs@gnu.org; Fri, 07 Aug 2009 18:05:53 -0400 Original-Received: from [199.232.76.173] (port=55089 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MZXZM-0000Wc-My for help-gnu-emacs@gnu.org; Fri, 07 Aug 2009 18:05:48 -0400 Original-Received: from mail-ew0-f211.google.com ([209.85.219.211]:61048) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MZXZM-0000bP-7C for help-gnu-emacs@gnu.org; Fri, 07 Aug 2009 18:05:48 -0400 Original-Received: by mail-ew0-f211.google.com with SMTP id 7so1815373ewy.42 for ; Fri, 07 Aug 2009 15:05:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:subject:from:to:cc :in-reply-to:references:content-type:date:message-id:mime-version :x-mailer:content-transfer-encoding; bh=eiKGMhsgsbK1k1qPj1x419z+kwgBVp50NZcIQRQvqRY=; b=GDuvKiFmIh2zLryraMF8w+Eb4+uqL2uyAkb1Zji/xkbvwfn2rLLLisJBMxTLt26+PT kYJxp7oyLwogi9r0xBS1bUsvyYovxx/nhOLDMbFLU9PvRvGAscyvKEtgx6ay81hGNLwX 1Lfet4ZMpVWUHEQRWY8/LTN5Sl9i+E/7pAO1k= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=subject:from:to:cc:in-reply-to:references:content-type:date :message-id:mime-version:x-mailer:content-transfer-encoding; b=W+oJiFZBlOYuiwx5rk2br4MQsIWsC1FHjDQXOjeSHcGCZc7A+qf9DfP6+dbRqmAmKS T93fAvDy8pv28fmIqVZQ8ijqqSw8kcbk1Yq/BlyFQrkb869NedH8jNY+l651Ato3IHt/ Wl0+lVMg5GWG7dCqKCnYDAt2J2iK5nCR59kEo= Original-Received: by 10.210.92.8 with SMTP id p8mr2021704ebb.15.1249682747964; Fri, 07 Aug 2009 15:05:47 -0700 (PDT) Original-Received: from ?192.168.1.2? ([78.149.171.162]) by mx.google.com with ESMTPS id 10sm4334078eyz.1.2009.08.07.15.05.46 (version=SSLv3 cipher=RC4-MD5); Fri, 07 Aug 2009 15:05:47 -0700 (PDT) In-Reply-To: <5FC5B495-CDE9-4A67-9406-3C6C12ED19BF@digg.com> X-Mailer: Evolution 2.26.3 X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) 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:66957 Archived-At: On Fri, 2009-08-07 at 09:34 -0700, Ian Eure wrote: > On Aug 7, 2009, at 6:22 AM, Paulo J. Matos wrote: > > > > > Interestingly enough, when I press to indent a line, the cursor > > instead of staying in the same place moves to the first character of > > the > > line, why is this? I thought save-excursion would avoid this from > > happening. > > > The function is as follows: > > (defun eventb-indent-line () > > "Indent current line as EventB code" > > (interactive) > > (beginning-of-line) > ^^^^^^^^^^^^^^^ > > This isn't wrapped in save-excursion. > You're right. Thanks! :) > - Ian