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

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

Re: Using append to create a list from a line of text


From: Christopher Schmidt
Subject: Re: Using append to create a list from a line of text
Date: Tue, 16 Apr 2013 11:05:11 +0100 (BST)

acomber <deedexy@gmail.com> 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



reply via email to

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