[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Man-match-substring
From: |
Kevin Rodgers |
Subject: |
Man-match-substring |
Date: |
Fri, 20 Jun 2003 11:58:48 -0600 |
User-agent: |
Mozilla/5.0 (X11; U; SunOS i86pc; en-US; rv:0.9.4.1) Gecko/20020406 Netscape6/6.2.2 |
Can this function be deleted from man.el and calls to it be replaced by
calls to match-string?
(defsubst Man-match-substring (&optional n string)
"Return the substring matched by the last search.
Optional arg N means return the substring matched by the Nth paren
grouping. Optional second arg STRING means return a substring from
that string instead of from the current buffer."
(if (null n) (setq n 0))
(if string
(substring string (match-beginning n) (match-end n))
(buffer-substring (match-beginning n) (match-end n))))
--
<a href="mailto:<kevin.rodgers@ihs.com>">Kevin Rodgers</a>
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Man-match-substring,
Kevin Rodgers <=