* `Man-default-man-entry' - remove or not remove section numbers
@ 2007-12-19 9:48 martin rudalics
2007-12-23 17:40 ` Juri Linkov
0 siblings, 1 reply; 2+ messages in thread
From: martin rudalics @ 2007-12-19 9:48 UTC (permalink / raw)
To: emacs-devel
`Man-default-man-entry' has the following contradictory behavior:
The following code
(when (looking-at "[ \t\r\n]+\\([-a-zA-Z0-9._+:]+\\)([0-9])")
(setq word (concat word (match-string-no-properties 1))))
removes the section number for the returned value. The comment and code
below
;; If looking at something like ioctl(2) or brc(1M), include the
;; section number in the returned value. Remove text properties.
(concat word
(if (looking-at
(concat "[ \t]*([ \t]*\\(" Man-section-regexp "\\)[ \t]*)"))
(format "(%s)" (match-string-no-properties 1)))))))
explicitly vote for keeping it. What's the preferred behavior here?
Also can someone please explain why this is a `defsubst'?
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: `Man-default-man-entry' - remove or not remove section numbers
2007-12-19 9:48 `Man-default-man-entry' - remove or not remove section numbers martin rudalics
@ 2007-12-23 17:40 ` Juri Linkov
0 siblings, 0 replies; 2+ messages in thread
From: Juri Linkov @ 2007-12-23 17:40 UTC (permalink / raw)
To: martin rudalics; +Cc: emacs-devel
> `Man-default-man-entry' has the following contradictory behavior:
>
> The following code
>
> (when (looking-at "[ \t\r\n]+\\([-a-zA-Z0-9._+:]+\\)([0-9])")
> (setq word (concat word (match-string-no-properties 1))))
>
> removes the section number for the returned value. The comment and code
> below
>
> ;; If looking at something like ioctl(2) or brc(1M), include the
> ;; section number in the returned value. Remove text properties.
> (concat word
> (if (looking-at
> (concat "[ \t]*([ \t]*\\(" Man-section-regexp "\\)[ \t]*)"))
> (format "(%s)" (match-string-no-properties 1)))))))
>
> explicitly vote for keeping it. What's the preferred behavior here?
I think it would be better to keep the section number.
> Also can someone please explain why this is a `defsubst'?
No idea.
--
Juri Linkov
http://www.jurta.org/emacs/
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2007-12-23 17:40 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-12-19 9:48 `Man-default-man-entry' - remove or not remove section numbers martin rudalics
2007-12-23 17:40 ` Juri Linkov
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.