From 31952113626c3aab63e1771cbaff6818700f4cbb Mon Sep 17 00:00:00 2001 From: Drew Hess Date: Thu, 30 Sep 2010 19:44:40 -0700 Subject: Emacs - Install info files to separate folder By default, Emacs installs its info files in /usr/local/share/info. This works fine until you try to install an updated version of an elisp package that is bundled with Emacs (e.g., org-mode), at which point the updated package will overwrite the info file that came bundled with Emacs. This is not ideal, but it works, since Emacs will see the updated info file -- that is, until you decide to uninstall the elisp package (removing the info file for the package altogether), or you rebuild Emacs (overwriting the new package's info file with the stale one that comes bundled with Emacs). This patch makes the Emacs formula install Emacs's info files in #{prefix}/share/info/emacs, so that updated elisp packages' info files will not conflict with Emacs's. Then it's just a simple matter of setting Info-directory-list in your .emacs file so that Emacs will find the updated info file. This method mimics the Debian behavior for Emacs info directories. Note that Emacs will look for info files in the configured --infodir by default, so there's no need for a caveat re: the INFOPATH environment variable. Signed-off-by: Adam Vandenberg --- Library/Formula/emacs.rb | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) (limited to 'Library/Formula') diff --git a/Library/Formula/emacs.rb b/Library/Formula/emacs.rb index f037992f3..f399b6fab 100644 --- a/Library/Formula/emacs.rb +++ b/Library/Formula/emacs.rb @@ -39,9 +39,6 @@ class Emacs