From: ittay@qlusters.com (Ittay Freiman)
Subject: save-excursion doesn't always work
Date: 14 Dec 2002 21:38:17 -0800 [thread overview]
Message-ID: <1a52e3d.0212142138.2f5aed8@posting.google.com> (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
next reply other threads:[~2002-12-15 5:38 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-12-15 5:38 Ittay Freiman [this message]
2002-12-15 10:37 ` save-excursion doesn't always work 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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1a52e3d.0212142138.2f5aed8@posting.google.com \
--to=ittay@qlusters.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.