Opened 13 years ago

Last modified 11 years ago

#27782 new defect

problems with ecb

Reported by: pyrios@… Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version: 1.9.2
Keywords: emacs xemacs Cc: drkp (Dan Ports), ryandesign (Ryan Carsten Schmidt), bgschaid@…
Port: ecb

Description (last modified by ryandesign (Ryan Carsten Schmidt))

  1. ecb-images permissions

After installing ecb and starting emacs, I got this error

Opening directory: Permission denied, /opt/local/share/emacs/site-lisp/ecb-images

The permissions for this directory and all descendents are set to 700

sudo ls -ld /opt/local/share/emacs/site-lisp/ecb-images
drwx------  6 root  admin  204 Nov  9 14:29 /opt/local/share/emacs/site-lisp/ecb-images
  1. cedet dependency

Following the instructions to start ecb, I got an error message that the desired version of cedet was unavailable. It looks like macports is installing a newer version of cedet-devel that ecb can not work with.

(require 'ecb)
M-x ecb-active

ECB 2.40 - Error: ECB can only be used with cedet [1.0pre6, 1.0.9]! Please install it and restart Emacs!
$ port deps ecb
Full Name: ecb @2.40_0
Library Dependencies: emacs, cedet-devel
$ port search cedet-devel
cedet-devel @1.0pre7 (editors)
    Infrastructure for parser based text analysis in Emacs

Change History (8)

comment:1 Changed 13 years ago by pyrios@…

Cc: pyrios@… added

Cc Me!

comment:2 Changed 13 years ago by ryandesign (Ryan Carsten Schmidt)

Cc: pyrios@… removed
Description: modified (diff)

comment:3 Changed 13 years ago by pyrios@…

In regards to the cedet dependency.

The error message about the version is a bit of a distraction. There is some extra configuration required for cedet and ecb to work. The following commands need to be executed to be able to use cedet and ecb.

(load-file "/opt/local/share/emacs/site-lisp/common/cedet.el")
(require 'ecb)

I put these in my ~/.emacs file. If there is a site wide file that can get updated when the ports are installed, that would be preferable.

comment:4 Changed 13 years ago by drkp (Dan Ports)

Cc: dports@… added

Cc Me!

comment:5 in reply to:  description Changed 13 years ago by ryandesign (Ryan Carsten Schmidt)

Cc: ryandesign@… added

Replying to pyrios@…:

Opening directory: Permission denied, /opt/local/share/emacs/site-lisp/ecb-images

Fixed in r74657.

comment:6 in reply to:  3 ; Changed 13 years ago by ryandesign (Ryan Carsten Schmidt)

Replying to pyrios@…:

The error message about the version is a bit of a distraction. There is some extra configuration required for cedet and ecb to work. The following commands need to be executed to be able to use cedet and ecb.

(load-file "/opt/local/share/emacs/site-lisp/common/cedet.el")
(require 'ecb)

I put these in my ~/.emacs file. If there is a site wide file that can get updated when the ports are installed, that would be preferable.

I've never used emacs, cedet or ecb so I don't know what to do with this. If you figure out what needs to be changed, let us know; if you can create a patch for the portfile that fixes the problem, and attach it to this ticket, that's even better.

comment:7 in reply to:  6 Changed 13 years ago by drkp (Dan Ports)

Replying to ryandesign@…:

Replying to pyrios@…:

The error message about the version is a bit of a distraction. There is some extra configuration required for cedet and ecb to work. The following commands need to be executed to be able to use cedet and ecb.

(load-file "/opt/local/share/emacs/site-lisp/common/cedet.el")
(require 'ecb)

I put these in my ~/.emacs file. If there is a site wide file that can get updated when the ports are installed, that would be preferable.

I've never used emacs, cedet or ecb so I don't know what to do with this. If you figure out what needs to be changed, let us know; if you can create a patch for the portfile that fixes the problem, and attach it to this ticket, that's even better.

This is currently (if regrettably) the expected behavior for elisp packages: we install and (usually) byte-compile them but don't add anything to load them at runtime. I'd like to change this at some point and set up a systemwide site-start.el file that does the right thing to load each package, but it's complicated a bit by the fact that there are multiple available versions of emacs (emacs, emacs22, emacs-app, emacs-app-devel), some of which can be installed simultaneously.

comment:8 Changed 11 years ago by bgschaid@…

Cc: bgschaid@… added

Cc Me!

Note: See TracTickets for help on using tickets.