[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Is it possible to set a "goal column" for 'beginning-of-line'?
From: |
Henrik Enberg |
Subject: |
Re: Is it possible to set a "goal column" for 'beginning-of-line'? |
Date: |
Tue, 22 Nov 2005 18:46:16 +0100 (CET) |
> From: Henrik Enberg <henrik.enberg@telia.com>
> Date: Tue, 22 Nov 2005 16:35:18 +0100 (CET)
>
> > From: "Herbert Euler" <herberteuler@hotmail.com>
> > Date: Tue, 22 Nov 2005 20:50:53 +0800
> >
> > The command 'beginning-of-line' moves point to column 0
> > by default. Is it possible to set a "goal column," so that
> > this command moves point to that column, e.g. column 7,
> > rather than 0? The content before such column will become
> > irreachable in this situation (but it might still be displayed).
>
> (goto-char (+ (line-beginning-position) 7))
Eh, I didn't read carefully enough. You wanna read the Emacs Lisp
manual on text properties. The `field' might be of interest. Some
functions like beginning-of-line stop moving when they encounter such a
property.
(info "(elisp) Text Properties")