From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Kerry.Thurber@gmail.com Newsgroups: gmane.emacs.help Subject: Adding tab characters Date: Thu, 13 Mar 2008 10:08:55 -0700 (PDT) Organization: http://groups.google.com Message-ID: <7937ec17-984e-4698-bbf1-8feaef2841bc@s37g2000prg.googlegroups.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1205433029 25747 80.91.229.12 (13 Mar 2008 18:30:29 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 13 Mar 2008 18:30:29 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Mar 13 19:30:48 2008 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1JZsCU-0000cZ-0t for geh-help-gnu-emacs@m.gmane.org; Thu, 13 Mar 2008 19:30:46 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JZsBv-00075F-0R for geh-help-gnu-emacs@m.gmane.org; Thu, 13 Mar 2008 14:30:11 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!postnews.google.com!s37g2000prg.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 23 Original-NNTP-Posting-Host: 67.128.198.114 Original-X-Trace: posting.google.com 1205428135 958 127.0.0.1 (13 Mar 2008 17:08:55 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Thu, 13 Mar 2008 17:08:55 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: s37g2000prg.googlegroups.com; posting-host=67.128.198.114; posting-account=ZI-klAoAAADROpwxcphjPmWQjX5C1HKm User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.12) Gecko/20080201 Firefox/2.0.0.12,gzip(gfe),gzip(gfe) Original-Xref: shelby.stanford.edu gnu.emacs.help:157004 X-Mailman-Approved-At: Thu, 13 Mar 2008 14:27:07 -0400 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:52379 Archived-At: Hello everyone, I'm missing something obvious I think. I want to create a tab delimited file using emacs. I can do it fine with a keyboard macro, but I need to make something permanent that others can use. (defun CreateTabDelimitedFile() "Convert JED logs into something Scott can use" (interactive) (beginning-of-buffer) (replace-string ";" "\009") ;tried many other variants ) In place of "\009" I tried ^I, ^Tab, an actual tab, "[tab]" and everything else I could imagine. Nothing seems to work. Is there a way to replace a string with a tab character? Is there a way to replace a string with another string *plus* a tab character? Any help is appreciated. Thanks, Kerry