From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Kenichi Handa Newsgroups: gmane.emacs.devel Subject: problem of marker as position Date: Wed, 19 Nov 2003 09:23:05 +0900 (JST) Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: <200311190023.JAA14877@etlken.m17n.org> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 (generated by SEMI 1.14.3 - "Ushinoya") Content-Type: text/plain; charset=US-ASCII X-Trace: sea.gmane.org 1069201606 27371 80.91.224.253 (19 Nov 2003 00:26:46 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 19 Nov 2003 00:26:46 +0000 (UTC) Original-X-From: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Wed Nov 19 01:26:43 2003 Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1AMGB9-0002Wp-00 for ; Wed, 19 Nov 2003 01:26:43 +0100 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1AMGB9-0006Yr-00 for ; Wed, 19 Nov 2003 01:26:43 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.24) id 1AMH82-0000hV-Em for emacs-devel@quimby.gnus.org; Tue, 18 Nov 2003 20:27:34 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24) id 1AMH6T-0000fF-Oo for emacs-devel@gnu.org; Tue, 18 Nov 2003 20:25:57 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24) id 1AMH5M-0000Is-Ag for emacs-devel@gnu.org; Tue, 18 Nov 2003 20:25:20 -0500 Original-Received: from [192.47.44.130] (helo=tsukuba.m17n.org) by monty-python.gnu.org with esmtp (Exim 4.24) id 1AMH56-00004s-W2 for emacs-devel@gnu.org; Tue, 18 Nov 2003 20:24:33 -0500 Original-Received: from fs.m17n.org (fs.m17n.org [192.47.44.2]) by tsukuba.m17n.org (8.11.6p2/3.7W-20010518204228) with ESMTP id hAJ0N5h26991 for ; Wed, 19 Nov 2003 09:23:05 +0900 (JST) (envelope-from handa@m17n.org) Original-Received: from etlken.m17n.org (etlken.m17n.org [192.47.44.125]) by fs.m17n.org (8.11.6/3.7W-20010823150639) with ESMTP id hAJ0N5s23955 for ; Wed, 19 Nov 2003 09:23:05 +0900 (JST) Original-Received: (from handa@localhost) by etlken.m17n.org (8.8.8+Sun/3.7W-2001040620) id JAA14877; Wed, 19 Nov 2003 09:23:05 +0900 (JST) Original-To: emacs-devel@gnu.org User-Agent: SEMI/1.14.3 (Ushinoya) FLIM/1.14.2 (Yagi-Nishiguchi) APEL/10.2 Emacs/21.3 (sparc-sun-solaris2.6) MULE/5.0 (SAKAKI) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.2 Precedence: list List-Id: Emacs development discussions. List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Xref: main.gmane.org gmane.emacs.devel:17901 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:17901 I've just noticed that (char-after MARKER) returns a character in the current buffer even if the buffer of MARKER is the different one. I think all such functions that accept a marker as a position ignores the buffer infomation of the marker. It seems that Emacs treats markes as above from the beginning, so this should be regarded as a feature, not a bug. But I could't find a place describing that in info. lispref/markers.texi has this paragraph. A marker specifies a buffer and a position in that buffer. The marker can be used to represent a position in the functions that require one, just as an integer could be used. @xref{Positions}, for a complete description of positions. Shouldn't we say something about the above feature here? --- Ken'ichi HANDA handa@m17n.org