unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: "Paulo J. Matos" <pocmatos@gmail.com>
To: Ian Eure <ian@digg.com>
Cc: help-gnu-emacs@gnu.org
Subject: Re: Indent goes to beginning of line
Date: Fri, 07 Aug 2009 23:05:45 +0100	[thread overview]
Message-ID: <1249682746.19695.3.camel@drserver> (raw)
In-Reply-To: <5FC5B495-CDE9-4A67-9406-3C6C12ED19BF@digg.com>

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 <tab> 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





      reply	other threads:[~2009-08-07 22:05 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-08-07 13:22 Indent goes to beginning of line Paulo J. Matos
2009-08-07 16:34 ` Ian Eure
2009-08-07 22:05   ` Paulo J. Matos [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1249682746.19695.3.camel@drserver \
    --to=pocmatos@gmail.com \
    --cc=help-gnu-emacs@gnu.org \
    --cc=ian@digg.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).