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

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	other threads:[~2009-08-07 16:34 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 [this message]
2009-08-07 22:05   ` Paulo J. Matos

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=5FC5B495-CDE9-4A67-9406-3C6C12ED19BF@digg.com \
    --to=ian@digg.com \
    --cc=help-gnu-emacs@gnu.org \
    --cc=pocmatos@gmail.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).