unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* text_property_stickiness
@ 2006-06-24 20:27 Chong Yidong
  2006-06-25 15:33 ` text_property_stickiness Richard Stallman
  0 siblings, 1 reply; 11+ messages in thread
From: Chong Yidong @ 2006-06-24 20:27 UTC (permalink / raw)


Regarding the following FOR-RELEASE item:

  ** text_property_stickiness can be called with a POS value that is
     before BEGV.

  text_property_stickiness is called from get_pos_property, which is
  called from find_field, which is called from various user-level
  functions in editfns.c.

This little change to text_property_stickiness should be all that's
needed to fix it, no?

*** emacs/src/textprop.c.~1.147.~	2006-05-17 13:33:46.000000000 -0400
--- emacs/src/textprop.c	2006-06-24 16:24:46.000000000 -0400
***************
*** 1787,1792 ****
--- 1787,1794 ----
  	/* PROP is rear-non-sticky.  */
  	is_rear_sticky = 0;
      }
+   else
+     return 0;
  
    /* Consider following character.  */
    front_sticky = Fget_text_property (pos, Qfront_sticky, buffer);

^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2006-06-29 12:59 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-06-24 20:27 text_property_stickiness Chong Yidong
2006-06-25 15:33 ` text_property_stickiness Richard Stallman
2006-06-25 20:59   ` text_property_stickiness Chong Yidong
2006-06-26  4:33     ` text_property_stickiness Miles Bader
2006-06-26 17:50       ` text_property_stickiness Chong Yidong
2006-06-27  2:03         ` text_property_stickiness Miles Bader
2006-06-27 16:16           ` text_property_stickiness Richard Stallman
2006-06-28  0:04             ` text_property_stickiness Chong Yidong
2006-06-29 12:59               ` text_property_stickiness Richard Stallman
2006-06-27 10:34       ` text_property_stickiness Richard Stallman
2006-06-26 11:33     ` text_property_stickiness Richard Stallman

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).