<?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>Windows &#8211; Diary of an Emacs tragic</title>
	<atom:link href="https://emacstragic.net/category/windows/feed/" rel="self" type="application/rss+xml" />
	<link>https://emacstragic.net</link>
	<description>Jason Lewis</description>
	<lastBuildDate>Fri, 21 Feb 2025 03:26:53 +0000</lastBuildDate>
	<language>en-AU</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.7.2</generator>

<image>
	<url>https://emacstragic.net/wp-content/uploads/2018/12/cropped-jason-lewis-profile-picture-square-150x150.jpg</url>
	<title>Windows &#8211; Diary of an Emacs tragic</title>
	<link>https://emacstragic.net</link>
	<width>32</width>
	<height>32</height>
</image> 
<site xmlns="com-wordpress:feed-additions:1">38469313</site>	<item>
		<title>Logitech BCC950 Camera Flicker</title>
		<link>https://emacstragic.net/linux/logitech-bcc950-camera-flicker/</link>
					<comments>https://emacstragic.net/linux/logitech-bcc950-camera-flicker/#respond</comments>
		
		<dc:creator><![CDATA[Jason]]></dc:creator>
		<pubDate>Fri, 21 Feb 2025 01:53:29 +0000</pubDate>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Windows]]></category>
		<guid isPermaLink="false">https://emacstragic.net/?p=1864</guid>

					<description><![CDATA[Seriously fuck Microsoft! This camera would work fine if MS didn&#8217;t default to making windows think your local power is 60Hz. We were suffering a lot of screen flicker with this camera making it almost unusable when the lights were on in the room.After much searching I found you can fix it by running the [&#8230;]]]></description>
										<content:encoded><![CDATA[
<p>Seriously fuck Microsoft! This camera would work fine if MS didn&#8217;t default to making windows think your local power is 60Hz. We were suffering a lot of screen flicker with this camera making it almost unusable when the lights were on in the room.<br>After much searching I found you can fix it by running the <a href="https://support.logi.com/hc/en-my/articles/360025290213-Logitech-Camera-Settings">Logitech Camera Settings</a> app and choosing 50Hz under advanced settings.<br><br>But before finding that solution, found this: <a href="https://github.com/apankowski/linux-logitech-camera-flicker-fix">https://github.com/apankowski/linux-logitech-camera-flicker-fix</a>. Thanks to <a href="https://github.com/apankowski">Andrzej Pańkowski</a> for pointing the way.<br></p>
]]></content:encoded>
					
					<wfw:commentRss>https://emacstragic.net/linux/logitech-bcc950-camera-flicker/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">1864</post-id>	</item>
		<item>
		<title>Execute a script from MicroSIP on call answer</title>
		<link>https://emacstragic.net/windows/execute-a-script-from-microsip-on-call-answer/</link>
					<comments>https://emacstragic.net/windows/execute-a-script-from-microsip-on-call-answer/#comments</comments>
		
		<dc:creator><![CDATA[Jason]]></dc:creator>
		<pubDate>Wed, 29 May 2024 06:50:22 +0000</pubDate>
				<category><![CDATA[Free Palestine]]></category>
		<category><![CDATA[Windows]]></category>
		<guid isPermaLink="false">https://emacstragic.net/?p=1816</guid>

					<description><![CDATA[MicroSIP is a fine open source SIP VOIP soft phone. It mostly does exactly what one needs. However I wanted to make it open the browser and lookup the number of the inbound caller when you answer the phone. It turned out to be trickier than expected as MicroSIP uses the old INI file format [&#8230;]]]></description>
										<content:encoded><![CDATA[
<p><a href="https://www.microsip.org/">MicroSIP</a> is a fine open source SIP VOIP soft phone. It mostly does exactly what one needs. However I wanted to make it open the browser and lookup the number of the inbound caller when you answer the phone.</p>



<p>It turned out to be trickier than expected as MicroSIP uses the old INI file format for passing in the command.</p>



<p>Upon reading the source, I saw that MicroSIP uses the function GetPrivateProfileString to read the ini file and this was never designed to cope with long strings with spaces in them.</p>



<p>I came up with a solution to use the good old 8.3 filename format in windows for the path names.</p>



<p>To discover the file names you can use <code>dir /X</code>. Edit the cmdCallAnswer line of the micrisip.ini file. </p>



<p><code>cmdCallAnswer=C:\Users\foo bar\AppData\Local\Microsoft\WindowsApps\python.exe c:\Users\foo bar\launch_browser.py https://example.com/path</code></p>



<p>becomes something like:</p>



<p><code>cmdCallAnswer=<code>C:\Users\FOOBAR~1\AppData\Local\Microsoft\WindowsApps\python.exe c:\Users\FOOBAR~1\LAUNCH~1.PY https://example.com/path</code></code></p>



<p>Also, MicroSIP works perfectly well under wine too!</p>



<p>This is the script I wrote for launching the browser:</p>


<div class="wp-block-syntaxhighlighter-code "><pre class="brush: python; title: ; notranslate">
import sys
import webbrowser

def main():
    if len(sys.argv) &lt; 2:
        print(&quot;Usage: launch_browser.py &lt;URL&gt; &#x5B;param1=value1] &#x5B;param2=value2] ...&quot;)
        sys.exit(1)

    base_url = sys.argv&#x5B;1]
    query_params = sys.argv&#x5B;2:]

    # Construct the query string
    query_string = &quot;&quot;.join(query_params)

    # Combine the base URL and query string
    full_url = f&quot;{base_url}{query_string}&quot;

    # Open the default web browser with the constructed URL
    webbrowser.open(full_url)

if __name__ == &quot;__main__&quot;:
    main()

</pre></div>


<p>I hope this helps someone and Free Palestine! Stop the genocide!</p>



<p></p>
]]></content:encoded>
					
					<wfw:commentRss>https://emacstragic.net/windows/execute-a-script-from-microsip-on-call-answer/feed/</wfw:commentRss>
			<slash:comments>2</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">1816</post-id>	</item>
		<item>
		<title>Command Option R on a Windows keyboard</title>
		<link>https://emacstragic.net/uncategorized/command-option-r-on-a-windows-keyboard/</link>
					<comments>https://emacstragic.net/uncategorized/command-option-r-on-a-windows-keyboard/#respond</comments>
		
		<dc:creator><![CDATA[Jason]]></dc:creator>
		<pubDate>Thu, 08 Sep 2016 05:15:33 +0000</pubDate>
				<category><![CDATA[General]]></category>
		<category><![CDATA[OS X]]></category>
		<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[Windows]]></category>
		<guid isPermaLink="false">https://emacstragic.net/?p=1311</guid>

					<description><![CDATA[Today I had to do an OS X internet recovery but I only had a Windows keyboard. Normally the keyboard combination to launch the Internet Recovery on Macs is Cmd+Option+R but I couldn&#8217;t find the right combination on the Windows keyboard. After much googling and experimenting, it turns out its Windows+Alt+R]]></description>
										<content:encoded><![CDATA[<p>Today I had to do an OS X internet recovery but I only had a Windows keyboard. Normally the keyboard combination to launch the Internet Recovery on Macs is Cmd+Option+R but I couldn&#8217;t find the right combination on the Windows keyboard. After much googling and experimenting, it turns out its Windows+Alt+R</p>
]]></content:encoded>
					
					<wfw:commentRss>https://emacstragic.net/uncategorized/command-option-r-on-a-windows-keyboard/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">1311</post-id>	</item>
		<item>
		<title>Launch emacs from cygwin</title>
		<link>https://emacstragic.net/emacs/launch-emacs-from-cygwin/</link>
					<comments>https://emacstragic.net/emacs/launch-emacs-from-cygwin/#respond</comments>
		
		<dc:creator><![CDATA[Jason]]></dc:creator>
		<pubDate>Thu, 05 Mar 2015 01:12:25 +0000</pubDate>
				<category><![CDATA[Emacs]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[cygwin]]></category>
		<guid isPermaLink="false">https://emacstragic.net/?p=1188</guid>

					<description><![CDATA[I have written about about using emacs in cygwin and how to launch emacs from cygwin, but I had some problems with the batch file approach in that emacs&#8217; path differ from bash&#8217;s. Then ack fails to work from within emacs which makes me sad. After googling around a bit, I saw a few suggestion that trie to fix the [&#8230;]]]></description>
										<content:encoded><![CDATA[<p>I have written about about <a title="installing emacs in cygwin" href="/installing-emacs-in-cygwin/">using emacs in cygwin</a> and how to <a title="Launching cygwin emacs from native win32 programs" href="/launching-cygwin-emacs-from-native-win32-programs/">launch emacs from cygwin</a>, but I had some problems with the batch file approach in that emacs&#8217; path differ from bash&#8217;s. Then <a href="http://beyondgrep.com/">ack</a> fails to work from within emacs which makes me sad.<br />
After googling around a bit, I saw a few <a href="http://superuser.com/questions/229544/running-emacs-in-cygwin">suggestion</a> that trie to fix the path in emacs, but I think a better approach is to launch emacs from within bash so it inherits the bash environment.<br />
Here is my attempt using vbscript:</p>
<pre class="lang:vb decode:true ">Dim WinScriptHost
Set WinScriptHost = CreateObject("WScript.Shell")
strCmd = "C:\cygwin\bin\bash --login -c '/usr/local/bin/emacsclient -c -a /usr/local/bin/emacs.exe"
    If WScript.Arguments.Count = 1 Then
        'strCmd = strCmd &amp;amp; " " &amp;amp;"""" &amp;amp; WScript.Arguments(0) &amp;amp; """'"
		wScript.Echo strCmd
	else
		strCmd = strCmd &amp;amp; "'" 'close single quote
    End If
WinScriptHost.Run strCmd,0
Set WinScriptHost = Nothing</pre>
<p>Save that script somewhere and then make a Windows Shortcut to it but incle the wscript.exe in the target:</p>
<pre class="wrap:true popup:false lang:batch decode:true ">C:\Windows\System32\wscript.exe C:\Users\jason\launchemacs1.vbs</pre>
<p>You can then launch it from the Start Menu in Windows 7.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://emacstragic.net/emacs/launch-emacs-from-cygwin/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">1188</post-id>	</item>
		<item>
		<title>Printing from Windows to a samba shared CUPS-PDF printer sometimes fails</title>
		<link>https://emacstragic.net/debian-2/printing-windows-samba-shared-cups-pdf-printer-sometimes-fails/</link>
					<comments>https://emacstragic.net/debian-2/printing-windows-samba-shared-cups-pdf-printer-sometimes-fails/#respond</comments>
		
		<dc:creator><![CDATA[Jason]]></dc:creator>
		<pubDate>Thu, 01 May 2014 05:31:54 +0000</pubDate>
				<category><![CDATA[Debian]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[cups]]></category>
		<category><![CDATA[debian]]></category>
		<category><![CDATA[pdf]]></category>
		<category><![CDATA[printing]]></category>
		<guid isPermaLink="false">https://emacstragic.net/?p=1033</guid>

					<description><![CDATA[I had this problem where prints to our CUPS-PDF printer sometimes failed to be processed on the server. The job would disappear as though it has been printed but nothing else would happen. Printing from the same application to a Windows based PDF printer, and then printing the resulting PDF via Adobe Acrobat to the [&#8230;]]]></description>
										<content:encoded><![CDATA[<p>I had this problem where prints to our CUPS-PDF printer sometimes failed to be processed on the server. The job would disappear as though it has been printed but nothing else would happen. Printing from the same application to a Windows based PDF printer, and then printing the resulting PDF via Adobe Acrobat to the CUPS PDF printer would work fine. Printing the same PDF via Sumatra PDF to CUPS-PDF would also fail.<br />
Further investigation revealed that the resulting print job files would differ. The jobs that fail looked like they contained a lot of binary data but the ones that succeeded looked like normal PDF files.<br />
Then I discovered this entry in the Windows Event Viewer:<br />
<code><br />
The document XXXX, owned by jason, failed to print on printer \\server\PDF. Try to print the document again, or restart the print spooler.<br />
Data type: NT EMF 1.008. Size of the spool file in bytes: 2555904. Number of bytes printed: 0. Total number of pages in the document: 1. Number of pages printed: 0. Client computer: \\CLIENT. Win32 error code returned by the print processor: 0. The operation completed successfully.<br />
</code><br />
Googleing that error took me to this <a href="http://www.raspberrypi.org/forums/viewtopic.php?p=304015#p304015">RPi forum</a> which had a solution buried down near the bottom. Thanks to <a href="http://www.raspberrypi.org/forums/memberlist.php?mode=viewprofile&#038;u=60146">Chemirocha</a> for that tip. This bug has been plaguing me for a few years on and off!</p>
]]></content:encoded>
					
					<wfw:commentRss>https://emacstragic.net/debian-2/printing-windows-samba-shared-cups-pdf-printer-sometimes-fails/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">1033</post-id>	</item>
		<item>
		<title>Windows 7 Visual FoxPro ODBC Driver</title>
		<link>https://emacstragic.net/general/windows-7-visual-foxpro-odbc-driver/</link>
					<comments>https://emacstragic.net/general/windows-7-visual-foxpro-odbc-driver/#comments</comments>
		
		<dc:creator><![CDATA[Jason]]></dc:creator>
		<pubDate>Fri, 20 Dec 2013 04:24:40 +0000</pubDate>
				<category><![CDATA[General]]></category>
		<category><![CDATA[Windows]]></category>
		<guid isPermaLink="false">http://emacstragic.net/?p=897</guid>

					<description><![CDATA[Microsoft have made it virtually impossible to find out how to get this driver for Windows 7. If you are getting the error &#8220;You must first install the current version of the Visual FoxPro ODBC Driver&#8221;, you need to download this driver and install it. Tthe file you are after is called VFPODBC.msi and can be downloaded directly from Microsoft [&#8230;]]]></description>
										<content:encoded><![CDATA[<p>Microsoft have made it virtually impossible to find out how to get this driver for Windows 7.<br />
If you are getting the error &#8220;You must first install the current version of the Visual FoxPro ODBC Driver&#8221;, you need to download this driver and install it.<br />
Tthe file you are after is called <a title="Visual FoxPro ODBC driver" href="http://download.microsoft.com/download/vfoxodbcdriver/Install/6.1/W9XNT4/EN-US/VFPODBC.msi">VFPODBC.msi</a> and can be downloaded directly from Microsoft at the time of writing. No doubt they will move that link to ensure no one can find it again.<br />
<a href="http://download.microsoft.com/download/vfoxodbcdriver/Install/6.1/W9XNT4/EN-US/VFPODBC.msi">http://download.microsoft.com/download/vfoxodbcdriver/Install/6.1/W9XNT4/EN-US/VFPODBC.msi</a><br />
To use it on a 64 bit windows system, you need to run the 32  bit version of ODBC: C:\Windows\SysWOW64\odbcad32.exe<br />
[update 2016-07-20]<br />
or you could download it from here. I&#8217;ve tested and it seems to install fine in Windows 10, but I haven&#8217;t tested if it works as I don&#8217;t use FoxPro any more.<br />
<a href="/files/2016/07/VFPODBC.msi_.xz">VFPODBC.msi.xz</a></p>
<table>
<tbody>
<tr>
<th>filename</th>
<th>md5sum&lt;/&gt;</th>
</tr>
<tr>
<td>VFPODBC.msi</td>
<td>4fbb57a7efabde9925af86a239e5c93c</td>
</tr>
<tr>
<td>VFPODBC.msi.xz</td>
<td>aa85ab82c179e4c6b2ee9200b81f8956</td>
</tr>
</tbody>
</table>
<table>
<tbody>
<tr>
<th>filename</th>
<th>sha512sum&lt;/&gt;</th>
</tr>
<tr>
<td>VFPODBC.msi</td>
<td>84aa3f1bf8dd45c7f25575a69b55672b<br />
4f91eadfbcd29ceefaea3dbc1aedcb952c4a<br />
8d14290fe8da0039d5d5dd681f1a86d7cf74<br />
13d0aa36467a8ed2eeb7c8ed</td>
</tr>
<tr>
<td>VFPODBC.msi.xz</td>
<td>97bd6301442320df590f87cde5ffa23f<br />
b10f45532c0a791be9ab4c2a5628474d7039<br />
876b86593bb96561d496bcb597353bba0cbb<br />
af7b54a7f0a6fd7e052a92a2</td>
</tr>
</tbody>
</table>
<p><a href="https://bdsmovement.net/">Free Palestine!</a></p>
]]></content:encoded>
					
					<wfw:commentRss>https://emacstragic.net/general/windows-7-visual-foxpro-odbc-driver/feed/</wfw:commentRss>
			<slash:comments>29</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">897</post-id>	</item>
		<item>
		<title>How to make a bootable usb stick in Windows 7 of a debian iso</title>
		<link>https://emacstragic.net/debian-2/how-to-make-a-bootable-usb-stick-in-windows-7-of-a-debian-iso/</link>
					<comments>https://emacstragic.net/debian-2/how-to-make-a-bootable-usb-stick-in-windows-7-of-a-debian-iso/#comments</comments>
		
		<dc:creator><![CDATA[Jason]]></dc:creator>
		<pubDate>Tue, 11 Jun 2013 02:20:25 +0000</pubDate>
				<category><![CDATA[Debian]]></category>
		<category><![CDATA[General]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[debian]]></category>
		<category><![CDATA[windows]]></category>
		<category><![CDATA[Windows 7]]></category>
		<guid isPermaLink="false">http://emacstragic.net/?p=853</guid>

					<description><![CDATA[Every so often I need to make a bootable USB stick in Windows 7 (64 bit) of a debian installer iso. For some reason my googling usually does not reveal a simple solution for this. I asked on #debian on the OFTC network and got various suggestions. The first suggestions were to use win32 compiled [&#8230;]]]></description>
										<content:encoded><![CDATA[<p>Every so often I need to make a bootable USB stick in Windows 7 (64 bit) of a debian installer iso. For some reason my googling usually does not reveal a simple solution for this.<br />
I asked on #debian on the OFTC network and got various suggestions. The first suggestions were to use win32 compiled variants of dd or rawwrite. The problem is that there seems to be multiple versions of these tools out there and the ones I tried all seemed to have issues of one sort or another, mostly to do with dd complaining that it would not run on 64 bit Windows. My other issue is that they are command line based. Not that I mind using the command line but it does feel fiddly when all you want to do is get on with writing the image to the USB stick so you can install Debian.<br />
Next I came up with unetbootin. This looks promising and seems to work but it does some very strange rewriting of the boot menus you get on the resulting USB stick. I was confused by the menus when I first saw it and I&#8217;m sure novice users would have no idea what to do.<br />
Finally dvs on #debian suggested <a href="http://sourceforge.net/projects/win32diskimager/">win32diskimager</a>. This is exactly what I wanted. A point and click solution.<br />
<figure id="attachment_854" aria-describedby="caption-attachment-854" style="width: 413px" class="wp-caption aligncenter"><img fetchpriority="high" decoding="async" class="size-full wp-image-854" alt="screenshot of win32diskimager" src="https://emacstragic.net/wp-content/uploads/2013/06/win32diskimager.png" width="413" height="202" srcset="https://emacstragic.net/wp-content/uploads/2013/06/win32diskimager.png 413w, https://emacstragic.net/wp-content/uploads/2013/06/win32diskimager-300x147.png 300w" sizes="(max-width: 413px) 100vw, 413px" /><figcaption id="caption-attachment-854" class="wp-caption-text">screenshot of win32diskimager</figcaption></figure><br />
Select the DVD image you want. If the file&#8217;s extension is <code>.iso</code> you&#8217;ll need to change the filter from <code>*.img;*.IMG</code> to <code>*.*</code> in order to see the file. Then select the Device you want to write to. Hit Write and go and have a cup of tea while it writes the ISO to the USB stick.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://emacstragic.net/debian-2/how-to-make-a-bootable-usb-stick-in-windows-7-of-a-debian-iso/feed/</wfw:commentRss>
			<slash:comments>7</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">853</post-id>	</item>
		<item>
		<title>installing emacs in cygwin</title>
		<link>https://emacstragic.net/emacs/installing-emacs-in-cygwin/</link>
					<comments>https://emacstragic.net/emacs/installing-emacs-in-cygwin/#comments</comments>
		
		<dc:creator><![CDATA[Jason]]></dc:creator>
		<pubDate>Wed, 27 Feb 2013 00:45:00 +0000</pubDate>
				<category><![CDATA[Emacs]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[cygwin]]></category>
		<category><![CDATA[emacs]]></category>
		<guid isPermaLink="false">http://emacstragic.net/?p=714</guid>

					<description><![CDATA[Update: See my other post, launching emacs from cygwin There are a few tricks to installing emacs in cygwin. Here&#8217;s what I do. Installing cygwin First, install cygwin. Then, install the very nice tool apt-cyg which makes package management much easier in cygwin. Then to save yourself lots of agony of trying to work out [&#8230;]]]></description>
										<content:encoded><![CDATA[<p>Update: See my other post, <a title="Launch emacs from cygwin" href="/launch-emacs-from-cygwin/">launching emacs from cygwin</a><br />
There are a few tricks to installing emacs in cygwin. Here&#8217;s what I do.</p>
<h2>Installing cygwin</h2>
<p>First, install <a href="http://cygwin.com/install.html">cygwin</a>.<br />
Then, install the very nice tool <a href="https://github.com/cfg/apt-cyg">apt-cyg</a> which makes package management much easier in cygwin.<br />
Then to save yourself lots of agony of trying to work out which cygwin packages you need to install to be able to compile emacs, here is the list of all the packages I have installed. It may be a little bit of overkill but it will save you time. I obtained the list like this:</p>
<pre lang="bash">jason@jade ~
$ apt-cyg show | tr '\n' ' '</pre>
<p>Install them with:</p>
<pre lang="bash">$ apt-cyg install
_autorebase _update-info-dir alternatives autoconf autoconf2.1 \
 autoconf2.5 automake automake1.10 automake1.11 automake1.12 \
automake1.4 automake1.5 automake1.6 automake1.7 automake1.8 \
 automake1.9 base-cygwin base-files bash bash-completion bc binutils \
bzip2 ca-certificates cmake coreutils cpio crypt csih curl cvs cvsps \
cygrunsrv cygutils cygwin cygwin-doc dash dbus diffutils dos2unix \
editrights file findutils gamin gawk gcc-tools-epoch1-autoconf \
gcc-tools-epoch1-automake gcc-tools-epoch2-autoconf \
gcc-tools-epoch2-automake gcc4 gcc4-core gcc4-g++ gccmakedep gettext \
gettext-devel git git-completion git-gui git-svn gitk gitk grep groff \
gsettings-desktop-schemas gsettings-desktop-schemas gzip imake \
ipc-utils less libX11_6 libX11_6 libXau6 libXau6 libXdmcp6 libXdmcp6 \
libXext6 libXext6 libXft2 libXft2 libXrender1 libXrender1 libXss1 \
libXss1 libapr1 libapr1 libaprutil1 libaprutil1 libasn1_8 libattr1 \
libblkid1 libbz2_1 libcharset1 libcloog0 libcom_err-devel libcom_err2 \
libcurl-devel libcurl4 libdb4.5 libdb4.5-devel libdb4.5-devel libdb4.8 \
libdb4.8 libdbus1_3 libdbus1_3 libedit0 libedit0 libexpat1 libfam0 \
libfam0 libffi4 libfontconfig1 libfontconfig1 libfreetype6 \
libfreetype6 libgcc1 libgcrypt11 libgdbm4 libgettextpo0 libgettextpo0 \
libggi2 libggi2-display-terminfo libgii1 libgii1 libglib2.0_0 \
libglib2.0_0 libgmp3 libgmpxx4 libgnutls26 libgomp1 libgpg-error0 \
libgssapi3 libhdb9 libhdb9 libheimbase1 libheimntlm0 libhx509_5 \
libiconv libiconv libiconv2 libidn-devel libidn-devel libidn11 \
libintl8 libkadm5clnt7 libkadm5clnt7 libkadm5srv8 libkadm5srv8 \
libkafs0 libkafs0 libkdc2 libkdc2 libkrb5-devel libkrb5-devel \
libkrb5_26 liblzma5 liblzo2_2 libmetalink3 libmpc1 libmpfr1 libmpfr4 \
libncurses-devel libncurses10 libncurses7 libncurses8 libncurses8 \
libncurses9 libncurses9 libncursesw-devel libncursesw10 libneon27 \
libneon27 libopenldap2_3_0 libopenldap2_3_0 libopenldap2_4_2 \
libopenssl098 libopenssl100 libp11-kit0 libpcre0 libpcre1 libpcre1 \
libpopt0 libppl libpq-devel libpq-devel libpq5 libpq5 libproxy1 \
libproxy1 libreadline6 libreadline6 libreadline7 libroken18 libsasl2 \
libsasl2-devel libsasl2-devel libserf0_1 libserf0_1 libserf1_0 \
libserf1_0 libsigsegv2 libsl0 libsl0 libsqlite3_0 libssh2-devel \
libssh2-devel libssh2_1 libssp0 libstdc++6 libstdc++6-devel libtasn1_3 \
libuuid1 libuuid1 libwind0 libwrap0 libxcb1 libxcb1 libxml2 login m4 \
make makedepend makedepend man mintty nano ncurses ncurses-demo \
ncursesw ncursesw-demo openldap-devel openldap-devel openssh openssl \
openssl openssl-devel openssl-devel perl perl-Error \
perl-Locale-gettext perl_vendor python rebase run sed stgit subversion \
subversion subversion-perl subversion-perl tar tcl tcl tcl-tk tcl-tk \
termcap terminfo terminfo-extra terminfo0 terminfo0 terminfo0-extra \
texinfo tzcode unzip util-linux w32api w32api-headers w32api-runtime \
wget which xorg-cf-files xorg-cf-files xz zlib zlib-devel zlib-devel \
zlib0</pre>
<p>Go and have a cup of tea while its installing.</p>
<pre lang="bash">git clone git://git.savannah.gnu.org/emacs.git
cd emacs
./configure --with-w32 #  to ditch gtk and the concomitant gtk bug, thanks jlf
make</pre>
<p>If make is successful, test the build by running emacs from the src directory:</p>
<pre lang="bash">src/emacs -Q</pre>
<p>If that worked ok, you can:</p>
<pre lang="bash">make install</pre>
<h2>Setting up your home</h2>
<p>I like my cygwin home directory to be the same as windows %USERPROFILE% so I set the environment variable HOME=%USERPROFILE%.</p>
<h2>Set up a shortcut to launch emacs</h2>
<p>Make a shortcut to c:\cygwin\bin\run.exe on your desktop, and rename it to emacs.<br />
Edit the shortcut to:<br />
Target: <code>C:\cygwin\bin\run.exe /usr/local/bin/emacsclient "-c" "-a" "/usr/local/bin/emacs.exe"</code> #<br />
Start in: %USERPROFILE%<br />
The target part makes sure emacs launches a new window whether or not its already running. If it is already running and as a server, it will create a new frame connected to the server.<br />
The start in part makes sure the new instance&#8217;s <code>default-directory</code> is your home directory which I think makes most sense for when you are launching from a shortcut.<br />
Drop the shortcut onto your start menu. You should now be able to launch emacs from the start menu, or by pressing the Windows key and typing emacs.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://emacstragic.net/emacs/installing-emacs-in-cygwin/feed/</wfw:commentRss>
			<slash:comments>2</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">714</post-id>	</item>
		<item>
		<title>Flipping the mouse wheel scroll direction in Windows 7</title>
		<link>https://emacstragic.net/general/flipping-the-mouse-wheel-scroll-direction-in-windows-7/</link>
					<comments>https://emacstragic.net/general/flipping-the-mouse-wheel-scroll-direction-in-windows-7/#respond</comments>
		
		<dc:creator><![CDATA[Jason]]></dc:creator>
		<pubDate>Thu, 02 Aug 2012 01:46:52 +0000</pubDate>
				<category><![CDATA[General]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[lion]]></category>
		<category><![CDATA[mouse]]></category>
		<category><![CDATA[osx]]></category>
		<category><![CDATA[scroll]]></category>
		<category><![CDATA[wheel]]></category>
		<category><![CDATA[windows]]></category>
		<guid isPermaLink="false">http://emacstragic.net/?p=279</guid>

					<description><![CDATA[I have been getting very confused between the mouse wheel scroll directions in Windows 7 and Mac OS X Lion. As I consider OS X to be the future, I decided to try and flip the mouse wheel scroll direction in Windows. Turns out there is a registry setting to do this: HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Enum\HID\????\????\Device Parameters Set [&#8230;]]]></description>
										<content:encoded><![CDATA[<p>I have been getting very confused between the mouse wheel scroll directions in Windows 7 and Mac OS X Lion. As I consider OS X to be the future, I decided to try and flip the mouse wheel scroll direction in Windows.<br />
Turns out there is a registry setting to do this: <code>HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Enum\HID\????\????\Device Parameters</code><br />
Set the value of FlipFlopWheel to 1<br />
You need to find the USB enumeration values (shown above as ????). You can get those by going to the Mouse Control Panel, click on the hardware tab and click Properties. then in the Details tab of the HID-compliant mouse Properties window, look at the Device Instance Path property. It will be something like: <code>HID\VID_046D&PID_C049&MI_00\7&25DD4DC&0&0000<br />
</code><br />
This is <em>quite</em> well documented on <a href="http://superuser.com/questions/310681/inverting-direction-of-mouse-scroll-wheel">superuser.com</a> and there is even a link to a little .exe that automates the whole process for you. Although I have not tried it so I can&#8217;t vouch for it. </p>
]]></content:encoded>
					
					<wfw:commentRss>https://emacstragic.net/general/flipping-the-mouse-wheel-scroll-direction-in-windows-7/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">279</post-id>	</item>
		<item>
		<title>lookup smb windows hostnames from the command prompt in linux</title>
		<link>https://emacstragic.net/general/lookup-smb-windows-hostnames-from-the-command-prompt-in-linux/</link>
					<comments>https://emacstragic.net/general/lookup-smb-windows-hostnames-from-the-command-prompt-in-linux/#respond</comments>
		
		<dc:creator><![CDATA[Jason]]></dc:creator>
		<pubDate>Sun, 18 Jun 2006 06:59:57 +0000</pubDate>
				<category><![CDATA[General]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Windows]]></category>
		<guid isPermaLink="false">http://flip.dyndns.org/wordpress/?p=90</guid>

					<description><![CDATA[There is this cool way of being able to lookup windows hostnames in linux. Ie so you can ping mywindowshostname and it will just find the ip and ping it. All you have to do is edit the line in /etc/nsswitch.conf: from hosts: files dns to hosts: files dns wins and install the winbind service. [&#8230;]]]></description>
										<content:encoded><![CDATA[<p>There is this cool way of being able to lookup windows hostnames in linux. Ie so you can ping mywindowshostname and it will just find the ip and ping it.<br />
All you have to do is edit the line in /etc/nsswitch.conf:<br />
from<br />
hosts: files dns<br />
to<br />
hosts: files dns wins<br />
and install the winbind service. Thats all there is too it.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://emacstragic.net/general/lookup-smb-windows-hostnames-from-the-command-prompt-in-linux/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">90</post-id>	</item>
	</channel>
</rss>
