From: Stefan Monnier <monnier@iro.umontreal.ca>
To: Glenn Morris <rgm@gnu.org>
Cc: xfq.free@gmail.com, Juanma Barranquero <lekktu@gmail.com>,
Eli Zaretskii <eliz@gnu.org>,
Emacs developers <emacs-devel@gnu.org>
Subject: Re: trunk r113878: Refine previous change.
Date: Thu, 15 Aug 2013 12:42:43 -0400 [thread overview]
Message-ID: <jwvtxiqewkx.fsf-monnier+emacs@gnu.org> (raw)
In-Reply-To: <87txirc596.fsf@fencepost.gnu.org> (Glenn Morris's message of "Thu, 15 Aug 2013 12:01:41 -0400")
>> FWIW, I've fairly often written code which uses goto-char with
>> a position that can be outside of point-min...point-max, knowing that it
>> will go to the closest possible position.
> Did you ever pass a negative position?
> Were you passing a position outside the currently accessible portion of
> the buffer, but within the unnarrowed limits, or was it just an arbitrarily
> large value to mean "point-max" (and if so, why not just use point-max)?
Typically it's a slightly sloppy value. E.g. (1- pos) or (1+ pos) or
just `pos' but where that position was valid in the past and some
buffer changes may have rendered it invalid.
So it typically is a valid position in 99% of the cases, but I know that
it's not guaranteed to be so in 100% of the cases.
Stefan
next prev parent reply other threads:[~2013-08-15 16:42 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <E1V9bet-0004qo-C7@vcs.savannah.gnu.org>
2013-08-14 19:34 ` trunk r113878: Refine previous change Glenn Morris
2013-08-14 19:45 ` Eli Zaretskii
2013-08-14 22:30 ` Xue Fuqiao
2013-08-15 2:18 ` Glenn Morris
2013-08-16 0:22 ` Xue Fuqiao
2013-08-14 23:30 ` Juanma Barranquero
2013-08-15 2:16 ` Glenn Morris
2013-08-15 12:29 ` Juanma Barranquero
2013-08-15 14:29 ` Stefan Monnier
2013-08-15 15:06 ` Eli Zaretskii
2013-08-15 16:01 ` Glenn Morris
2013-08-15 16:42 ` Stefan Monnier [this message]
2013-08-15 17:18 ` Glenn Morris
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
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=jwvtxiqewkx.fsf-monnier+emacs@gnu.org \
--to=monnier@iro.umontreal.ca \
--cc=eliz@gnu.org \
--cc=emacs-devel@gnu.org \
--cc=lekktu@gmail.com \
--cc=rgm@gnu.org \
--cc=xfq.free@gmail.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 public inbox
https://git.savannah.gnu.org/cgit/emacs.git
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).