summary refs log tree commit diff
diff options
context:
space:
mode:
authorOleg Pykhalov <go.wigust@gmail.com>2017-10-16 17:44:57 +0300
committerLudovic Courtès <ludo@gnu.org>2017-10-19 12:17:47 +0200
commitd1c11418e7004f2f91a6726dfa6f65bd9839333f (patch)
tree0e6d6094b805e7439356b94d7cf76b91ec1744c6
parentb79813a19a8892c48bea1e0a9279265616be66d7 (diff)
downloadguix-d1c11418e7004f2f91a6726dfa6f65bd9839333f.tar.gz
gnu: emacs: Fix Man default C header file search path.
* gnu/packages/emacs.scm (emacs): Make sure Man looks for C header files in
  the right places.

Signed-off-by: Ludovic Courtès <ludo@gnu.org>
-rw-r--r--gnu/packages/emacs.scm12
1 files changed, 11 insertions, 1 deletions
diff --git a/gnu/packages/emacs.scm b/gnu/packages/emacs.scm
index 315db18a57..6d9ea41935 100644
--- a/gnu/packages/emacs.scm
+++ b/gnu/packages/emacs.scm
@@ -135,7 +135,17 @@
                     (format #f "(tramp-default-remote-path ~s ~s ~s ~s "
                             "~/.guix-profile/bin" "~/.guix-profile/sbin"
                             "/run/current-system/profile/bin"
-                            "/run/current-system/profile/sbin")))))))
+                            "/run/current-system/profile/sbin")))
+
+                 ;; Make sure Man looks for C header files in the right
+                 ;; places.
+                 (substitute* "man.el"
+                   (("\"/usr/local/include\"" line)
+                    (string-join
+                     (list line
+                           "\"~/.guix-profile/include\""
+                           "\"/var/guix/profiles/system/profile/include\"")
+                     " ")))))))
     (build-system glib-or-gtk-build-system)
     (arguments
      `(#:phases