From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: jadamson@partners.org (Joel J. Adamson) Newsgroups: gmane.emacs.help Subject: Re: Adding tab characters Date: Thu, 13 Mar 2008 15:30:30 -0400 Message-ID: <87lk4m4e21.fsf@W0053328.mgh.harvard.edu> References: <7937ec17-984e-4698-bbf1-8feaef2841bc@s37g2000prg.googlegroups.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1205436711 7891 80.91.229.12 (13 Mar 2008 19:31:51 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 13 Mar 2008 19:31:51 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: Kerry.Thurber@gmail.com Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Mar 13 20:32:19 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 1JZt9Q-0000Cs-3p for geh-help-gnu-emacs@m.gmane.org; Thu, 13 Mar 2008 20:31:40 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JZt8q-0000q6-Sg for geh-help-gnu-emacs@m.gmane.org; Thu, 13 Mar 2008 15:31:04 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JZt8Y-0000po-Ba for help-gnu-emacs@gnu.org; Thu, 13 Mar 2008 15:30:46 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JZt8W-0000pT-TO for help-gnu-emacs@gnu.org; Thu, 13 Mar 2008 15:30:46 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JZt8W-0000pQ-In for help-gnu-emacs@gnu.org; Thu, 13 Mar 2008 15:30:44 -0400 Original-Received: from phsmgmx9.partners.org ([155.52.251.100]) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_ARCFOUR_SHA1:16) (Exim 4.60) (envelope-from ) id 1JZt8W-0004Nx-7U for help-gnu-emacs@gnu.org; Thu, 13 Mar 2008 15:30:44 -0400 X-IronPort-AV: E=Sophos;i="4.25,495,1199682000"; d="scan'208";a="116143559" Original-Received: from phsxcon1.mgh.harvard.edu (HELO PHSXCON1.partners.org) ([132.183.130.40]) by phsmgmx9.partners.org with ESMTP; 13 Mar 2008 15:30:32 -0400 Original-Received: from PHSXMB8.partners.org ([170.223.201.47]) by PHSXCON1.partners.org with Microsoft SMTPSVC(6.0.3790.3959); Thu, 13 Mar 2008 15:30:31 -0400 Original-Received: from W0053328.mgh.harvard.edu.partners.org ([132.183.29.121]) by PHSXMB8.partners.org with Microsoft SMTPSVC(6.0.3790.3959); Thu, 13 Mar 2008 15:30:32 -0400 In-Reply-To: <7937ec17-984e-4698-bbf1-8feaef2841bc@s37g2000prg.googlegroups.com> (Kerry Thurber's message of "Thu, 13 Mar 2008 10:08:55 -0700 (PDT)") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) X-OriginalArrivalTime: 13 Mar 2008 19:30:32.0040 (UTC) FILETIME=[B3C39680:01C88540] X-detected-kernel: by monty-python.gnu.org: Genre and OS details not recognized. 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:52386 Archived-At: Kerry.Thurber@gmail.com writes: > 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 > ) A couple notes on style: Lisp code usually separates words with hyphens kinda-like-this, as in spicy-food-p. CamelCase is generally avoided, AndWouldYouWantToTypeThat? Also, it's easier to look at if the trailing parentheses are all on one line)). > In place of "\009" I tried ^I, ^Tab, an actual tab, "[tab]" and > everything else I could imagine. Can you imagine "\t"? (info "(elisp) Basic Char Syntax") Joel -- Joel J. Adamson Biostatistician Pediatric Psychopharmacology Research Unit Massachusetts General Hospital Boston, MA 02114 (617) 643-1432 (303) 880-3109 Public key: http://pgp.mit.edu The information transmitted in this electronic communication is intended only for the person or entity to whom it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. If you received this information in error, please contact the Compliance HelpLine at 800-856-1983 and properly dispose of this information.