help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Indent goes to beginning of line


From: Paulo J. Matos
Subject: Re: Indent goes to beginning of line
Date: Fri, 07 Aug 2009 23:05:45 +0100

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 via email to

[Prev in Thread] Current Thread [Next in Thread]