Re: [ANN][SHR][Debian] New Emacs interface for FSO

2010-08-19 Thread Paul Fertser
Hi,

Michael, let me take this opportunity to thank you for all the
wonderful opportunities opened by the D-Bus integration in Emacs, it
really rocks :)

On Wed, Aug 18, 2010 at 10:24:05PM +0200, Michael Albinus wrote:
  Unfortunately, it’s not currently possible for one emacs
  process to use both local and remote dbus message
  buses due to bindings’ limitation.
 
 What do you mean by this? Is it a restriction we could throw away in
 Emacs?

Yes, to the best of my understanding to leverage this restriction one
needs to modify dbusbind.c. Currently the emacs bindings accept only
:session or :system for the bus name and use dbus_bus_get() to get one
of them. It should support also arbitrary strings and call
dbus_connection_open() instead (in xd_initialize()). One should also
not forget to call dbus_connection_unref() after he's done (according to
http://dbus.freedesktop.org/doc/api/html/group__DBusConnection.html).
I also suspect that dbus_bus_get has an interesting undesired
side-effect: it'll kill the app if connection drops.  Not exactly what
you want to be done with your emacs.

OTOH, i'm not sure this usecase is worth caring about. At least i know
i'm the only user of fso.el and i do not really need that :/
 
-- 
Be free, use free (http://www.gnu.org/philosophy/free-sw.html) software!
mailto:fercer...@gmail.com

___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


Re: [ANN][SHR][Debian] New Emacs interface for FSO

2010-05-15 Thread Michael 'Mickey' Lauer
Paul, that's purely amazing.

iPhoners and Androids, do that! :D

Could you provide some screenshots? I'd love to add this to the
forthcoming section of 'Show Cases' on the new FSO website.

Great work!

-- 
:M:


___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


[ANN][SHR][Debian] New Emacs interface for FSO

2010-05-14 Thread Paul Fertser
Hi,

http://wiki.github.com/paulfertser/fso-el/
M-x fso

I'm pleased to announce here my little pet project, something that is
my only phone UI for more than two weeks already and is almost what i
dreamed of when i was ordering a FreeRunner: it's a
console-compatible, flexible and easily extensible, keyboard (and
mouse) friendly Emacs module that enables me to use my cellphone both
locally and remotely via ssh with ease.

For those who haven't tried to use Emacs on FR yet it might seem like
a strange idea: who could have guessed a virtual keyboard is good
enough for emacsing? Well, i've tried that and in fact it works
decently. I used Emacs on device for IRCing and IMing, for occassional
shell commands, for reading manuals and even writing some code. It
works and it rocks, at least i couldn't find anything that felt more
comfortable ;) Furthermore, emacs allows you to have a consistent
experience: you come home, plug your FR to USB, ssh in, do
``emacsclient -c'' (which is another great feature of emacs 23:
multitty) and here you go, having exactly the same environment but
with a larger screen and a real keyboard.

Emacs as a programming environment is also nice and fun, no wonder
there're so many extension modules for it written over the
years. Though elisp might feel constrained and ancient to a modern
programmer, it's still quite enjoyable.

So, enough of Emacs praising, now back to the subject. :) It's already
useable, among the basic functionality only contacts editing is
missing. Please do not be harsh about the code, as this module is my
first elisp (and first FP (though Haskell adpets will disagree elisp
is FP ;) ) experience as well).

Special thanks go to John Sullivan who has written the first emacs
interface for FSO, Michael 'Mickey' Lauer, the main FSO framework
architect and Joerg Reisenweber, the hardware wizard, without his
buzzfix i wouldn't be able to use the device at all.

Of course, i'm open for suggestions, bug-reports, feature-requests,
patches etc., feel free to contact me via e-mail or irc at
#openmoko-cdevel. 


Here goes the copy of the project's main page for your convenience:

This project is an attempt to create an Emacs interface for the most
typical GSM telephony-related usecases: calling, text messages,
contacts management and everything that makes smartphone usage more
productive.

The objectives:

  • make the UI usable directly on the device with touchscreen
  • make the UI usable via ssh
  • integrate well with other Emacs applications (please drop me a
line with explanations what exactly do you want from 
BBDB - opimd integration, i also need feedback about Linphone
integration: do you need it, whether the linphone mode
works for you at all and what modifications are required)
  • provide user with reasonable customisation options

Requirements:

  • FreeSmartphone.org middleware running on host (currently tested
only with fsogsmd, framework version cfc0a5c3 Apr 21,
cornucopia version c742460d Apr 21, please take into account i’m
following FSO HEAD closely so you can expect to find a
compatible version in SHR unstable, less so in SHR testing or
Debian)
  • Emacs 23 (with dbus support) (available both from SHR feeds and
Debian repositories)

Download options:

  • git clone git://github.com/paulfertser/fso-el.git
or
  • http://github.com/paulfertser/fso-el/raw/HEAD/fso.el

Hints:

  • configuration options can be edited with M-x customize-mode RET
  • xterm-mouse-mode enables mouse clicks for the text-mode frames
  • you can open another frame (either text-mode or X11) with
emacsclient -c thanks to Emacs23’s multitty support
  • you can have FSO running on device and fso.el running in host’s
Emacs with dbus-daemon-proxy[1] (thanks ZaPPaS for
testing). Unfortunately, it’s not currently possible for one emacs
process to use both local and remote dbus message
buses due to bindings’ limitation.

General Emacs on smartphone hints:

  • Emacs takes very long to start if you have no network connectivity
and non-empty /etc/resolv.conf
  • ido-mode saves quite some typing when switching buffers and
opening files
  • in customisation options for erc disable the fill module, it’ll
save you some precious screen estate, timestamps should
either be disabled or Erc Insert Timestamp Function set to Left
(alternatively, activate Hide Timestamps and Echo
Timestamps and you’ll be able to see the timestamp of any message
by moving point to it)
  • BitlBee is a nice IRC-IM (Jabber/XMPP and others supported by
libpurple) free gateway software and service, you might
like to use it for your IM’ing needs.

Please send your feedback to:
Smartphones-userland mailing list with Cc to “Paul Fertser 
fercer...@gmail.com”

Enjoy and happy hacking! :)

[1] 
http://blog.shr-project.org/2010/05/howto-develop-and-debug-the-shr-phone-stack-on-your-desktop.html
-- 
Be free, use free