GNU bug report logs - #10702
24.0.92; broken widget in Man

Previous Next

Package: emacs;

Reported by: sds <at> gnu.org

Date: Thu, 2 Feb 2012 19:53:02 UTC

Severity: minor

Tags: moreinfo, unreproducible

Found in version 24.0.92

Fixed in version 24.0.94

Done: Glenn Morris <rgm <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Glenn Morris <rgm <at> gnu.org>
To: 10702 <at> debbugs.gnu.org
Subject: bug#10702: 24.0.92; broken widget in Man
Date: Fri, 03 Feb 2012 00:05:00 -0500
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.




This bug report was last modified 13 years and 149 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.