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: Stefan Monnier
Subject: bug#10702: 24.0.92; broken widget in Man
Date: Fri, 03 Feb 2012 08:34:20 -0500
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.92 (gnu/linux)

>> 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)

Sounds about right, yes.

> 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.

Yes, after 24.1,


        Stefan





reply via email to

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