From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Christopher Schmidt Newsgroups: gmane.emacs.help Subject: Re: Using append to create a list from a line of text Date: Tue, 16 Apr 2013 11:05:11 +0100 (BST) Message-ID: <874nf6eqom@ch.ristopher.com> References: <1366106294207-283808.post@n5.nabble.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1366106732 9820 80.91.229.3 (16 Apr 2013 10:05:32 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 16 Apr 2013 10:05:32 +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 16 12:05:36 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 1US2lY-0007Y1-84 for geh-help-gnu-emacs@m.gmane.org; Tue, 16 Apr 2013 12:05:32 +0200 Original-Received: from localhost ([::1]:41567 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1US2lX-00046h-RT for geh-help-gnu-emacs@m.gmane.org; Tue, 16 Apr 2013 06:05:31 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:55644) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1US2lI-00045f-3b for help-gnu-emacs@gnu.org; Tue, 16 Apr 2013 06:05:19 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1US2lF-0000Pz-5p for help-gnu-emacs@gnu.org; Tue, 16 Apr 2013 06:05:16 -0400 Original-Received: from ristopher.com ([146.185.21.93]:40394 helo=saturn.ch.ristopher.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1US2lF-0000Pq-0o for help-gnu-emacs@gnu.org; Tue, 16 Apr 2013 06:05:13 -0400 Original-Received: by saturn.ch.ristopher.com (Postfix, from userid 0) id 5066720E13; Tue, 16 Apr 2013 11:05:11 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=ch.ristopher.com; s=mail; t=1366106711; bh=Aj1M6hLzrOtAEf/8XgQFzI+GgB5E6i4jPSE23LdyP1o=; h=From:To:Subject:In-Reply-To:Message-ID:References:MIME-Version: Content-Type:Date; b=BLvnDxQC099EB6IqoXBcIJkhJeaXIL3vWikgSWs4JBpsssiy7VHDUH6FEQnbvIfHM 8PpmtdTuhEHlMFZ3N9YbJXxpjxxj+RMk2ZpBcWpcYBfqjqPM7+m3Cd5v7OdVa1HhQK wsHXw9PmgliqbDF1xnOK3cjVgrbzkzC+wevujOiU= In-Reply-To: <1366106294207-283808.post@n5.nabble.com> (acomber's message of "Tue, 16 Apr 2013 02:58:14 -0700 (PDT)") Mail-Followup-To: help-gnu-emacs@gnu.org X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.4.x X-Received-From: 146.185.21.93 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:90186 Archived-At: acomber writes: > I want to create a list of words from a line of text delimitted by > tabs. I want to basically split the line into atoms, split by tab. (save-restriction (narrow-to-region (line-beginning-position) (line-end-position)) (split-string (buffer-string) "\t+")) > The code below is sort of pseudocode but is this the best approach to > do this type of thing? [...] > How do I get my function to return the list, mylist? M-: (info "(eintr)Top") RET Christopher