all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* save-excursion doesn't always work
@ 2002-12-15  5:38 Ittay Freiman
  2002-12-15 10:37 ` David Kastrup
  0 siblings, 1 reply; 8+ messages in thread
From: Ittay Freiman @ 2002-12-15  5:38 UTC (permalink / raw)


hi,

i found this behavior while using auctex. to recreate, create a new
buffer for a tex document, with auctex as the mode (LaTeX-mode). type
in the first line 'this is a test'.

go down one line. '(point)' should return 16. now evaluate
'(save-excursion (LaTeX-fill-region-as-paragraph 1 16 t))'. nothing
actually changes in the buffer, but the cursor jumps to point 15. you
can repeat this with the same results.

can someone please tell me what is going on? also, if i write a
function that uses LaTeX-fill-region-as-paragraph, how can i return
the cursor to its original place (i'm currently using markers,
however, putting the cursor inside the filled region  creates weird
behaviors)

thanx,
ittay

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2002-12-16 18:46 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-12-15  5:38 save-excursion doesn't always work Ittay Freiman
2002-12-15 10:37 ` David Kastrup
2002-12-16 16:02   ` Stefan Monnier <foo@acm.com>
2002-12-16 16:21     ` David Kastrup
2002-12-16 17:00       ` Stefan Monnier <foo@acm.com>
2002-12-16 17:43         ` David Kastrup
2002-12-16 18:28           ` Stefan Monnier <foo@acm.com>
2002-12-16 18:46             ` 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.