<?xml version="1.0" encoding="utf-8"?><feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-us"><generator uri="https://gohugo.io/" version="0.101.0">Hugo</generator><title type="html">octal on A Scripter's Notes</title><subtitle type="html">Emacs, scripting and anything text oriented.</subtitle><link href="https://scripter.co/categories/octal/" rel="alternate" type="text/html" title="HTML"/><link href="https://scripter.co/categories/octal/index.xml" rel="alternate" type="application/rss+xml" title="RSS"/><link href="https://scripter.co/categories/octal/atom.xml" rel="self" type="application/atom+xml" title="Atom"/><link href="https://scripter.co/categories/octal/jf2feed.json" rel="alternate" type="application/jf2feed+json" title="jf2feed"/><updated>2026-04-22T08:24:57-04:00</updated><author><name>Kaushal Modi</name><email>kaushal.modi@gmail.com</email></author><id>https://scripter.co/categories/octal/</id><entry><title type="html">Elisp Meta Characters in String</title><link href="https://scripter.co/elisp-meta-characters-in-string/?utm_source=atom_feed" rel="alternate" type="text/html"/><id>https://scripter.co/elisp-meta-characters-in-string/</id><published>2015-02-07T23:24:13-05:00</published><updated>2015-02-07T23:24:13-05:00</updated><content type="html"><![CDATA[<p>The setup of <a href="https://github.com/tj64/outshine">outshine</a> package for emacs requires the user to set the
variable <code>outline-minor-mode-prefix</code> to <code>&quot;\M-#&quot;</code> before the <code>outline-mode</code>
package (that ships with emacs) is loaded.</p>
<p>The best way to do this is via the Customize interface in emacs.</p>
<p>So I did <code>M-x customize</code> and set that variable&rsquo;s value to <code>&quot;\M-#&quot;</code> and restarted
emacs and that worked.</p>
<p>But then I was surprised to see that value being saved in the <code>custom.el</code> as
<code>'(outline-minor-mode-prefix &quot;\243&quot;)</code>.</p>
<p>After some digging, I came across this <a href="https://www.gnu.org/software/emacs/manual/html_node/elisp/Meta_002dChar-Syntax.html#Meta_002dChar-Syntax">elisp meta-character syntax
reference</a>,</p>
<blockquote>
<p>In a string, the 2**7 bit attached to an ASCII character indicates a meta
character; thus, the meta characters that can fit in a string have codes in
the range from 128 to 255, and are the meta versions of the ordinary ASCII
characters.</p>
</blockquote>
<p>Thus if the decimal <a href="https://theasciicode.com.ar/ascii-printable-characters/number-sign-ascii-code-35.html">ASCII value of the <code>#</code> character</a> is 35, the decimal
value of <code>\M-#</code> will be &ldquo;2**7 bit attached to #&rdquo; i.e. 2**7 + 35 = 128 + 35 =
163. But the value of <code>\M-#</code> got stored in <code>custom.el</code> as <code>\243</code>.</p>
<p>From the <a href="https://www.gnu.org/software/emacs/manual/html_node/elisp/General-Escape-Syntax.html#General-Escape-Syntax">elisp general escape syntax reference</a>,</p>
<blockquote>
<p>An octal escape sequence consists of a backslash followed by up to three octal
digits; thus, ‘?\101’ for the character A</p>
</blockquote>
<p>.. and doing decimal to octal conversion of 163 gives 243!</p>]]></content><category scheme="https://scripter.co/categories/elisp" term="elisp" label="elisp"/><category scheme="https://scripter.co/categories/octal" term="octal" label="octal"/><category scheme="https://scripter.co/categories/meta" term="meta" label="meta"/><category scheme="https://scripter.co/categories/outshine" term="outshine" label="outshine"/></entry></feed>