From toolan@ele.uri.edu Mon Nov 3 05:38:15 2008 X-Spam-Checker-Version: SpamAssassin 3.2.3-bugs.debian.org_2005_01_02 (2007-08-08) on rzlab.ucr.edu X-Spam-Level: X-Spam-Status: No, score=-4.9 required=4.0 tests=BAYES_00,FOURLA, MSGID_FROM_MTA_HEADER,RCVD_IN_DNSWL_MED autolearn=ham version=3.2.3-bugs.debian.org_2005_01_02 Received: (at submit) by emacsbugs.donarmstrong.com; 3 Nov 2008 13:38:15 +0000 Received: from lists.gnu.org (lists.gnu.org [199.232.76.165]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id mA3DcBbH018301 for ; Mon, 3 Nov 2008 05:38:12 -0800 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KwzdD-0008Lk-2K for bug-gnu-emacs@gnu.org; Mon, 03 Nov 2008 08:38:11 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KwzdB-0008LB-JX for bug-gnu-emacs@gnu.org; Mon, 03 Nov 2008 08:38:10 -0500 Received: from [199.232.76.173] (port=36873 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KwzdB-0008L8-Dv for bug-gnu-emacs@gnu.org; Mon, 03 Nov 2008 08:38:09 -0500 Received: from orca.ele.uri.edu ([131.128.51.63]:50084) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1KwzdA-0002JW-TS for bug-gnu-emacs@gnu.org; Mon, 03 Nov 2008 08:38:09 -0500 Received: from lobster (lobster.ele.uri.edu [131.128.51.4]) by orca.ele.uri.edu (8.14.3/8.14.3) with SMTP id mA3Dc0C2025214 for ; Mon, 3 Nov 2008 08:38:00 -0500 Message-Id: <200811031338.mA3Dc0C2025214@orca.ele.uri.edu> Received: by lobster (sSMTP sendmail emulation); Mon, 3 Nov 2008 08:38:00 -0500 From: "Tim Toolan" Date: Mon, 3 Nov 2008 08:38:00 -0500 To: bug-gnu-emacs@gnu.org Subject: previous-single-char-property-change on string with no match returns string end X-Scanned-By: MIMEDefang 2.64 on 131.128.51.63 X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) 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 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 From rudalics@gmx.at Mon Nov 3 09:37:15 2008 X-Spam-Checker-Version: SpamAssassin 3.2.3-bugs.debian.org_2005_01_02 (2007-08-08) on rzlab.ucr.edu X-Spam-Level: X-Spam-Status: No, score=-6.9 required=4.0 tests=AWL,BAYES_00,HAS_BUG_NUMBER autolearn=ham version=3.2.3-bugs.debian.org_2005_01_02 Received: (at 1301-done) by emacsbugs.donarmstrong.com; 3 Nov 2008 17:37:15 +0000 Received: from mail.gmx.net (mail.gmx.net [213.165.64.20]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with SMTP id mA3HbBe0013651 for <1301-done@emacsbugs.donarmstrong.com>; Mon, 3 Nov 2008 09:37:13 -0800 Received: (qmail invoked by alias); 03 Nov 2008 17:37:05 -0000 Received: from 88-117-47-134.adsl.highway.telekom.at (EHLO [88.117.47.134]) [88.117.47.134] by mail.gmx.net (mp053) with SMTP; 03 Nov 2008 18:37:05 +0100 X-Authenticated: #14592706 X-Provags-ID: V01U2FsdGVkX184r/gGVJo4t//fQnM9MRRq03OehAi3rpGpvv85p/ l9gd13NMwPhSxk Message-ID: <490F3655.1050101@gmx.at> Date: Mon, 03 Nov 2008 18:35:17 +0100 From: martin rudalics User-Agent: Thunderbird 2.0.0.16 (Windows/20080708) MIME-Version: 1.0 To: 1301-done@debbugs.gnu.org CC: Tim Toolan Subject: Re: bug#1301: previous-single-char-property-change on string with no match returns string end References: <200811031338.mA3Dc0C2025214@orca.ele.uri.edu> In-Reply-To: <200811031338.mA3Dc0C2025214@orca.ele.uri.edu> Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit X-Y-GMX-Trusted: 0 X-FuHaFi: 0.58 > 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 * textprop.c (Fprevious_single_char_property_change): Return 0 when there's no change in a string. (Bug#1301) martin From unknown Sat Jun 21 03:12:55 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: $requester Subject: Internal Control Message-Id: bug archived. Date: Tue, 02 Dec 2008 15:24:03 +0000 User-Agent: Fakemail v42.6.9 # A New Hope # A log time ago, in a galaxy far, far away # something happened. # # Magically this resulted in the following # action being taken, but this fake control # message doesn't tell you why it happened # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator