bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#10702: 24.0.92; broken widget in Man


From: Glenn Morris
Subject: bug#10702: 24.0.92; broken widget in Man
Date: Fri, 03 Feb 2012 00:05:00 -0500
User-agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/)

Glenn Morris wrote:

> I don't know how many possible architecture locations exist,

There seems to be a ridiculous number of possibilities:

http://wiki.debian.org/Multiarch/Tuples

I suggest something like this instead:

(defcustom Man-header-file-path
  (let ((arch (with-temp-buffer
                (when (eq 0 (ignore-errors
                              (call-process "gcc" nil '(t nil) nil
                                            "-print-multiarch")))
                  (goto-char (point-min))
                  (buffer-substring (point) (line-end-position)))))
        (base '("/usr/include" "/usr/local/include")))
    (if (zerop (length arch))
        base
      (append base (list (expand-file-name arch "/usr/include")))))
  "C Header file search path used in Man."
  :type '(repeat string)
  :version "24.1"                       ; add multiarch
  :group 'man)


There seem to be a few other places in Emacs that use usr/include (eg
ffap-c-path), so perhaps this should be centralized somewhere.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]