First Last Prev Next    No search results available      Search page      Enter new bug
Bug#: 182636
Alias:
Product:
Component:
Status: RESOLVED
Resolution: FIXED
Assigned To: GNU Emacs Team <emacs@gentoo.org>
Hardware:
OS:
Version:
Priority:
Severity:
Reporter: John R. Graham <john_r_graham@mindspring.com>
Add CC:
CC:
URL:
Summary:
Status Whiteboard:
Keywords:

Filename Description Type Creator Created Size Actions
emacs-syntax.patch Patch implements site lisp file install for init script syntax highlighting. patch John R. Graham 2007-06-20 03:17 0000 2.21 KB Details | Diff
50initscript-gentoo.el Site lisp file. Should be placed in baselayout/files directory. text/plain John R. Graham 2007-06-20 03:18 0000 231 bytes Details
Create a New Attachment (proposed patch, testcase, etc.) View All

Bug 182636 depends on: Show dependency tree
Show dependency graph
Bug 182636 blocks:
Votes: 0    Show votes for this bug    Vote for this bug

Additional Comments: (this is where you put emerge --info)







View Bug Activity   |   Format For Printing   |   XML   |   Clone This Bug


Description:   Opened: 2007-06-20 03:14 0000
Small change to the baselayout ebuild to register a site-lisp file so that
emacs will syntax highlight init scripts without manual intervention.  The
site-lisp file is installed only if the global emacs USE flag is enabled. 
Without it, there is no change to what the baselayout ebuild does or looks
like.

This change depends on modifications I've made to the elisp-common eclass
because the elisp-site-regen function was just too verbose and, moreover,
repeated its
verbose instructions *twice* under normal usage.  See bug #182633.

The attached patch is against CVS revision 1.2 of baselayout-1.12.10-r4.ebuild.

------- Comment #1 From John R. Graham 2007-06-20 03:17:37 0000 -------
Created an attachment (id=122564) [edit]
Patch implements site lisp file install for init script syntax highlighting.

------- Comment #2 From John R. Graham 2007-06-20 03:18:40 0000 -------
Created an attachment (id=122565) [edit]
Site lisp file.  Should be placed in baselayout/files directory.

------- Comment #3 From John R. Graham 2007-06-20 03:21:37 0000 -------
Mark this bug as depending on a small enhancement to elisp-common.eclass,
submitted in another bug.

------- Comment #4 From Ulrich Müller 2007-06-20 05:10:08 0000 -------
Your site init file is a good idea, but I believe the baselayout team will not
be happy if they have to depend on Emacs.

We may find another place for it, maybe in app-emacs/ebuild-mode. (And probably
it is anyway time to rename that package to app-emacs/gentoo-syntax since it is
no longer limited to ebuilds.)

(In reply to comment #1)
> Created an attachment (id=122564) [edit]
> Patch implements site lisp file install for init script syntax highlighting.

+pkg_postrm() {
+       # Regenerate emacs site-lisp file for init script syntax highlighting.
+       has_version virtual/emacs && elisp-site-regen silent
+}

You should use "use emacs" instead of "has_version virtual/emacs" as condition
here.

------- Comment #5 From Ulrich Müller 2007-06-20 10:10:52 0000 -------
base-system: Please comment if it is an option for you to add this to
baselayout.

------- Comment #6 From John R. Graham 2007-06-20 11:28:56 0000 -------
(In reply to comment #4)
> Your site init file is a good idea, but I believe the baselayout team will not
> be happy if they have to depend on Emacs.

I actually thought that could be the case.  I looked at ebuild-mode (I use it)
and got hung up on the name and description.  I would fine with putting it
there and would be happy to submit the (admittedly simple) patches.  I like the
name change, too. :)

>You should use "use emacs" instead of "has_version virtual/emacs" as condition
>here.
The way I did it, using "has_version virtual/emacs", although counter to the
recommendation in the elisp-common eclass, by observation seemed to be a
standard method to avoid errors under the corner case that emacs wasn't
installed.  I'll fix it. :)

------- Comment #7 From SpanKY 2007-06-21 04:18:37 0000 -------
yeah, these should live in an emacs package, not baselayout ...

------- Comment #8 From Ulrich Müller 2007-06-21 06:16:40 0000 -------
I've added your code (with a minor modification, using "add-to-list" instead of
"append") to the site file of app-emacs/ebuild-mode.

If we rename that package is a different issue, so closing this bug.

------- Comment #9 From Ulrich Müller 2007-06-21 21:07:06 0000 -------
(In reply to comment #8)
> If we rename that package is a different issue, so closing this bug.

FYI: Package is moved to app-emacs/gentoo-syntax.

First Last Prev Next    No search results available      Search page      Enter new bug