GNU bug report logs -
#1301
previous-single-char-property-change on string with no match returns string end
Previous Next
Reported by: "Tim Toolan" <toolan <at> ele.uri.edu>
Date: Mon, 3 Nov 2008 13:45:02 UTC
Severity: normal
Done: martin rudalics <rudalics <at> gmx.at>
Bug is archived. No further changes may be made.
To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 1301 in the body.
You can then email your comments to 1301 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded to
bug-submit-list <at> lists.donarmstrong.com, Emacs Bugs <bug-gnu-emacs <at> gnu.org>
:
bug#1301
; Package
emacs
.
Full text and
rfc822 format available.
Acknowledgement sent to
"Tim Toolan" <toolan <at> ele.uri.edu>
:
New bug report received and forwarded. Copy sent to
Emacs Bugs <bug-gnu-emacs <at> gnu.org>
.
Full text and
rfc822 format available.
Message #5 received at submit <at> emacsbugs.donarmstrong.com (full text, mbox):
When searching a string using previous-single-char-property-change, and no
change is found, it returns the maximum valid position in object, instead
of the minimum valid position in object as stated in the emacs lisp manual.
This can be reproduced by the following lisp statement, which returns 10
instead of 0.
(previous-single-char-property-change 10 'display "0123456789")
In GNU Emacs 22.2.1 (x86_64-pc-linux-gnu, X toolkit, Xaw3d scroll bars)
of 2008-06-12 on aquarius
Windowing system distributor `The X.Org Foundation', version 11.0.10300000
configured using `configure '--prefix=/usr' '--host=x86_64-pc-linux-gnu' '--mandir=/usr/share/man' '--infodir=/usr/share/info' '--datadir=/usr/share' '--sysconfdir=/etc' '--localstatedir=/var/lib' '--program-suffix=-emacs-22' '--infodir=/usr/share/info/emacs-22' '--without-carbon' '--with-sound' '--with-x' '--with-toolkit-scroll-bars' '--with-jpeg' '--with-tiff' '--with-gif' '--with-png' '--with-xpm' '--with-x-toolkit=athena' '--without-gtk' '--without-hesiod' '--with-kerberos' '--with-kerberos5' '--libdir=/usr/lib64' '--build=x86_64-pc-linux-gnu' 'build_alias=x86_64-pc-linux-gnu' 'host_alias=x86_64-pc-linux-gnu' 'CFLAGS=-march=nocona -pipe -O2' 'LDFLAGS=''
Important settings:
value of $LC_ALL: nil
value of $LC_COLLATE: nil
value of $LC_CTYPE: nil
value of $LC_MESSAGES: nil
value of $LC_MONETARY: nil
value of $LC_NUMERIC: nil
value of $LC_TIME: nil
value of $LANG: C
locale-coding-system: nil
default-enable-multibyte-characters: t
Major mode: Emacs-Lisp
Minor modes in effect:
show-paren-mode: t
tooltip-mode: t
mouse-wheel-mode: t
file-name-shadow-mode: t
global-font-lock-mode: t
font-lock-mode: t
blink-cursor-mode: t
unify-8859-on-encoding-mode: t
utf-translate-cjk-mode: t
auto-compression-mode: t
column-number-mode: t
line-number-mode: t
transient-mark-mode: t
Recent input:
M-x r e p o r t <tab> <return>
Recent messages:
Warning: no fonts matching `-*-fixed-medium-r-normal-*-16-*-*-*-*-*-iso8859-1' available [2 times]
("emacs" "pscpc.el")
Loading paren...done
Loading /usr/share/emacs/site-lisp/auctex/tex-site.el (source)...done
Loading /u/staff/toolan/.emacs.d/auxlabel.el (source)...done
Loading /u/staff/toolan/.emacs.d/auxlabel.el (source)...done
For information about GNU Emacs and the GNU system, type C-h C-a.
Loading emacsbug...
Loading regexp-opt...done
Loading emacsbug...done
Reply sent to
martin rudalics <rudalics <at> gmx.at>
:
You have taken responsibility.
Full text and
rfc822 format available.
Notification sent to
"Tim Toolan" <toolan <at> ele.uri.edu>
:
bug acknowledged by developer.
Full text and
rfc822 format available.
Message #10 received at 1301-done <at> emacsbugs.donarmstrong.com (full text, mbox):
> When searching a string using previous-single-char-property-change, and no
> change is found, it returns the maximum valid position in object, instead
> of the minimum valid position in object as stated in the emacs lisp manual.
>
> This can be reproduced by the following lisp statement, which returns 10
> instead of 0.
>
> (previous-single-char-property-change 10 'display "0123456789")
>
>
> In GNU Emacs 22.2.1 (x86_64-pc-linux-gnu, X toolkit, Xaw3d scroll bars)
> of 2008-06-12 on aquarius
Thank you very much for the report.
Fixed for Emacs 23.0.60 as
2008-11-03 Martin Rudalics <rudalics <at> gmx.at>
* textprop.c (Fprevious_single_char_property_change): Return 0
when there's no change in a string. (Bug#1301)
martin
bug archived.
Request was from
Debbugs Internal Request <don <at> donarmstrong.com>
to
internal_control <at> emacsbugs.donarmstrong.com
.
(Tue, 02 Dec 2008 15:24:03 GMT)
Full text and
rfc822 format available.
This bug report was last modified 16 years and 204 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.