help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Possible to write 'beginning of line' in a String?


From: Óscar Fuentes
Subject: Re: Possible to write 'beginning of line' in a String?
Date: Tue, 02 Apr 2013 11:24:46 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux)

Thorsten Jolitz <tjolitz@gmail.com> writes:

> I would need something that can be inserted as string, but is matched
> only at beginning of line. 
>
> ,-----------------
> | (insert "^abc ")
> | ^abc
> `-----------------
>
> is not what I want, and "abc ", when used as regexp, is obviously
> matched anywhere. 

what about

(beginning-of-line)
(insert "abc")




reply via email to

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