unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* Man-match-substring
@ 2003-06-20 17:58 Kevin Rodgers
  0 siblings, 0 replies; only message in thread
From: Kevin Rodgers @ 2003-06-20 17:58 UTC (permalink / raw)


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:&lt;kevin.rodgers&#64;ihs.com&gt;">Kevin Rodgers</a>

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2003-06-20 17:58 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-06-20 17:58 Man-match-substring Kevin Rodgers

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