From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Richard Stallman Newsgroups: gmane.emacs.devel Subject: Re: problem of marker as position Date: Thu, 20 Nov 2003 23:09:17 -0500 Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: References: <200311190023.JAA14877@etlken.m17n.org> Reply-To: rms@gnu.org NNTP-Posting-Host: deer.gmane.org X-Trace: sea.gmane.org 1069388543 29548 80.91.224.253 (21 Nov 2003 04:22:23 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 21 Nov 2003 04:22:23 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Fri Nov 21 05:22:20 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 1AN2oG-0004kX-00 for ; Fri, 21 Nov 2003 05:22:20 +0100 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1AN2oG-0006Ir-00 for ; Fri, 21 Nov 2003 05:22:20 +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 1AN3jp-0004rj-6p for emacs-devel@quimby.gnus.org; Fri, 21 Nov 2003 00:21:49 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24) id 1AN3hO-000323-H4 for emacs-devel@gnu.org; Fri, 21 Nov 2003 00:19:18 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24) id 1AN3hA-0002nd-58 for emacs-devel@gnu.org; Fri, 21 Nov 2003 00:19:12 -0500 Original-Received: from [199.232.76.164] (helo=fencepost.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.24) id 1AN3h8-0002jI-HF for emacs-devel@gnu.org; Fri, 21 Nov 2003 00:19:02 -0500 Original-Received: from rms by fencepost.gnu.org with local (Exim 4.24) id 1AN2bd-0006U4-2s; Thu, 20 Nov 2003 23:09:17 -0500 Original-To: Kenichi Handa In-reply-to: <200311190023.JAA14877@etlken.m17n.org> (message from Kenichi Handa on Wed, 19 Nov 2003 09:23:05 +0900 (JST)) 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:18002 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:18002 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. Right now, every function that accepts a marker or an integer handles the marker by converting it to an integer. For some functions, such as arithmetic, that's the only thing to do. But you could argue that functions that look at a position in a buffer ought to use the marker's buffer when given a marker. In some sense, that would be cleaner. However, it would also be a big incompatible change.