unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* set-text-properties, remove-set-properties, add-text-properties: 1) doc string 2) return value
@ 2005-12-28 21:59 Drew Adams
  2005-12-29  3:18 ` Stefan Monnier
  0 siblings, 1 reply; 14+ messages in thread
From: Drew Adams @ 2005-12-28 21:59 UTC (permalink / raw)


1. The set-text-properties doc string should say what the function returns.

2. Wouldn't it be more useful for set-text-properties,
remove-set-properties, and add-text-properties to return the modified OBJECT
(or nil if no modification occurred)? In case OBJECT is a buffer (or nil),
the modified buffer substring could be returned.

Perhaps it's too late to make the change in #2, if existing code depends on
the current value - but maybe not:

 - In the case of set-text-properties, that value is not even documented.

 - In the case of remove-set-properties and add-text-properties, perhaps
existing code only tests whether the returned value is null (instead of
testing equality with t).

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

end of thread, other threads:[~2006-02-19 15:14 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-12-28 21:59 set-text-properties, remove-set-properties, add-text-properties: 1) doc string 2) return value Drew Adams
2005-12-29  3:18 ` Stefan Monnier
2005-12-29  4:15   ` Drew Adams
2005-12-30  2:18     ` Richard M. Stallman
2005-12-30  3:47       ` Luc Teirlinck
2005-12-30  3:57       ` Luc Teirlinck
2005-12-30 11:24         ` David Kastrup
2005-12-29 11:10   ` Kim F. Storm
2005-12-29 16:03     ` Drew Adams
2005-12-29 19:41       ` Kevin Rodgers
2005-12-30  0:57         ` Juri Linkov
2006-02-18 19:37           ` Drew Adams
2006-02-19 15:14             ` Stefan Monnier
2005-12-29 22:41       ` Kim F. Storm

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).