From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: =?utf-8?Q?=C3=93scar_Fuentes?= Newsgroups: gmane.emacs.help Subject: Re: Possible to write 'beginning of line' in a String? Date: Tue, 02 Apr 2013 11:24:46 +0200 Message-ID: <87k3olthcx.fsf@wanadoo.es> References: <877gkl1jgh.fsf@gmail.com> <515A93DE.9010306@easy-emacs.de> <87zjxhz3ts.fsf@gmail.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1364894707 2051 80.91.229.3 (2 Apr 2013 09:25:07 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 2 Apr 2013 09:25:07 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: Thorsten Jolitz Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Apr 02 11:25:35 2013 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1UMxTC-0000Bx-Nz for geh-help-gnu-emacs@m.gmane.org; Tue, 02 Apr 2013 11:25:34 +0200 Original-Received: from localhost ([::1]:56766 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UMxSo-0004jK-36 for geh-help-gnu-emacs@m.gmane.org; Tue, 02 Apr 2013 05:25:10 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:35128) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UMxSX-0004fP-3l for help-gnu-emacs@gnu.org; Tue, 02 Apr 2013 05:24:54 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UMxSW-0002hw-25 for help-gnu-emacs@gnu.org; Tue, 02 Apr 2013 05:24:53 -0400 Original-Received: from impaqm5.telefonica.net ([213.4.138.21]:47378 helo=telefonica.net) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UMxSV-0002hQ-Ki for help-gnu-emacs@gnu.org; Tue, 02 Apr 2013 05:24:51 -0400 Original-Received: from IMPmailhost5.adm.correo ([10.20.102.126]) by IMPaqm5.telefonica.net with bizsmtp id Julw1l00J2jdgqJ3RxQnE2; Tue, 02 Apr 2013 11:24:47 +0200 Original-Received: from qcore ([83.32.114.255]) by IMPmailhost5.adm.correo with BIZ IMP id JxQm1l00h5Wh3kK1lxQn1x; Tue, 02 Apr 2013 11:24:47 +0200 X-CMAE-Analysis: v=1.1 cv=m+z7bjKOR4Wob8S8LeetXbGou+XqCsUZZQ992M8DfLs= c=1 sm=1 a=DQlLCnKHR5QA:10 a=CZJQ3CCjN7kA:10 a=81OwRG/lTlzKMM4beKGMsw==:17 a=pGLkceISAAAA:8 a=HXnvGbsNDJ7zovEKbyEA:9 a=MSl-tDqOz04A:10 a=81OwRG/lTlzKMM4beKGMsw==:117 X-original-sender: 981711563@telefonica.net In-Reply-To: <87zjxhz3ts.fsf@gmail.com> (Thorsten Jolitz's message of "Tue, 02 Apr 2013 11:20:31 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 213.4.138.21 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:89885 Archived-At: Thorsten Jolitz 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")