From: Eli Zaretskii Date: Sun, 24 Apr 2011 16:28:57 +0000 (+0300) Subject: Minor cleanup in src/textprop.c. X-Git-Tag: emacs-pretest-24.0.90~104^2~275^2~215^2~26 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=e2ad650c71e9f0477163532e708e1054452fa34f;p=emacs.git Minor cleanup in src/textprop.c. src/textprop.c (syms_of_textprop): Remove dead code. (copy_text_properties): Delete obsolete commentary about an interface that was deleted long ago. Fix typos in the description of arguments. --- diff --git a/src/ChangeLog b/src/ChangeLog index 7efd8dad6cc..f4dd3492001 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,5 +1,10 @@ 2011-04-24 Eli Zaretskii + * textprop.c (syms_of_textprop): Remove dead code. + (copy_text_properties): Delete obsolete commentary about an + interface that was deleted long ago. Fix typos in the description + of arguments. + * msdos.c (XMenuActivate, XMenuAddSelection): Adjust argument list to changes in oldXMenu/XMenu.h from 2011-04-16. : Constify. diff --git a/src/textprop.c b/src/textprop.c index 1c56dfc0cf0..a224c121e21 100644 --- a/src/textprop.c +++ b/src/textprop.c @@ -1756,15 +1756,9 @@ text_property_stickiness (Lisp_Object prop, Lisp_Object pos, Lisp_Object buffer) } -/* I don't think this is the right interface to export; how often do you - want to do something like this, other than when you're copying objects - around? +/* Copying properties between objects. */ - I think it would be better to have a pair of functions, one which - returns the text properties of a region as a list of ranges and - plists, and another which applies such a list to another object. */ - -/* Add properties from SRC to SRC of SRC, starting at POS in DEST. +/* Add properties from START to END of SRC, starting at POS in DEST. SRC and DEST may each refer to strings or buffers. Optional sixth argument PROP causes only that property to be copied. Properties are copied to DEST as if by `add-text-properties'. @@ -2304,6 +2298,4 @@ inherits it if NONSTICKINESS is nil. The `front-sticky' and defsubr (&Sremove_list_of_text_properties); defsubr (&Stext_property_any); defsubr (&Stext_property_not_all); -/* defsubr (&Serase_text_properties); */ -/* defsubr (&Scopy_text_properties); */ }