bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug in field-string and field-string-no-properties


From: Greg Hill
Subject: bug in field-string and field-string-no-properties
Date: Thu, 14 Aug 2003 14:00:49 -0700

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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]