unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#10702: 24.0.92; broken widget in Man
@ 2012-02-02 19:51 Sam Steingold
  2012-02-02 20:13 ` Glenn Morris
  0 siblings, 1 reply; 8+ messages in thread
From: Sam Steingold @ 2012-02-02 19:51 UTC (permalink / raw)
  To: 10702

In GNU Emacs 24.0.92.8 (x86_64-unknown-linux-gnu, X toolkit, Xaw3d scroll bars)
 of 2012-01-24 on t520sds
Windowing system distributor `The X.Org Foundation', version 11.0.11004000
configured using `configure  '--with-wide-int''

emacs -Q
M-x man RET
2 stat RET
navigate to <sys/stat.h> and hit RET or mouse2 on it
==>

Debugger entered--Lisp error: (error #("Cannot find header file: sys/stat.h" 25 26 (face bold) 26 27 (face bold) 27 28 (face bold) 28 29 (face bold) 29 30 (face bold) 30 31 (face bold) 31 32 (face bold) 32 33 (face bold) 33 34 (face bold) 34 35 (face bold)))
  signal(error (#("Cannot find header file: sys/stat.h" 25 26 (face bold) 26 27 (face bold) 27 28 (face bold) 28 29 (face bold) 29 30 (face bold) 30 31 (face bold) 31 32 (face bold) 32 33 (face bold) 33 34 (face bold) 34 35 (face bold))))
  error("Cannot find header file: %s" #("sys/stat.h" 0 1 (face bold) 1 2 (face bold) 2 3 (face bold) 3 4 (face bold) 4 5 (face bold) 5 6 (face bold) 6 7 (face bold) 7 8 (face bold) 8 9 (face bold) 9 10 (face bold)))
  #[(button) "\302\b\303\".\304	!?\205.

^ permalink raw reply	[flat|nested] 8+ messages in thread

* bug#10702: 24.0.92; broken widget in Man
  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
  0 siblings, 1 reply; 8+ messages in thread
From: Glenn Morris @ 2012-02-02 20:13 UTC (permalink / raw)
  To: 10702

Sam Steingold wrote:

> emacs -Q
> M-x man RET
> 2 stat RET
> navigate to <sys/stat.h> and hit RET or mouse2 on it
> ==>
>
> Debugger entered--Lisp error: (error #("Cannot find header file: sys/stat.h" 25 26 (face bold) 26 27 (face bold) 27 28 (face bold) 28 29 (face bold) 29 30 (face bold) 30 31 (face bold) 31 32 (face bold) 32 33 (face bold) 33 34 (face bold) 34 35 (face bold)))

I can't reproduce this in the current trunk.
If /usr/include/sys/stat.h is present I warp to it, if not then
I just get the expected error message as shown above: Cannot find header file:
sys/stat.h.

Do you have a readable sys/stat.h somewhere in Man-header-file-path on
your system?





^ permalink raw reply	[flat|nested] 8+ messages in thread

* bug#10702: 24.0.92; broken widget in Man
  2012-02-02 20:13 ` Glenn Morris
@ 2012-02-03  4:45   ` Glenn Morris
  2012-02-03  5:05     ` Glenn Morris
  0 siblings, 1 reply; 8+ messages in thread
From: Glenn Morris @ 2012-02-03  4:45 UTC (permalink / raw)
  To: 10702


I'm going to take a guess that you don't in fact have a
/usr/include/sys/stat.h file on your system, because you are using a
multi-arch system where this file has moved to eg

/usr/include/x86_64-linux-gnu/sys/stat.h

I don't know how many possible architecture locations exist, but
I guess it would do no harm to add them all to Man-header-file-path,
since only one is likely to exist on most systems.





^ permalink raw reply	[flat|nested] 8+ messages in thread

* bug#10702: 24.0.92; broken widget in Man
  2012-02-03  4:45   ` Glenn Morris
@ 2012-02-03  5:05     ` Glenn Morris
  2012-02-03 13:34       ` Stefan Monnier
  0 siblings, 1 reply; 8+ messages in thread
From: Glenn Morris @ 2012-02-03  5:05 UTC (permalink / raw)
  To: 10702

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.





^ permalink raw reply	[flat|nested] 8+ messages in thread

* bug#10702: 24.0.92; broken widget in Man
  2012-02-03  5:05     ` Glenn Morris
@ 2012-02-03 13:34       ` Stefan Monnier
  2012-02-03 20:53         ` Glenn Morris
  0 siblings, 1 reply; 8+ messages in thread
From: Stefan Monnier @ 2012-02-03 13:34 UTC (permalink / raw)
  To: Glenn Morris; +Cc: 10702

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





^ permalink raw reply	[flat|nested] 8+ messages in thread

* bug#10702: 24.0.92; broken widget in Man
  2012-02-03 13:34       ` Stefan Monnier
@ 2012-02-03 20:53         ` Glenn Morris
  2012-02-06 13:33           ` Stefan Monnier
  0 siblings, 1 reply; 8+ messages in thread
From: Glenn Morris @ 2012-02-03 20:53 UTC (permalink / raw)
  To: Stefan Monnier; +Cc: 10702

Stefan Monnier wrote:

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

OK. Do you want some, all, or none of the following individual users
fixing for 24.1?

Man-header-file-path
cc-search-directories
ffap-c-path
semantic-c-dependency-system-include-path
semantic-gcc-setup





^ permalink raw reply	[flat|nested] 8+ messages in thread

* bug#10702: 24.0.92; broken widget in Man
  2012-02-03 20:53         ` Glenn Morris
@ 2012-02-06 13:33           ` Stefan Monnier
  2012-02-22  8:34             ` Glenn Morris
  0 siblings, 1 reply; 8+ messages in thread
From: Stefan Monnier @ 2012-02-06 13:33 UTC (permalink / raw)
  To: Glenn Morris; +Cc: 10702

>>> 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,
> OK. Do you want some, all, or none of the following individual users
> fixing for 24.1?
> Man-header-file-path
> cc-search-directories
> ffap-c-path
> semantic-c-dependency-system-include-path
> semantic-gcc-setup

I'd recommend not to touch the semantic-*.
And I wouldn't bother with cc-search-directories which doesn't even bother
to obey the prefix naming convention.
So if you can fix the remaining two, with a clear comment about the
duplication and need for unification, then that'd be wonderful,


        Stefan





^ permalink raw reply	[flat|nested] 8+ messages in thread

* bug#10702: 24.0.92; broken widget in Man
  2012-02-06 13:33           ` Stefan Monnier
@ 2012-02-22  8:34             ` Glenn Morris
  0 siblings, 0 replies; 8+ messages in thread
From: Glenn Morris @ 2012-02-22  8:34 UTC (permalink / raw)
  To: 10702-done

Version: 24.0.94

Fixed Man-header-file-path.





^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2012-02-22  8:34 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
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

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).