all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Juri Linkov <juri@jurta.org>
To: martin rudalics <rudalics@gmx.at>
Cc: emacs-devel@gnu.org
Subject: Re: `Man-default-man-entry' - remove or not remove section numbers
Date: Sun, 23 Dec 2007 19:40:05 +0200	[thread overview]
Message-ID: <87k5n5z4wa.fsf@jurta.org> (raw)
In-Reply-To: <4768E8D5.7020307@gmx.at> (martin rudalics's message of "Wed, 19 Dec 2007 10:48:05 +0100")

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

      reply	other threads:[~2007-12-23 17:40 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-12-19  9:48 `Man-default-man-entry' - remove or not remove section numbers martin rudalics
2007-12-23 17:40 ` Juri Linkov [this message]

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=87k5n5z4wa.fsf@jurta.org \
    --to=juri@jurta.org \
    --cc=emacs-devel@gnu.org \
    --cc=rudalics@gmx.at \
    /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.