GNU bug report logs - #1301
previous-single-char-property-change on string with no match returns string end

Previous Next

Package: emacs;

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.

Full log


Message #10 received at 1301-done <at> emacsbugs.donarmstrong.com (full text, mbox):

From: martin rudalics <rudalics <at> gmx.at>
To: 1301-done <at> debbugs.gnu.org
Cc: Tim Toolan <toolan <at> ele.uri.edu>
Subject: Re: bug#1301: previous-single-char-property-change on string with
 no	match returns string end
Date: Mon, 03 Nov 2008 18:35:17 +0100
> 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





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.