From: Greg Hill <ghill@synergymicro.com>
Subject: bug in field-string and field-string-no-properties
Date: Thu, 14 Aug 2003 14:00:49 -0700 [thread overview]
Message-ID: <p04310104bb61a5d84ffb@[198.17.100.22]> (raw)
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
next reply other threads:[~2003-08-14 21:00 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-08-14 21:00 Greg Hill [this message]
2003-08-14 21:21 ` bug in field-string and field-string-no-properties John Paul Wallington
-- strict thread matches above, loose matches on Subject: below --
2003-08-27 22:12 [ghill@synergymicro.com: Re: Re: bug in field-string and field-string-no-properties] Richard Stallman
2003-08-28 21:32 ` Fwd: Re: Re: bug in field-string and field-string-no-properties Stefan Monnier
2003-08-29 2:20 ` Greg Hill
2003-08-29 2:36 ` Miles Bader
2003-08-29 18:53 ` Kevin Rodgers
2003-08-29 21:55 ` Greg Hill
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='p04310104bb61a5d84ffb@[198.17.100.22]' \
--to=ghill@synergymicro.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.