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

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

Re: Adding tab characters


From: Kevin Rodgers
Subject: Re: Adding tab characters
Date: Sat, 15 Mar 2008 00:53:57 -0600
User-agent: Thunderbird 2.0.0.12 (Macintosh/20080213)

Kerry.Thurber@gmail.com wrote:
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?

The "\NNN" syntax is octal, so "\009" is interpreted as "\00" (NUL) followed by "9" (the digit).

"\011" is the octal syntax.  "\u0009" is the hexadecimal syntax.

"\^I" and "\C-i" (and "\C-I") are the control character syntaxes.


--
Kevin Rodgers
Denver, Colorado, USA





reply via email to

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