<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>octal on
A Scripter's Notes</title><link>https://scripter.co/categories/octal/</link><description>Recent content in octal
on A Scripter's Notes</description><language>en-us</language><managingEditor>kaushal.modi@gmail.com (Kaushal Modi)</managingEditor><webMaster>kaushal.modi@gmail.com (Kaushal Modi)</webMaster><lastBuildDate>Wed, 22 Apr 2026 08:24:58 -0400</lastBuildDate><generator>Hugo -- gohugo.io</generator><docs>https://validator.w3.org/feed/docs/rss2.html</docs><atom:link href="https://scripter.co/categories/octal/index.xml" rel="self" type="application/rss+xml"/><item><title>Elisp Meta Characters in String</title><link>https://scripter.co/elisp-meta-characters-in-string/</link><description>&lt;p>The setup of &lt;a href="https://github.com/tj64/outshine">outshine&lt;/a> package for emacs requires the user to set the
variable &lt;code>outline-minor-mode-prefix&lt;/code> to &lt;code>&amp;quot;\M-#&amp;quot;&lt;/code> before the &lt;code>outline-mode&lt;/code>
package (that ships with emacs) is loaded.&lt;/p>
&lt;p>The best way to do this is via the Customize interface in emacs.&lt;/p>
&lt;p>So I did &lt;code>M-x customize&lt;/code> and set that variable&amp;rsquo;s value to &lt;code>&amp;quot;\M-#&amp;quot;&lt;/code> and restarted
emacs and that worked.&lt;/p>
&lt;p>But then I was surprised to see that value being saved in the &lt;code>custom.el&lt;/code> as
&lt;code>'(outline-minor-mode-prefix &amp;quot;\243&amp;quot;)&lt;/code>.&lt;/p>
&lt;p>After some digging, I came across this &lt;a href="https://www.gnu.org/software/emacs/manual/html_node/elisp/Meta_002dChar-Syntax.html#Meta_002dChar-Syntax">elisp meta-character syntax
reference&lt;/a>,&lt;/p>
&lt;blockquote>
&lt;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.&lt;/p>
&lt;/blockquote>
&lt;p>Thus if the decimal &lt;a href="https://theasciicode.com.ar/ascii-printable-characters/number-sign-ascii-code-35.html">ASCII value of the &lt;code>#&lt;/code> character&lt;/a> is 35, the decimal
value of &lt;code>\M-#&lt;/code> will be &amp;ldquo;2**7 bit attached to #&amp;rdquo; i.e. 2**7 + 35 = 128 + 35 =
163. But the value of &lt;code>\M-#&lt;/code> got stored in &lt;code>custom.el&lt;/code> as &lt;code>\243&lt;/code>.&lt;/p>
&lt;p>From the &lt;a href="https://www.gnu.org/software/emacs/manual/html_node/elisp/General-Escape-Syntax.html#General-Escape-Syntax">elisp general escape syntax reference&lt;/a>,&lt;/p>
&lt;blockquote>
&lt;p>An octal escape sequence consists of a backslash followed by up to three octal
digits; thus, ‘?\101’ for the character A&lt;/p>
&lt;/blockquote>
&lt;p>.. and doing decimal to octal conversion of 163 gives 243!&lt;/p></description><category domain="https://scripter.co/categories/elisp">elisp</category><category domain="https://scripter.co/categories/octal">octal</category><category domain="https://scripter.co/categories/meta">meta</category><category domain="https://scripter.co/categories/outshine">outshine</category><guid>https://scripter.co/elisp-meta-characters-in-string/</guid><pubDate>Sat, 07 Feb 2015 23:24:13 -0500</pubDate></item></channel></rss>