From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Drew Adams Newsgroups: gmane.emacs.help Subject: RE: How can I change "buffer" to "string" Date: Wed, 5 Aug 2015 06:34:18 -0700 (PDT) Message-ID: <5f33bab1-954c-47d3-ad19-5287786b9d49@default> References: <20150805034423.GA8540@debian> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1438781707 21547 80.91.229.3 (5 Aug 2015 13:35:07 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 5 Aug 2015 13:35:07 +0000 (UTC) To: Navy Cheng , help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Aug 05 15:34:56 2015 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 1ZMyqO-0005O1-3u for geh-help-gnu-emacs@m.gmane.org; Wed, 05 Aug 2015 15:34:56 +0200 Original-Received: from localhost ([::1]:40534 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZMyqN-0005sA-DI for geh-help-gnu-emacs@m.gmane.org; Wed, 05 Aug 2015 09:34:55 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:44580) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZMyq7-0005rt-Dl for help-gnu-emacs@gnu.org; Wed, 05 Aug 2015 09:34:43 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZMyq1-0007BK-MZ for help-gnu-emacs@gnu.org; Wed, 05 Aug 2015 09:34:39 -0400 Original-Received: from userp1040.oracle.com ([156.151.31.81]:30191) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZMyq1-0007B0-FW for help-gnu-emacs@gnu.org; Wed, 05 Aug 2015 09:34:33 -0400 Original-Received: from userv0021.oracle.com (userv0021.oracle.com [156.151.31.71]) by userp1040.oracle.com (Sentrion-MTA-4.3.2/Sentrion-MTA-4.3.2) with ESMTP id t75DYKmA016483 (version=TLSv1 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Wed, 5 Aug 2015 13:34:21 GMT Original-Received: from aserv0122.oracle.com (aserv0122.oracle.com [141.146.126.236]) by userv0021.oracle.com (8.13.8/8.13.8) with ESMTP id t75DYK1t004847 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=FAIL); Wed, 5 Aug 2015 13:34:20 GMT Original-Received: from abhmp0007.oracle.com (abhmp0007.oracle.com [141.146.116.13]) by aserv0122.oracle.com (8.13.8/8.13.8) with ESMTP id t75DYJJT007828; Wed, 5 Aug 2015 13:34:20 GMT In-Reply-To: <20150805034423.GA8540@debian> X-Priority: 3 X-Mailer: Oracle Beehive Extensions for Outlook 2.0.1.9 (901082) [OL 12.0.6691.5000 (x86)] X-Source-IP: userv0021.oracle.com [156.151.31.71] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.4.x-2.6.x [generic] X-Received-From: 156.151.31.81 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:106250 Archived-At: > I want to change one line in a *buffer* to *string*, How can I do that ? As others have noted, your question is unclear, in particular, what you mean by "change" is unclear. My own wild guess is that you want to copy a line from a buffer as a string. To copy the current line as a string: (buffer-substring (line-beginning-position) (line-end-position))