<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Linux etc. &#187; XEmacs</title>
	<atom:link href="http://promberger.info/linux/category/xemacs/feed/" rel="self" type="application/rss+xml" />
	<link>http://promberger.info/linux</link>
	<description>my outsourced memory for your perusal</description>
	<lastBuildDate>Thu, 08 Sep 2011 11:06:06 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>GnuClient: faster access to XEmacs</title>
		<link>http://promberger.info/linux/2007/09/07/gnuclient-faster-access-to-xemacs/</link>
		<comments>http://promberger.info/linux/2007/09/07/gnuclient-faster-access-to-xemacs/#comments</comments>
		<pubDate>Fri, 07 Sep 2007 09:16:03 +0000</pubDate>
		<dc:creator>Marianne</dc:creator>
				<category><![CDATA[Noobs]]></category>
		<category><![CDATA[XEmacs]]></category>

		<guid isPermaLink="false">http://www.promberger.info/linux/2007/09/07/gnuclient-faster-access-to-xemacs/</guid>
		<description><![CDATA[XEmacs is a great text editor, but it takes some time to start up. I use GnuClient to get around this problem. GnuClient opens a window that looks like a new XEmacs window, but is in fact part of a running XEmacs process. It ships with XEmacs, but you need to tell XEmacs via the [...]]]></description>
			<content:encoded><![CDATA[<p>XEmacs is a great text editor, but it takes some time to start up. I use GnuClient to get around this problem. GnuClient opens a window that looks like a new XEmacs window, but is in fact part of a running XEmacs process. It ships with XEmacs, but you need to tell XEmacs via the <code>init.el</code> file that it should start with a <code>gnuserv</code> process:<br />
<code>(load "gnuserv")<br />
(gnuserv-start)</code></p>
<p>Then, to start it, just type:</p>
<pre>
gnuclient</pre>
<p>I&#8217;ve added some more stuff in my <code>~/.xemacs/init.el</code> to configure the behavior of GnuClient:</p>
<pre>
; gnuclient lets you open files in a running xemacs process, but only
; if the existing process is associated with a gnuserv server. So
; start it:
(load "gnuserv")
(gnuserv-start)

; set some gnuserv options
; gnuserv-frame nil means open a new frame for every gnuclient
; gnuserv-frame t means open gnuclient in exisiting frame
(setq gnuserv-frame nil)
; don't ask for confirm when killing gnuclient buffers:
(setq gnuserv-kill-quietly t)

;;; Instead of closing XEmacs, just close a frame.  Or if the frame
;;; was opened by gnuserv, use gnuserv to close it.
(defun exit-from-screen-or-xemacs ()
  "Close the screen and if we're on the last screen, close XEmacs"
  (interactive)
  (cond ((and (featurep 'gnuserv) (gnuserv-buffer-p (current-buffer)))
         (gnuserv-edit))
        ((= (length (frame-list)) 1)
         (save-buffers-kill-emacs))
        (t
         (delete-frame)))) 

; then, we bind it to C-x C-c:
(global-set-key "&#92;C-x&#92;C-c" 'exit-from-screen-or-xemacs)
    </pre>
<p>Another alternative for quick file editing if you&#8217;re used to XEmacs key bindings is <a href="http://www.jedsoft.org/jed/">JED</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://promberger.info/linux/2007/09/07/gnuclient-faster-access-to-xemacs/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>XEmacs: how to change fill-column on the fly</title>
		<link>http://promberger.info/linux/2007/09/01/xemacs-how-to-change-fill-column-on-the-fly/</link>
		<comments>http://promberger.info/linux/2007/09/01/xemacs-how-to-change-fill-column-on-the-fly/#comments</comments>
		<pubDate>Sat, 01 Sep 2007 14:00:18 +0000</pubDate>
		<dc:creator>Marianne</dc:creator>
				<category><![CDATA[Emacs]]></category>
		<category><![CDATA[XEmacs]]></category>

		<guid isPermaLink="false">http://www.promberger.info/linux/2007/09/01/xemacs-how-to-change-fill-column-on-the-fly/</guid>
		<description><![CDATA[XEmacs uses fill-column to break lines at a width defined by the user, either automatically as you type, or whenever you hit M-q, depending on whether auto-fill-mode is set to 1 or to &#8722;1. For me, the default is set to 70 in ~/.xemacs/init.el by this line:(setq&#160;default-fill-column&#160;70). If you want to change fill-column temporarily for [...]]]></description>
			<content:encoded><![CDATA[<p>XEmacs uses <code>fill-column</code> to break lines at a width defined by the user, either automatically as you type, or whenever you hit <code>M-q</code>, depending on whether <code>auto-fill-mode</code> is set to <code>1</code> or to <code>&minus;1</code>.</p>
<p>For me, the default is set to 70 in <code>~/.xemacs/init.el</code> by this line:<br /><code>(setq&nbsp;default-fill-column&nbsp;70)</code>.</p>
<p>If you want to change fill-column temporarily for the current buffer, you&#8217;ll figure out quickly enough that you can use <code>M-x set-fill-column</code> or <code>C-x f</code>. However, if you&#8217;re hoping to use that and then just enter a number, it doesn&#8217;t work, but instead XEmacs complains:</p>
<pre>set-fill-column requires an explicit argument</pre>
<p>You need to give that first using <code>C-u</code>.</p>
<p>For example, to change <code>fill-column</code> to 80:</p>
<pre>C-u 80&lt;RET&gt;C-x f&lt;RET&gt;</pre>
<p>To change fill-column to where point currently is, omit the argument to <code>C-u</code>:</p>
<pre>C-u&lt;RET&gt;C-x f&lt;RET&gt;</pre>
<h3>Addendum</h3>
<p>Maybe I made a mistake, or maybe things are different with Emacs, which I am now using. In any case, on Emacs, you should not hit enter between <code>C-u</code> (and its argument, if any) and the <code>C-x f</code>. So the commands to type would be:</p>
<pre>C-u 80 C-x f</pre>
<p>and </p>
<pre>C-u C-x f</pre>
<p>respectively.</p>
]]></content:encoded>
			<wfw:commentRss>http://promberger.info/linux/2007/09/01/xemacs-how-to-change-fill-column-on-the-fly/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Mozex extension for Firefox</title>
		<link>http://promberger.info/linux/2007/08/15/mozex-extension-for-firefox/</link>
		<comments>http://promberger.info/linux/2007/08/15/mozex-extension-for-firefox/#comments</comments>
		<pubDate>Wed, 15 Aug 2007 12:11:14 +0000</pubDate>
		<dc:creator>Marianne</dc:creator>
				<category><![CDATA[Firefox]]></category>
		<category><![CDATA[XEmacs]]></category>

		<guid isPermaLink="false">http://www.promberger.info/linux/2007/08/15/mozex-extension-for-firefox/</guid>
		<description><![CDATA[Since discovering Mozex, I can use gnuclient to fill out online text areas and view the source code of websites, which makes for easy copying and yanking to and from local files (to say nothing of being able to use XEmacs key bindings). Addendum Make sure you get the development version.]]></description>
			<content:encoded><![CDATA[<p>Since discovering <a href="http://mozex.mozdev.org/">Mozex</a>, I can use gnuclient to fill out online text areas and view the source code of websites, which makes for easy copying and yanking to and from local files (to say nothing of being able to use XEmacs key bindings).</p>
<h3>Addendum</h3>
<p>Make sure you get the <a href="http://downloads.mozdev.org/mozex/mozex-1.9.5.xpi">development version.</a></p>
]]></content:encoded>
			<wfw:commentRss>http://promberger.info/linux/2007/08/15/mozex-extension-for-firefox/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>XEmacs and umlauts &#8212; setting the character encoding to UTF-8</title>
		<link>http://promberger.info/linux/2007/05/29/xemacs-and-umlauts-setting-to-utf-8/</link>
		<comments>http://promberger.info/linux/2007/05/29/xemacs-and-umlauts-setting-to-utf-8/#comments</comments>
		<pubDate>Tue, 29 May 2007 12:37:02 +0000</pubDate>
		<dc:creator>Marianne</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[XEmacs]]></category>

		<guid isPermaLink="false">http://www.promberger.de/blog/index.php/2007/05/29/xemacs-and-umlauts-setting-to-utf-8/</guid>
		<description><![CDATA[XEmacs didn&#8217;t display umlauts correctly. I guessed this has something to do with the file encoding (the file displayed correctly in a terminal window with nano or &#8220;xemacs -nw&#8221;). The grey horizontal bar that separates the main buffer from the minibuffer shows the encoding of the current buffer at the very left. The text in [...]]]></description>
			<content:encoded><![CDATA[<p>XEmacs didn&#8217;t display umlauts correctly. I guessed this has something to do with the file encoding (the file displayed correctly in a terminal window with nano or &#8220;xemacs -nw&#8221;).  The grey horizontal bar that separates the main buffer from the minibuffer shows the encoding of the current buffer at the very left. The text in question, with umlauts, showed &#8220;raw&#8221;. It had to be set to UTF-8. I found this out by saying</p>
<pre>env</pre>
<p>in a terminal window (where the file displayed correctly). This gives a list of all environment variables that are set, and one of them was:</p>
<pre>LANG=en_GB.UTF-8</pre>
<p>I was able to fix this by adding the following three lines to the file ~/.xemacs/init.el  (then you have to load that file with M-x load-file or restart XEmacs):</p>
<p><code>(require 'un-define)<br />
(set-coding-priority-list '(utf-8))<br />
(set-coding-category-system 'utf-8 'utf-8)<br />
</code></p>
<p><span id="more-23"></span>I needed all three lines. The first was needed to even make UTF-8 available when setting the encoding for the current buffer (with C-x C-m f, something I found via the &#8220;Edit &rarr; Multilingual&#8221; menu). But with only the first line, the buffer still didn&#8217;t get detected correctly, and even when I set the encoding manually to UTF-8, it didn&#8217;t display the umlauts correctly. </p>
<p>The three lines don&#8217;t change the default encoding of new files. For me, this is &#8220;ISO8 &#8212; iso-2022-8&#8243;. Even if I manually set a new file to UTF-8 encoding, the next time I open it it opens in ISO8 unless it contains something like an umlaut. </p>
<p>It &#8216;works&#8217; now, but I still have some questions:</p>
<ul>
<li>Why doesn&#8217;t XEmacs use the default coding system that is used by my terminal window and set to UTF-8?</li>
<li>Should I try to change the default coding system for XEmacs, either to UTF-8 or to ISO-8859-1?</li>
<li>What&#8217;s the difference between ISO-2022-8 and ISO-8859-1? Does it matter?</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://promberger.info/linux/2007/05/29/xemacs-and-umlauts-setting-to-utf-8/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

