all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / 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

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.