unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Henrik Enberg <henrik.enberg@telia.com>
Subject: Re: Is it possible to set a "goal column" for 'beginning-of-line'?
Date: Tue, 22 Nov 2005 18:46:16 +0100 (CET)	[thread overview]
Message-ID: <20051122174616.A06993F32@rocksteady.printf.se> (raw)
In-Reply-To: <20051122153518.8F0E53F32@rocksteady.printf.se> (message from Henrik Enberg on Tue, 22 Nov 2005 16:35:18 +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")

  reply	other threads:[~2005-11-22 17:46 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-11-22 12:50 Is it possible to set a "goal column" for 'beginning-of-line'? Herbert Euler
2005-11-22 15:35 ` Henrik Enberg
2005-11-22 17:46   ` Henrik Enberg [this message]
2005-11-26  9:58     ` Herbert Euler
     [not found] <mailman.16320.1132664052.20277.help-gnu-emacs@gnu.org>
2005-11-22 18:29 ` rgb
2005-11-22 20:35 ` Stefan Monnier
2005-11-23  2:16   ` Herbert Euler
2005-11-23  2:32     ` Herbert Euler
     [not found] <mailman.16414.1132712222.20277.help-gnu-emacs@gnu.org>
2005-11-23  7:25 ` Stefan Monnier
2005-11-23  8:51   ` Herbert Euler
     [not found] <mailman.16440.1132735879.20277.help-gnu-emacs@gnu.org>
2005-12-01 15:49 ` Stefan Monnier

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=20051122174616.A06993F32@rocksteady.printf.se \
    --to=henrik.enberg@telia.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).