* Re: man page not found
@ 2007-05-09 23:38 A Soare
0 siblings, 0 replies; 20+ messages in thread
From: A Soare @ 2007-05-09 23:38 UTC (permalink / raw)
To: Emacs Dev [emacs-devel]
> Well, if I follow your initial example:
>
> man dlopen
>
> gives me:
>
> DLOPEN(3) at the bottom of the page.
>
> 3 is the section number, not page number, and it's the section number of the
> page I'm already looking at.
You are right. In fact, there is shown the title of the current man's page, so there is no need of a link...
^ permalink raw reply [flat|nested] 20+ messages in thread
* Re: man page not found
@ 2007-05-09 23:37 A Soare
0 siblings, 0 replies; 20+ messages in thread
From: A Soare @ 2007-05-09 23:37 UTC (permalink / raw)
To: Michaël Cadilhac; +Cc: Emacs Dev [emacs-devel]
>
> >> > It would be better to have a link in order to jump faster with the mouse. If
> >> > not, it is good so.
> >>
> >> I don't understand your point. Any link just leads to the page that you're
> >> already looking at, doesn't it?
> >
> > Of course not.
> >
> > I am on the page 1 or 2 or 8, etc, and in the bottom should be a link
> > to page 3.
>
> I believe Nick was talking about the very link we will modify, i.e. the
> one in the footer. This one always points to the current page, so it's
> no use to bother with it.
>
> I'll install this little modification later today if there's no
> objection.
No, now it was clarified. You can install it. One can see in the corner the title of the current page, so there is no need of a link.
Please install the patch.
Thank you.
^ permalink raw reply [flat|nested] 20+ messages in thread
* Re: man page not found
@ 2007-05-09 22:42 A Soare
2007-05-09 22:54 ` Nick Roberts
2007-05-09 23:17 ` Michaël Cadilhac
0 siblings, 2 replies; 20+ messages in thread
From: A Soare @ 2007-05-09 22:42 UTC (permalink / raw)
To: Nick Roberts; +Cc: Emacs Dev [emacs-devel]
> > It would be better to have a link in order to jump faster with the mouse. If
> > not, it is good so.
>
> I don't understand your point. Any link just leads to the page that you're
> already looking at, doesn't it?
Of course not.
I am on the page 1 or 2 or 8, etc, and in the bottom should be a link to page 3.
There are many pages with the same name.
Alin Soare.
^ permalink raw reply [flat|nested] 20+ messages in thread
* Re: man page not found
2007-05-09 22:42 A Soare
@ 2007-05-09 22:54 ` Nick Roberts
2007-05-09 23:17 ` Michaël Cadilhac
1 sibling, 0 replies; 20+ messages in thread
From: Nick Roberts @ 2007-05-09 22:54 UTC (permalink / raw)
To: alinsoar; +Cc: Emacs Dev [emacs-devel]
> > I don't understand your point. Any link just leads to the page that you're
> > already looking at, doesn't it?
>
> Of course not.
>
> I am on the page 1 or 2 or 8, etc, and in the bottom should be a link to
> page 3.
>
> There are many pages with the same name.
Well, if I follow your initial example:
man dlopen
gives me:
DLOPEN(3) at the bottom of the page.
3 is the section number, not page number, and it's the section number of the
page I'm already looking at.
--
Nick http://www.inet.net.nz/~nickrob
^ permalink raw reply [flat|nested] 20+ messages in thread
* Re: man page not found
2007-05-09 22:42 A Soare
2007-05-09 22:54 ` Nick Roberts
@ 2007-05-09 23:17 ` Michaël Cadilhac
2007-05-10 11:57 ` Michaël Cadilhac
1 sibling, 1 reply; 20+ messages in thread
From: Michaël Cadilhac @ 2007-05-09 23:17 UTC (permalink / raw)
To: alinsoar; +Cc: Nick Roberts, Emacs Dev [emacs-devel]
[-- Attachment #1.1: Type: text/plain, Size: 962 bytes --]
A Soare <alinsoar@voila.fr> writes:
>> > It would be better to have a link in order to jump faster with the mouse. If
>> > not, it is good so.
>>
>> I don't understand your point. Any link just leads to the page that you're
>> already looking at, doesn't it?
>
> Of course not.
>
> I am on the page 1 or 2 or 8, etc, and in the bottom should be a link
> to page 3.
I believe Nick was talking about the very link we will modify, i.e. the
one in the footer. This one always points to the current page, so it's
no use to bother with it.
I'll install this little modification later today if there's no
objection.
--
| Michaël `Micha' Cadilhac | Libertude, |
| http://michael.cadilhac.name | Égalitude, |
| JID/MSN: | Fraternitude. |
`---- michael.cadilhac@gmail.com | -- À peu près S.R. - --'
[-- Attachment #1.2: Type: application/pgp-signature, Size: 188 bytes --]
[-- Attachment #2: Type: text/plain, Size: 142 bytes --]
_______________________________________________
Emacs-devel mailing list
Emacs-devel@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-devel
^ permalink raw reply [flat|nested] 20+ messages in thread
* Re: man page not found
@ 2007-05-09 20:15 A Soare
2007-05-09 20:32 ` Stefan Monnier
2007-05-09 20:41 ` Nick Roberts
0 siblings, 2 replies; 20+ messages in thread
From: A Soare @ 2007-05-09 20:15 UTC (permalink / raw)
To: Stefan Monnier; +Cc: Emacs Dev [emacs-devel]
> Great. Feel free to install your change, then,
>
There is no possibility to find out the case looking at the word somewhere in the page?
It would be better to have a link in order to jump faster with the mouse. If not, it is good so.
^ permalink raw reply [flat|nested] 20+ messages in thread
* Re: man page not found
@ 2007-05-09 13:41 A Soare
2007-05-09 14:28 ` Michaël Cadilhac
0 siblings, 1 reply; 20+ messages in thread
From: A Soare @ 2007-05-09 13:41 UTC (permalink / raw)
To: Michaël Cadilhac; +Cc: Emacs Dev [emacs-devel]
>
> Does the following fix your bug? And is it acceptable?
>
What I see is that there is no more a link there. It wouldn't be better to convert to the good case?
Anyway, it is better so than with a non working link.
Thanks.
^ permalink raw reply [flat|nested] 20+ messages in thread
* man page not found
@ 2007-05-09 10:50 A Soare
2007-05-09 11:03 ` Michaël Cadilhac
0 siblings, 1 reply; 20+ messages in thread
From: A Soare @ 2007-05-09 10:50 UTC (permalink / raw)
To: Emacs Dev [emacs-devel]
1. emacs -Q
2. man RET
Manual entry: dlopen RET
3. goto bottom right to DLOPEN(3) and press using mouse on this link.
Resul in *Messages*:
error in process sentinel: Man-bgproc-sentinel: Can't find the 3 DLOPEN manpage
error in process sentinel: Can't find the 3 DLOPEN manpage
However man RET Manual entry: 3 dlopen RET find the entry.
^ permalink raw reply [flat|nested] 20+ messages in thread
* Re: man page not found
2007-05-09 10:50 A Soare
@ 2007-05-09 11:03 ` Michaël Cadilhac
2007-05-09 11:19 ` Michaël Cadilhac
0 siblings, 1 reply; 20+ messages in thread
From: Michaël Cadilhac @ 2007-05-09 11:03 UTC (permalink / raw)
To: alinsoar; +Cc: Emacs Dev [emacs-devel]
[-- Attachment #1.1: Type: text/plain, Size: 645 bytes --]
A Soare <alinsoar@voila.fr> writes:
> 1. emacs -Q
>
> 2. man RET
>
> Manual entry: dlopen RET
>
> 3. goto bottom right to DLOPEN(3) and press using mouse on this link.
Well, there's no DLOPEN manual. There's a dlopen one.
The problem is just that there must be no link here. I'll see what
I can do.
--
| Michaël `Micha' Cadilhac | I cannot reproduce this bug, |
| http://michael.cadilhac.name | but I have installed a change |
| JID/MSN: | which I think will fix it. |
`---- michael.cadilhac@gmail.com | -- Kim F. Storm - --'
[-- Attachment #1.2: Type: application/pgp-signature, Size: 188 bytes --]
[-- Attachment #2: Type: text/plain, Size: 142 bytes --]
_______________________________________________
Emacs-devel mailing list
Emacs-devel@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-devel
^ permalink raw reply [flat|nested] 20+ messages in thread
* Re: man page not found
2007-05-09 11:03 ` Michaël Cadilhac
@ 2007-05-09 11:19 ` Michaël Cadilhac
2007-05-09 14:38 ` Stefan Monnier
2007-05-10 13:05 ` Richard Stallman
0 siblings, 2 replies; 20+ messages in thread
From: Michaël Cadilhac @ 2007-05-09 11:19 UTC (permalink / raw)
To: alinsoar; +Cc: Emacs Dev [emacs-devel]
[-- Attachment #1.1.1: Type: text/plain, Size: 448 bytes --]
michael@cadilhac.name (Michaël Cadilhac) writes:
> A Soare <alinsoar@voila.fr> writes:
>
>> 1. emacs -Q
>>
>> 2. man RET
>>
>> Manual entry: dlopen RET
>>
>> 3. goto bottom right to DLOPEN(3) and press using mouse on this link.
>
> Well, there's no DLOPEN manual. There's a dlopen one.
>
> The problem is just that there must be no link here. I'll see what
> I can do.
Does the following fix your bug? And is it acceptable?
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1.1.2: man.patch --]
[-- Type: text/x-patch, Size: 904 bytes --]
Index: lisp/man.el
===================================================================
RCS file: /sources/emacs/emacs/lisp/man.el,v
retrieving revision 1.167
diff -c -r1.167 man.el
*** lisp/man.el 24 Mar 2007 09:43:07 -0000 1.167
--- lisp/man.el 9 May 2007 11:17:29 -0000
***************
*** 1296,1302 ****
(forward-line 1))
(if (re-search-forward Man-heading-regexp (point-max) t n)
(beginning-of-line)
! (goto-char (point-max)))))
(defun Man-previous-section (n)
"Move point to Nth previous section (default 1)."
--- 1296,1304 ----
(forward-line 1))
(if (re-search-forward Man-heading-regexp (point-max) t n)
(beginning-of-line)
! (goto-char (point-max))
! ;; The last line doesn't belong to any section.
! (forward-line -1))))
(defun Man-previous-section (n)
"Move point to Nth previous section (default 1)."
[-- Attachment #1.1.3: Type: text/plain, Size: 327 bytes --]
--
| Michaël `Micha' Cadilhac | Une erreur peut devenir exacte |
| http://michael.cadilhac.name | selon que celui qui l'a commise |
| JID/MSN: | s'est trompé ou non. |
`---- michael.cadilhac@gmail.com | -- Pierre Dac - --'
[-- Attachment #1.2: Type: application/pgp-signature, Size: 188 bytes --]
[-- Attachment #2: Type: text/plain, Size: 142 bytes --]
_______________________________________________
Emacs-devel mailing list
Emacs-devel@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-devel
^ permalink raw reply [flat|nested] 20+ messages in thread
* Re: man page not found
2007-05-09 11:19 ` Michaël Cadilhac
@ 2007-05-09 14:38 ` Stefan Monnier
2007-05-09 14:59 ` Michaël Cadilhac
2007-05-10 13:05 ` Richard Stallman
1 sibling, 1 reply; 20+ messages in thread
From: Stefan Monnier @ 2007-05-09 14:38 UTC (permalink / raw)
To: Michaël Cadilhac; +Cc: alinsoar, Emacs Dev [emacs-devel]
> ! ;; The last line doesn't belong to any section.
> ! (forward-line -1))))
Are we 100% sure that the last line never belongs to any section?
Could we put at least some sanity check there. E.g. it seems this
footer we want to skip always starts at column 0, so maybe we could just do
(if (save-excursion (forward-line (if (bolp) -1 0))
(looking-at "[^ \t]"))
;; The last line is a footer.
(forward-line -1))))
-- Stefan
^ permalink raw reply [flat|nested] 20+ messages in thread
* Re: man page not found
2007-05-09 14:38 ` Stefan Monnier
@ 2007-05-09 14:59 ` Michaël Cadilhac
2007-05-09 17:39 ` Stefan Monnier
0 siblings, 1 reply; 20+ messages in thread
From: Michaël Cadilhac @ 2007-05-09 14:59 UTC (permalink / raw)
To: Stefan Monnier; +Cc: alinsoar, Emacs Dev [emacs-devel]
[-- Attachment #1.1: Type: text/plain, Size: 1075 bytes --]
Stefan Monnier <monnier@iro.umontreal.ca> writes:
>> ! ;; The last line doesn't belong to any section.
>> ! (forward-line -1))))
>
> Are we 100% sure that the last line never belongs to any section?
> Could we put at least some sanity check there. E.g. it seems this
> footer we want to skip always starts at column 0
It is not, many X11/Xm functions end with the name of the function
flushed to the right, for example.
In fact, the `.TH' command (which AFAIK is mandatory) only forces
something at the very right of the footer. I don't think its a good
thing to add an heuristic on that.
AFAIK, there's always a footer, so I'm 100% sure that the last line
never belongs to any section ; however, it's just IMHO.
--
| Michaël `Micha' Cadilhac | Isn't vi that text editor with |
| http://michael.cadilhac.name | two modes... One that beeps and |
| JID/MSN: | one that corrupts your file? |
`---- michael.cadilhac@gmail.com | -- Dan Jacobson - --'
[-- Attachment #1.2: Type: application/pgp-signature, Size: 188 bytes --]
[-- Attachment #2: Type: text/plain, Size: 142 bytes --]
_______________________________________________
Emacs-devel mailing list
Emacs-devel@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-devel
^ permalink raw reply [flat|nested] 20+ messages in thread
* Re: man page not found
2007-05-09 11:19 ` Michaël Cadilhac
2007-05-09 14:38 ` Stefan Monnier
@ 2007-05-10 13:05 ` Richard Stallman
2007-05-10 13:39 ` Michaël Cadilhac
1 sibling, 1 reply; 20+ messages in thread
From: Richard Stallman @ 2007-05-10 13:05 UTC (permalink / raw)
To: Michaël Cadilhac; +Cc: alinsoar, emacs-devel
Your patch is not bad, but it might be better to fix the code
that checks for a link. After all, there are lots of ways
to move point to the end of the buffer, and if it looks like
there should be a link there, why not make it work as a link?
^ permalink raw reply [flat|nested] 20+ messages in thread
* Re: man page not found
2007-05-10 13:05 ` Richard Stallman
@ 2007-05-10 13:39 ` Michaël Cadilhac
2007-05-12 14:44 ` Michaël Cadilhac
0 siblings, 1 reply; 20+ messages in thread
From: Michaël Cadilhac @ 2007-05-10 13:39 UTC (permalink / raw)
To: rms; +Cc: alinsoar, emacs-devel
[-- Attachment #1.1: Type: text/plain, Size: 1146 bytes --]
Richard Stallman <rms@gnu.org> writes:
> Your patch is not bad, but it might be better to fix the code
> that checks for a link. After all, there are lots of ways
> to move point to the end of the buffer, and if it looks like
> there should be a link there, why not make it work as a link?
Well, the link here is, on a GNU system at least, the concatenation of
the name of the program with its section. Problem is, the program name
is not always the name of the man page. For instance, zsh uses ZSH as
program name.
In the GNU man point-of-view, I'm pretty sure this is not meant to be
a link but a reminder, so we should not use it as such.
The only « other » fix I see is to change this link (detected as the one
in the footer) to alway point to the current page. However, I don't see
the use.
--
| Michaël `Micha' Cadilhac | Une erreur peut devenir exacte |
| http://michael.cadilhac.name | selon que celui qui l'a commise |
| JID/MSN: | s'est trompé ou non. |
`---- michael.cadilhac@gmail.com | -- Pierre Dac - --'
[-- Attachment #1.2: Type: application/pgp-signature, Size: 188 bytes --]
[-- Attachment #2: Type: text/plain, Size: 142 bytes --]
_______________________________________________
Emacs-devel mailing list
Emacs-devel@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-devel
^ permalink raw reply [flat|nested] 20+ messages in thread
* Re: man page not found
2007-05-10 13:39 ` Michaël Cadilhac
@ 2007-05-12 14:44 ` Michaël Cadilhac
0 siblings, 0 replies; 20+ messages in thread
From: Michaël Cadilhac @ 2007-05-12 14:44 UTC (permalink / raw)
To: rms; +Cc: alinsoar, emacs-devel
[-- Attachment #1.1: Type: text/plain, Size: 1361 bytes --]
michael@cadilhac.name (Michaël Cadilhac) writes:
> Richard Stallman <rms@gnu.org> writes:
>
>> Your patch is not bad, but it might be better to fix the code
>> that checks for a link. After all, there are lots of ways
>> to move point to the end of the buffer, and if it looks like
>> there should be a link there, why not make it work as a link?
>
> Well, the link here is, on a GNU system at least, the concatenation of
> the name of the program with its section. Problem is, the program name
> is not always the name of the man page. For instance, zsh uses ZSH as
> program name.
>
> In the GNU man point-of-view, I'm pretty sure this is not meant to be
> a link but a reminder, so we should not use it as such.
>
> The only « other » fix I see is to change this link (detected as the one
> in the footer) to alway point to the current page. However, I don't see
> the use.
Should this be installed on EMACS_22_BASE too ? I'm not aware of the
commit procedure for this branch, and what should go into it.
--
| Michaël `Micha' Cadilhac | Je veut dire que la loi francaise |
| http://michael.cadilhac.name | est overwritable par le |
| JID/MSN: | reglement interieur il me semble. |
`---- michael.cadilhac@gmail.com | -- ElBarto - --'
[-- Attachment #1.2: Type: application/pgp-signature, Size: 188 bytes --]
[-- Attachment #2: Type: text/plain, Size: 142 bytes --]
_______________________________________________
Emacs-devel mailing list
Emacs-devel@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-devel
^ permalink raw reply [flat|nested] 20+ messages in thread
end of thread, other threads:[~2007-05-12 14:44 UTC | newest]
Thread overview: 20+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-05-09 23:38 man page not found A Soare
-- strict thread matches above, loose matches on Subject: below --
2007-05-09 23:37 A Soare
2007-05-09 22:42 A Soare
2007-05-09 22:54 ` Nick Roberts
2007-05-09 23:17 ` Michaël Cadilhac
2007-05-10 11:57 ` Michaël Cadilhac
2007-05-09 20:15 A Soare
2007-05-09 20:32 ` Stefan Monnier
2007-05-09 20:41 ` Nick Roberts
2007-05-09 13:41 A Soare
2007-05-09 14:28 ` Michaël Cadilhac
2007-05-09 10:50 A Soare
2007-05-09 11:03 ` Michaël Cadilhac
2007-05-09 11:19 ` Michaël Cadilhac
2007-05-09 14:38 ` Stefan Monnier
2007-05-09 14:59 ` Michaël Cadilhac
2007-05-09 17:39 ` Stefan Monnier
2007-05-10 13:05 ` Richard Stallman
2007-05-10 13:39 ` Michaël Cadilhac
2007-05-12 14:44 ` Michaël Cadilhac
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).