Bug 196145 - lang/erlang: Enable Emacs Erlang mode as optional feature
Summary: lang/erlang: Enable Emacs Erlang mode as optional feature
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: Jimmy Olgeni
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-12-19 21:45 UTC by m_josenhans
Modified: 2015-04-12 21:12 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description m_josenhans 2014-12-19 21:45:00 UTC
Accoding to this description: 
http://www.erlang.org/doc/apps/tools/erlang_mode_chapter.html    

in order to enable the erlang mode, the following directories have to be provided by the ports. 

"/usr/local/otp/lib/tools-<ToolsVer>/emacs" or /usr/local/otp/lib/tools/emacs"
"/usr/local/otp")
"/usr/local/otp/bin"

Please note, that the "-<ToolsVer>" does no longer exist in current releases.

Currently the needed directory content is not provided by the ports. Maybe the .emacs file should also be created. 

Similarly as #195403, this should be an optional feature for the desktop and might not be necessary at a server. Thus it should belong into a subpackage too.

For test purposes I downloaded OTP 17.4, installled it to "/usr/local", created the .emacs file and adapted the path by removing the version number. The emacs erlang mode worked. 

--------------------------------------------------------------------------------
The following issues should be considered:
1) In freebsd it is possible to install multiple Erlang releases at the same time. Thus should we include a version in the path?
2a) Should the .emacs file created?
2b) Should the .emacs file be automatically adapted to the currently used erlang version?
2c) Should the .emacs file be automatically adapted to the highest currently install erlang version? E.g. using a link from /usr/local/otp/lib/tools-<ToolsVer>/emacs to /usr/local/otp/lib/tools/emacs?
3) Should the .emacs file configuration be kept to the user?
Comment 1 Mark Linimon freebsd_committer freebsd_triage 2014-12-19 23:23:40 UTC
To which port does this PR apply?
Comment 2 m_josenhans 2014-12-20 08:19:08 UTC
Same as #195403:
lang/erlang
Comment 3 Mark Linimon freebsd_committer freebsd_triage 2014-12-20 16:33:08 UTC
Fill in Summary and assign.
Comment 4 m_josenhans 2015-03-01 18:28:38 UTC
This is solved. See #195403. I think we can close it now.
Comment 5 Jimmy Olgeni freebsd_committer freebsd_triage 2015-04-12 21:12:43 UTC
Closing PR.