all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Understanding save-excursion
@ 2011-03-20 18:35 Deniz Dogan
  0 siblings, 0 replies; 2+ messages in thread
From: Deniz Dogan @ 2011-03-20 18:35 UTC (permalink / raw)
  To: emacs-help

Why isn't point and mark restored after calling this function?

(defun mark-paragraph-and-sort-lines ()
  (interactive "*")
  (save-excursion
    (mark-paragraph)
    (sort-lines nil (point) (mark))))

-- 
Deniz Dogan



^ permalink raw reply	[flat|nested] 2+ messages in thread
[parent not found: <mailman.4.1300646175.13228.help-gnu-emacs@gnu.org>]

end of thread, other threads:[~2011-03-21  8:45 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-03-20 18:35 Understanding save-excursion Deniz Dogan
     [not found] <mailman.4.1300646175.13228.help-gnu-emacs@gnu.org>
2011-03-21  8:45 ` David Kastrup

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.