Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 29702 - app-emacs/lua-mode (new ebuild)
Summary: app-emacs/lua-mode (new ebuild)
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Matthew Kennedy (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-09-26 14:53 UTC by Jeremy Maitin-Shepard
Modified: 2003-10-05 23:54 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
lua-mode-1.26.ebuild (lua-mode-1.26.ebuild,688 bytes, text/plain)
2003-09-26 14:53 UTC, Jeremy Maitin-Shepard
Details
70lua-mode-gentoo.el (70lua-mode-gentoo.el,236 bytes, text/plain)
2003-09-26 14:54 UTC, Jeremy Maitin-Shepard
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jeremy Maitin-Shepard 2003-09-26 14:53:05 UTC
This is an ebuild for an emacs lua mode.  Like the folding-mode ebuild, this ebuild only includes a mirror://gentoo/${P}.tar.gz SRC_URI, assuming that a tarball with a ${P} directory containing lua-mode.el is added to the mirrors.  The emacs lisp file is currently available only on a lua users group wiki, at the following URL:
http://lua-users.org/files/wiki_insecure/editors/testing/lua-mode.el

There is a slightly older, less functional, better tested lua-mode.el file also available on the wiki, but unfortunately both files have the same version.  I haven't had any problems with this testing version though, and since it will be ~x86 anyway, it doesn't seem like a problem.

Both this testing version and the more stable version have the interesting problem that without modification, they won't byte compile, although they do work.  (They give errors when byte compiling.)  The errors are caused by the extensive use of eval-when-compile.  The simple solution employed by this ebuild is to use a simple sed expression to replace all the eval-when-compile expressions with progn.  This seems better than a patch because it will work on future versions as well, although actually testing it on future versions would be necessary in any case.
Comment 1 Jeremy Maitin-Shepard 2003-09-26 14:53:46 UTC
Created attachment 18378 [details]
lua-mode-1.26.ebuild
Comment 2 Jeremy Maitin-Shepard 2003-09-26 14:54:17 UTC
Created attachment 18379 [details]
70lua-mode-gentoo.el
Comment 3 Matthew Kennedy (RETIRED) gentoo-dev 2003-10-05 23:54:27 UTC
hi Jeremy. added to portage.