unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* paragraph-start-position
@ 2006-10-07 11:43 Andreas Roehler
  0 siblings, 0 replies; only message in thread
From: Andreas Roehler @ 2006-10-07 11:43 UTC (permalink / raw)


Just needed that. Comments welcome.

Thanks
__
Andreas Roehler


(defun paragraph-start-position ()
  "Returns paragraphs start position "
  (interactive)
  (save-match-data
  (save-excursion
    (if
    (re-search-backward paragraph-start nil t 1)
    (point)
      (point-min)))))

(defun paragraph-end-position ()
  "Returns paragraphs end position "
  (interactive)
  (save-match-data
  (save-excursion
    (if
    (re-search-forward paragraph-start nil t 1)
    (point)
      (point-max)))))


;;; end

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

only message in thread, other threads:[~2006-10-07 11:43 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-10-07 11:43 paragraph-start-position Andreas Roehler

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