From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: trunk r113878: Refine previous change. Date: Wed, 14 Aug 2013 22:45:06 +0300 Message-ID: <834nasoy4d.fsf@gnu.org> References: Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1376509494 23663 80.91.229.3 (14 Aug 2013 19:44:54 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 14 Aug 2013 19:44:54 +0000 (UTC) Cc: xfq.free@gmail.com, emacs-devel@gnu.org To: Glenn Morris Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Aug 14 21:44:55 2013 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1V9h02-0008JC-3m for ged-emacs-devel@m.gmane.org; Wed, 14 Aug 2013 21:44:54 +0200 Original-Received: from localhost ([::1]:49758 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V9h01-00045n-ON for ged-emacs-devel@m.gmane.org; Wed, 14 Aug 2013 15:44:53 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:51327) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V9gzt-00045e-BW for emacs-devel@gnu.org; Wed, 14 Aug 2013 15:44:51 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1V9gzn-0002yT-Hz for emacs-devel@gnu.org; Wed, 14 Aug 2013 15:44:45 -0400 Original-Received: from mtaout20.012.net.il ([80.179.55.166]:46781) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V9gzn-0002yI-9d; Wed, 14 Aug 2013 15:44:39 -0400 Original-Received: from conversion-daemon.a-mtaout20.012.net.il by a-mtaout20.012.net.il (HyperSendmail v2007.08) id <0MRJ00G00DHXVQ00@a-mtaout20.012.net.il>; Wed, 14 Aug 2013 22:44:37 +0300 (IDT) Original-Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout20.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0MRJ00GF5DIDUV10@a-mtaout20.012.net.il>; Wed, 14 Aug 2013 22:44:37 +0300 (IDT) In-reply-to: X-012-Sender: halo1@inter.net.il X-detected-operating-system: by eggs.gnu.org: Solaris 10 X-Received-From: 80.179.55.166 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:162739 Archived-At: > From: Glenn Morris > Date: Wed, 14 Aug 2013 15:34:28 -0400 > Cc: emacs-devel@gnu.org > > Xue Fuqiao wrote: > > [set-marker] > > > +POSITION is less than 1, MARKER is moved to the beginning of the > > +buffer. If POSITION is greater than the size of the buffer, marker is > > +moved to the end of the buffer. > > I'm not sure this should be documented (yes, I know it is in the manual; > perhaps it should not be). Especially the first sentence. I think both of them should not be in the doc. These are internal self-defenses of the implementation, we don't expect users to pass such invalid arguments (a.k.a. "undefined behavior") at all. Besides, this is a slippery slope, as we have such restrictions all over the place.