I’ve been somewhat successfully running Emacs in a QNX6 Photon
terminal window for a while now. It works well enough with the
exception of two problems. The color syntax highlighting colors are
all messed up (not the way I configured them in my .emacs file) and
apparently can’t be changed. Strange colors are annoying but they’re
not a show stopper. The problem that really kills me is that there
are certain key combinations like CTRL-SPACE (normally runs
“set-mark-command”), ALT-SPACE (normally runs “just_one_space” and
ALT-BACKSPACE (normally runs “backward-kill-word”) that don’t work
under QNX/Photon.
I think this is a Photon limitation rather than a problem with the QNX
Emacs port, but it makes any serious editing painful. Remapping those
(and other) affected Emacs commands to different key combinations is
an option, but I use Emacs on several Linux and Windows systems and
they all work fine as is. My fingers are trained to use the default
Emacs key-combos and I’d like to stick to them.
I presume that there will be no change in QNX anytime soon that will
suddenly make these key combinations valid but I thought I could do my
QNX development from my Linux machine by taking advantage of Emacs’
ability to access files remotely via FTP.
For the most part, editing a remote file is just like editing a local
file except you occasionally need to enter the password for your
remote account and saves take a bit longer since the edited file is
actually being transmitted back to the remote system rather than saved
locally on disk. Unfortunately, there seems to be something about the
QNX FTP server that Emacs doesn’t like and I think it is related to
the LIST command that Emacs generates when it first establishes a
connection with the FTP server. I’ve found very little information on
the web about this problem but I gather it’s not uncommon, affects
Berkeley derived FTP servers, and is caused by non-standard options
being sent by Emacs. I don’t know how to solve it. I don’t have (and
haven’t yet found) the Lisp source code to the ange-ftp package (the
package Emacs uses to do its FTP magic) and the package itself no
longer seems to be supported… even though it’s still part of a
standard Emacs install.
Even though the root of the problem seems to be on the Emacs side
(assuming what I’ve read is accurate), I’d like to find a solution
that involves a change on the QNX side so that all the Emacs’s on all
my systems around here could suddenly get to my QNX files without all
having to be modified first. One option that comes to mind is to
replace the standard QNX FTP server with an alternate that does
understand whatever screwy LIST command Emacs is generating (I gather
that although non-standard, the behavior Emacs is looking for is
common). Does anyone have any suggestions for alternate FTP servers?
Anyway, if anyone else has had any success getting Emacs to access
remote files on a QNX system via FTP, I’d sure love to hear how you
did it!
Kind Regards,
Charlie Hubbard