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: Ian Eure
Subject: Re: Indent goes to beginning of line
Date: Fri, 7 Aug 2009 09:34:24 -0700

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.

 - Ian




reply via email to

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