From: Glenn Morris <rgm@gnu.org>
To: 10702@debbugs.gnu.org
Subject: bug#10702: 24.0.92; broken widget in Man
Date: Fri, 03 Feb 2012 00:05:00 -0500 [thread overview]
Message-ID: <yy7h04zev7.fsf@fencepost.gnu.org> (raw)
In-Reply-To: <87obthm2sk.fsf@gnu.org>
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.
next prev parent reply other threads:[~2012-02-03 5:05 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-02-02 19:51 bug#10702: 24.0.92; broken widget in Man Sam Steingold
2012-02-02 20:13 ` Glenn Morris
2012-02-03 4:45 ` Glenn Morris
2012-02-03 5:05 ` Glenn Morris [this message]
2012-02-03 13:34 ` Stefan Monnier
2012-02-03 20:53 ` Glenn Morris
2012-02-06 13:33 ` Stefan Monnier
2012-02-22 8:34 ` Glenn Morris
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=yy7h04zev7.fsf@fencepost.gnu.org \
--to=rgm@gnu.org \
--cc=10702@debbugs.gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.