From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Greg Hill Newsgroups: gmane.emacs.bugs Subject: bug in field-string and field-string-no-properties Date: Thu, 14 Aug 2003 14:00:49 -0700 Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Message-ID: NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" ; format="flowed" X-Trace: sea.gmane.org 1060895034 27949 80.91.224.253 (14 Aug 2003 21:03:54 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 14 Aug 2003 21:03:54 +0000 (UTC) Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Aug 14 23:03:53 2003 Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 19nPGC-0003nV-00 for ; Thu, 14 Aug 2003 23:03:52 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.20) id 19nPFJ-0008QG-S1 for geb-bug-gnu-emacs@m.gmane.org; Thu, 14 Aug 2003 17:02:57 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.20) id 19nPFF-0008P8-Me for bug-gnu-emacs@gnu.org; Thu, 14 Aug 2003 17:02:53 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.20) id 19nPEj-0007Pn-2v for bug-gnu-emacs@gnu.org; Thu, 14 Aug 2003 17:02:52 -0400 Original-Received: from [153.105.4.30] (helo=synergymicro.com) by monty-python.gnu.org with esmtp (Exim 4.20) id 19nPEi-0006Wc-3v for bug-gnu-emacs@gnu.org; Thu, 14 Aug 2003 17:02:20 -0400 Original-Received: from synergy.synergy.encinitas.ca.us ([153.105.4.29]) by synergymicro.com (8.9.3/8.9.3) with ESMTP id OAA08007 for ; Thu, 14 Aug 2003 14:03:33 -0700 Original-Received: from [198.17.100.22] (G_Hill_Mac [198.17.100.22]) by synergy.synergy.encinitas.ca.us (8.12.8/8.12.8) with ESMTP id h7EL1fwr012883 for ; Thu, 14 Aug 2003 14:01:41 -0700 Original-To: bug-gnu-emacs@gnu.org X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.2 Precedence: list List-Id: Bug reports for GNU Emacs, the Swiss army knife of text editors List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.bugs:5544 X-Report-Spam: http://spam.gmane.org/gmane.emacs.bugs:5544 There appears to be a bug in field-string and field-string-no-properties. When (point) or the POS argument is at the first character of a field, the function returns an empty string. The following fragment of code, executed in the scratch buffer, illustrates the problem. (progn (set-buffer (get-buffer-create "junk")) (erase-buffer) (insert "Test") (put-text-property (point-min) (point-max) 'field 1) (message "field-string at 1 = '%s'\nfield-string at 2 = '%s'" (field-string-no-properties 1) (field-string-no-properties 2))) platform: GNU Emacs 21.2.2 (sparc-sun-solaris2.7, X toolkit) --Greg