![]() |
Announcing port of emacs for maemo
Hello everybody,
Some time ago I announced having ported emacs for maemo. I created an account on garage to host the file from there, alas, it seems there is a 10 Mb upload limit. Emacs is a 30 Mb package!! I wrote feedback about the problem, but in the meantime I make the download available from my own server. Here is the link: http://troubleshooter.is-a-geek.com/emacs_22.1-1_armel.deb It should be installable from the application manager. If that doesn't work for you, try dpkg -i path/to/file For pre-0S2008, you'll need xterm installed on your device. Thank you for posting feedback/problems on this thread. Ulysses |
Re: Announcing port of emacs for maemo
|
Re: Announcing port of emacs for maemo
Quote:
And I was going to come here and post something about the tablets only having 256 MB flash, which comes xxx MB full from reflashing, so you'd need an SD card to run it. But reality beat me to it -- the package is 3 times the garage limit! :D |
Re: Announcing port of emacs for maemo
Quote:
http://en.wikipedia.org/wiki/Editor_war |
Re: Announcing port of emacs for maemo
Very true.
The reason I haven't bothered flashing my Nokia N800 to the new IT OS2008 is because my OS is... emacs. It's my editor, my mailer, my pdf formater (tex), my dictionary (dict), my spell-checker (aspell, which I also cross-compiled), and my lisp machine. Of course I use an external keyboard. In short, to me the Nokia N800 is just a debian linux with all I need in an Xterm. Good luck everybody. Daniel |
Re: Announcing port of emacs for maemo
lol ...
....... |
Re: Announcing port of emacs for maemo
Forgot to mention:
After installing the package, open a terminal and type: emacs -nw That's it. Enjoy. Ulysses |
Re: Announcing port of emacs for maemo
Hi everybody,
A user reported the following error when trying to run emacs: "libXaw.so.7 not found". I'd like to know who else has this problem. Thanks for your feedback. Furthermore, at this early stage of deployment, I decided to provide another package for testing purposes. I hope user feedback will help me decide which is going to be the better one. In short, for now you can try GNU emacs cross-compiled with X support, and without. Now, I know I previously wrote in the description of the existing package that is was emacs with no X, that was misleading because what I meant whas that it is not Xemacs (a fork of emacs), but GNU emacs (which has X support as well). The size of both packages are roughly the same despite what you might think. The link of GNU emacs with X support (as previously posted) is: http://troubleshooter.is-a-geek.com/....1-1_armel.deb The link of GNU emacs without X support (new) is: http://troubleshooter.is-a-geek.com/....1-1_armel.deb Thanks in advance, Ulysses PS: Feedback needed. |
Re: Announcing port of emacs for maemo
I also got the "libXaw.so.7 not found" error.
So I tried the no X package and it runs but seems to need a terminfo database which is not installed on the N800. Any idea where to get terminfo from? Thanks Julian |
Re: Announcing port of emacs for maemo
Please install ncurses-base.
Would you be kind enough to report if this fixes the problem, thanks. I'll add ncurses-base as a dependency in the package definition. |
Re: Announcing port of emacs for maemo
I installed ncurses-base and then installed the first emacs deb you posted and still got the error about libXaw.
|
Re: Announcing port of emacs for maemo
Then I did:
apt-get install libxaw7 In total it installed: lilbxmu6, libxpm4, libxaw7 An it ran!! |
Re: Announcing port of emacs for maemo
I can't list directories but I can access files.
C-x C-d ~/ Listing directory failed but `access-file` worked C-x C-f ~/test.txt Opens a buffer and I can save the buffer in the file and open it again in another session. |
Re: Announcing port of emacs for maemo
Excellent!
We're progressing nicely. In short, we have two packages now. Both can run emacs in a terminal, but only the one with X support will run emacs in a X window (not hildonized). So far, the dependencies for the non X version seem to be: osso-xterm, ncurses-base The dependencies for the X version seem to be: osso-xterm, ncurses-base, lilbxmu6, libxpm4, libxaw7 I hope that more people will test the packages and report feeback. Later, we can make both packages available to the public, or ditch the one with the X support (I prefer to work in a terminal than in a non-hildonized X window, but hey, that's just me). Hgtablet, I can confirm that the dired mode does not work (C-x C-d) here neither. If someone wants to volunteer to inquire and fix this, he's welcome. I did a straight cross-compilation, I didn't mess with the source, and probably won't neither. Here are the links again: With X support: http://troubleshooter.is-a-geek.com/....1-1_armel.deb With no X support: http://troubleshooter.is-a-geek.com/....1-1_armel.deb Good luck. Ulysses |
Re: Announcing port of emacs for maemo
Hello everybody,
You might remember that I mentioned that garage.maemo.org approved this emacs port, but that I have been unable to upload the package because of the file size limit policy applied by garage. Well, it's been a week since I wrote feedback and I didn't hear anything from them. So, if anyone from garage is reading this, can you please provide me with a solution, or maybe an email address of someone who is in charge so that we can try to solve this. Thanks in advance, Ulysses |
Re: Announcing port of emacs for maemo
After installing ncurses-base the no-X version runs OK.
You can get dired to work by adding the following to your .emacs: (setq dired-use-ls-dired nil) This stops emacs using the --dired option on the ls command. --dired isn't supported by busybox ls. Julian |
Re: Announcing port of emacs for maemo
Brilliant, Julian, thanks!
|
Re: Announcing port of emacs for maemo
Setting the dired-use-ls-dired to nil didn't work for me.
I see that that on the zaurus they had the same problem, and that they are setting that variable to nil, but only after modifying site-start.el, which here isn't. Could that be it? |
Re: Announcing port of emacs for maemo
Ulysses,
Maybe you could separate out the .el.gz files to another package (in mainstream debian those are in emacs22-el)? That would reduce the required space somewhat, and the vast majority probably wouldn't need those files (just the .elc files will do fine). |
Re: Announcing port of emacs for maemo
Good suggestion. I'll definitely consider this. Thanks.
|
Re: Announcing port of emacs for maemo
Strange, the dired-use-ls-dired set to nil is working for me. Are you sure that you are doing ^Xd (dired) and not ^X^D (list-directory)? list-directory is still not working, I think you need to set list-directory-brief-switches to get that to work.
|
Re: Announcing port of emacs for maemo
You are right, Julian, I was doing C-x C-d, not C-x d.
C-x d works like advertised after setting the said variable. Maybe you can enlighten us about the list-directory-brief-switches bit? When this project gets its homepage, we should compile that information for the benefit of the emacs using maemo community... Still not a word from garage.maemo.org people.... Later, Ulysses |
Re: Announcing port of emacs for maemo
Hey Ulysses,
I suspect they were a little resource constrained, take a look here: http://maemo.org/news/announcements/...els_breet.html Niels may be able to help now. |
Re: Announcing port of emacs for maemo
Perfect, hgtablet, I'll take contact with him. thanks.
|
Re: Announcing port of emacs for maemo
The following tip will be compiled on the homepage of the project.
Many GNU applications store their documentation in /usr/share/info. They are called info files and are gzipped. However, when you install an application in maemo with Application Manager, a post-install script will delete all files found in /usr/share/info. The rationale is to save space, but that's not necessarily what you want, especially if you want to use info functionality (Meta-x info) in the emacs port that you just installed. The solution is easy, edit the post-install script to skip /usr/share/info when doing its cleanup. (I don't have the name of the script in memory, anyone cares to refresh it? Thanks.) Ideally, you will do this before you install emacs, but if you haven't, you don't have to de-install and re-install, just copy the info files you're interested in from a desktop computer to /usr/share/info on the device. Ok, now you're in emacs and you press Meta-X info, and you see a list of info books you'd like to browse, you press on one, say Coreutils, and what you get is: Opening input file: error uncompressing coreutils.info.gz, /usr/share/info/core\ utils.info.gz What happens is that the gzip that ships with busybox doesn't support a switch that emacs uses when it tries to decompress the info files. Solution? Install the expected GNU gzip on your device (I will ready the package soon), and put it in your PATH before anything else in your .ashrc or your .profile, like this: export PATH=/usr/bin/gzip:$PATH When you now start emacs in the terminal, and browse the info files, it will use the gzip that it needs. Hope this helps. Ulysses |
Re: Announcing port of emacs for maemo
Hi,
Concerning that new person appointed by Nokia to help the maemo community, does anybody know what the best way would be to contact him? His name is Niels Breet, but I can't find an email address. Thanks, Daniel |
Re: Announcing port of emacs for maemo
Ulysses, the way to get list-directory (C-x C-d) to work is to add
(setq list-directory-brief-switches "-C") This gets rid of the -F option which bysybox ls does not support. Julian |
Re: Announcing port of emacs for maemo
|
Re: Announcing port of emacs for maemo
Thanks Julian.
Thanks hgtablet. This kind of rounds it up for now. C-u, Ulysses Ulysses |
Re: Announcing port of emacs for maemo
How much space does the installed package take up?
Is there a way to install to another path than the internal flash ram? Cheers, Rich |
Re: Announcing port of emacs for maemo
The standard GNU Emacs takes up around 78 Mb of disk space.
My port of emacs is the standard GNU emacs, so you get the same amount of disk space used. However, you can install applications as well as part of the OS itself on external media, but that involves some more hacking. Some people on these forums are very knowledgeable on this topic. I'm not. I just know that some people boot from external media. Maybe someone can step in and tell us what is possible precisely. Thanks in advance. Ulysses |
Re: Announcing port of emacs for maemo
Hello everybody,
Given the size taken up by emacs on the device, naturally, there has been some concern. Someone suggested to get rid of certain not-often files, another person inquired about installing the application on external media. After giving this question a thought, I decided to provide the community with the full unabridged version of emacs. This way, we can work in any direction from that ideal point. Some people will want to keep everything on their device, others will reduce that size or adopt different strategies. Please post on this thread the solutions you found, I will compile the information and make it available on the homepage of the project. Contributors will be fully credited. If you write scripts to clean up the installation, you are welcome to post them as well. Good luck, Ulysses |
Re: Announcing port of emacs for maemo
Hello everybody,
I am happy to announce that the official homepage for the emacs port is up and running. http://danielsz.freeshell.org/code/m...acs-for-maemo/ All the juicy information on this thread has been compiled and edited on the homepage. Additionally, you will find the GNU gzip package needed to browse info files with emacs. Thanks to everybody who contributed. Ulysses |
Re: Announcing port of emacs for maemo
Those who voiced concerns about the size of the emacs installation on their devices will be happy to know that a simple solution exists. Someone has posted his findings on the new homepage of the project :
http://danielsz.freeshell.org/code/mine/emacs-for-maemo To sum up his findings, simply moving /usr/share/emacs to external media (/media/mmc2) and then symlinking to it works! Good luck, Ulysses |
Re: Announcing port of emacs for maemo
Quote:
The call to gzip can be customized in emacs M-x customize-apropos jka-comp-compression then edit the compress arguments for gzip, that is remove the parameter "-q" Cheers |
Re: Announcing port of emacs for maemo
Quote:
Thanks, Amy |
Re: Announcing port of emacs for maemo
I've had no trouble downloading the packages. I put copies up at:
http://vh213601.truman.edu/~belanger....1-1_armel.deb and http://vh213601.truman.edu/~belanger....1-1_armel.deb I'll leave them there for a while. Jay |
Re: Announcing port of emacs for maemo
What's new on the emacs front?
1, Spell check A GNU aspell package for maemo is now available. It's barebones, but it works. If someone has time on his hands and wants to contribute, he'll be welcome to make some friendlier packages. For now, aspell installs as root from the terminal, and you have to manually copy the dictionary files from an existing emacs installation. 2, The project migrates its downloads from a private server to garage.maemo.org. The time being, both are available. Official homepage stays the same. http://danielsz.freeshell.org/code/m...acs-for-maemo/ Happy emacsing, Ulysses |
Re: Announcing port of emacs for maemo
1 Attachment(s)
I've got the gtk interface to run. Not much difference from X version though.No hildon keyboard but font looks better than X version and menus are "sticky".
Soon as I get a hex editor, I'll release the modified debs. |
Re: Announcing port of emacs for maemo
Ok, it's done.
You need Ulysses's emacs port to run this. X version or non x is up to you. Bear in mind that this is an X version with some GTK enhancements. This wasn't compiled by me. I just modified the deb file. What I did though is sort it out so it works with Ulysses's port (changing directory paths), fixing the menu item and compiling the libgif dependency. I also cut down the size and I made it not write anything to the emacs directory incase you moved it onto a fat partition (i.e me). Don't worry, you aren't missing anything, it just writes a useless doc file. Advantage over X version: -Looks better (font wise) - Menus are bigger and easier (and hildon style) Disadvantage: - Open dialog is a bit big but I read you can customise it. http://i220.photobucket.com/albums/d...enshot00-1.png Install Ulysses's port and install these debs with dpkg -i. http://www.mediafire.com/?c3jtddbdiy1 http://www.mediafire.com/?mnmf1dt3mjb Note: Aspell with en dictionaries built in: http://www.internettablettalk.com/fo...3&postcount=41 :) |
All times are GMT. The time now is 15:59. |
vBulletin® Version 3.8.8