[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: delete the first few chars of each line
From: |
David Kastrup |
Subject: |
Re: delete the first few chars of each line |
Date: |
21 Sep 2003 21:51:47 +0200 |
User-agent: |
Gnus/5.09 (Gnus v5.9.0) Emacs/21.3.50 |
Zimmen Gnauh <yah00204052@yahoo.com> writes:
> To delete the first 10 chars of a line. Is there any simpler way
> than the following:
>
> (let beg (progn (beginning-of-line) (point))
> (delete-region beg 10))
This is a trick question. The code above does something completely
different.
I'd probably do something like
(progn
(beginning-of-line)
(delete-region (point) (+ 10 (point))))
--
David Kastrup, Kriemhildstr. 15, 44793 Bochum