From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Luc Teirlinck Newsgroups: gmane.emacs.devel Subject: Re: default-text-properties Date: Wed, 19 May 2004 22:12:27 -0500 (CDT) Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: <200405200312.i4K3CRc18707@raven.dms.auburn.edu> References: <200405200133.i4K1XMT18564@raven.dms.auburn.edu> <200405200301.i4K31BR18694@raven.dms.auburn.edu> NNTP-Posting-Host: deer.gmane.org X-Trace: sea.gmane.org 1085023380 25391 80.91.224.253 (20 May 2004 03:23:00 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 20 May 2004 03:23:00 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Thu May 20 05:22:54 2004 Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1BQe90-0002Qp-00 for ; Thu, 20 May 2004 05:22:54 +0200 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1BQe90-0000lC-00 for ; Thu, 20 May 2004 05:22:54 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.34) id 1BQe55-0001Ny-OV for emacs-devel@quimby.gnus.org; Wed, 19 May 2004 23:18:51 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.34) id 1BQe0n-00089c-6F for emacs-devel@gnu.org; Wed, 19 May 2004 23:14:25 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.34) id 1BQdzi-0006eG-19 for emacs-devel@gnu.org; Wed, 19 May 2004 23:13:51 -0400 Original-Received: from [131.204.53.104] (helo=manatee.dms.auburn.edu) by monty-python.gnu.org with esmtp (Exim 4.34) id 1BQdzH-0006Me-G1 for emacs-devel@gnu.org; Wed, 19 May 2004 23:12:51 -0400 Original-Received: from raven.dms.auburn.edu (raven.dms.auburn.edu [131.204.53.29]) by manatee.dms.auburn.edu (8.12.10/8.12.10) with ESMTP id i4K3CoTS015084; Wed, 19 May 2004 22:12:50 -0500 (CDT) Original-Received: (from teirllm@localhost) by raven.dms.auburn.edu (8.11.6+Sun/8.11.6) id i4K3CRc18707; Wed, 19 May 2004 22:12:27 -0500 (CDT) X-Authentication-Warning: raven.dms.auburn.edu: teirllm set sender to teirllm@dms.auburn.edu using -f Original-To: teirllm@dms.auburn.edu In-reply-to: <200405200301.i4K31BR18694@raven.dms.auburn.edu> (message from Luc Teirlinck on Wed, 19 May 2004 22:01:11 -0500 (CDT)) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.4 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:23757 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:23757 Maybe yet another problem with default-text-properties, illustrated with the following ielm run: *** Welcome to IELM *** Type (describe-mode) for help. ELISP> (set-buffer "*scratch*") # ELISP> (setq default-text-properties '(foo 69)) (foo 69) ELISP> (setq char-property-alias-alist '((foo bar))) ((foo bar)) ELISP> (get-text-property (point-max) 'foo) 69 ELISP> This contradicts the last line of get-text-property's docstring: get-text-property is a built-in function in `C source code'. (get-text-property position prop &optional object) Return the value of position's property prop, in object. object is optional and defaults to the current buffer. If position is at the end of object, the value is nil. I suspect again that this is a bug. If it is intentional, the documentation should be fixed. I could take care of both bugs(?) I reported, but I first want to make completely sure that they are really bugs and not, for some strange reason, intentional. Sincerely, Luc.