From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Thorsten Jolitz Newsgroups: gmane.emacs.help Subject: Re: Possible to write 'beginning of line' in a String? Date: Tue, 02 Apr 2013 11:58:59 +0200 Message-ID: <87ppydz21o.fsf@gmail.com> References: <877gkl1jgh.fsf@gmail.com> <515A93DE.9010306@easy-emacs.de> <87zjxhz3ts.fsf@gmail.com> <87k3olthcx.fsf@wanadoo.es> <515AA7B5.5010208@easy-emacs.de> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: ger.gmane.org 1364897447 29508 80.91.229.3 (2 Apr 2013 10:10:47 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 2 Apr 2013 10:10:47 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Apr 02 12:11:14 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 1UMyBO-0005G4-H9 for geh-help-gnu-emacs@m.gmane.org; Tue, 02 Apr 2013 12:11:14 +0200 Original-Received: from localhost ([::1]:50177 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UMyAz-0003sJ-IB for geh-help-gnu-emacs@m.gmane.org; Tue, 02 Apr 2013 06:10:49 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:47670) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UMyAk-0003s4-Pw for help-gnu-emacs@gnu.org; Tue, 02 Apr 2013 06:10:36 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UMyAj-0002Kn-Au for help-gnu-emacs@gnu.org; Tue, 02 Apr 2013 06:10:34 -0400 Original-Received: from plane.gmane.org ([80.91.229.3]:43538) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UMxzi-0006Aa-UG for help-gnu-emacs@gnu.org; Tue, 02 Apr 2013 05:59:11 -0400 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1UMy05-0006EJ-SN for help-gnu-emacs@gnu.org; Tue, 02 Apr 2013 11:59:33 +0200 Original-Received: from g231232039.adsl.alicedsl.de ([92.231.232.39]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 02 Apr 2013 11:59:33 +0200 Original-Received: from tjolitz by g231232039.adsl.alicedsl.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 02 Apr 2013 11:59:33 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 24 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: g231232039.adsl.alicedsl.de User-Agent: Gnus/5.130002 (Ma Gnus v0.2) Emacs/24.2 (gnu/linux) Cancel-Lock: sha1:peZvUaKNkRqTL4SH6PpY21fFo3U= X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 80.91.229.3 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:89887 Archived-At: Andreas Röhler writes: > Am 02.04.2013 11:24, schrieb Óscar Fuentes: >> (beginning-of-line) >> (insert "abc") > > resp. > > (progn (beginning-of-line) > (looking-at "abc") Thats not what I mean. I set a variable with string values that are inserted by other libraries (not under my control), but I want to use these string values for regexp searches in my own program too. But thanks to everyone, I was probably looking for an (obscure magic) non-printable control-character that functions in a string like "^" does in a regexp, but the way to handle this is probably 'take the string and add "^" in front of it before using it as regexp'. -- cheers, Thorsten