unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* Compositions documentation
@ 2009-02-06 15:23 Eli Zaretskii
  2009-02-07  2:00 ` Stefan Monnier
  2009-02-10  6:26 ` Kenichi Handa
  0 siblings, 2 replies; 3+ messages in thread
From: Eli Zaretskii @ 2009-02-06 15:23 UTC (permalink / raw)
  To: emacs-devel

I see that the Lisp APIs that deal with compositions
(composition-get-gstring, compose-region, compose-string,
find-composition, etc.) are not documented in the ELisp manual.
Should they be?  Or are these APIs so obscure that no one should futz
with them?




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

* Re: Compositions documentation
  2009-02-06 15:23 Compositions documentation Eli Zaretskii
@ 2009-02-07  2:00 ` Stefan Monnier
  2009-02-10  6:26 ` Kenichi Handa
  1 sibling, 0 replies; 3+ messages in thread
From: Stefan Monnier @ 2009-02-07  2:00 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: emacs-devel

> I see that the Lisp APIs that deal with compositions
> (composition-get-gstring, compose-region, compose-string,
> find-composition, etc.) are not documented in the ELisp manual.
> Should they be?  Or are these APIs so obscure that no one should futz
> with them?

FWIW, `compose-region' is used in the "pretty lambda" trick, which
I have adapted to sml-mode, haskell-mode, and a bunch of others.


        Stefan




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

* Re: Compositions documentation
  2009-02-06 15:23 Compositions documentation Eli Zaretskii
  2009-02-07  2:00 ` Stefan Monnier
@ 2009-02-10  6:26 ` Kenichi Handa
  1 sibling, 0 replies; 3+ messages in thread
From: Kenichi Handa @ 2009-02-10  6:26 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: emacs-devel

In article <umycztwrm.fsf@gnu.org>, Eli Zaretskii <eliz@gnu.org> writes:

> I see that the Lisp APIs that deal with compositions
> (composition-get-gstring, compose-region, compose-string,
> find-composition, etc.) are not documented in the ELisp manual.
> Should they be?  Or are these APIs so obscure that no one should futz
> with them?

Compose-region and compose-string are described in
etc/NEWS.21 as this:

*** The function `compose-region' takes new arguments COMPONENTS and
MODIFICATION-FUNC.  With COMPONENTS, you can specify not only a
composition rule but also characters to be composed.  Such characters
may differ between buffer and string text.

*** The function `compose-string' takes new arguments START, END,
COMPONENTS, and MODIFICATION-FUNC.

*** The function `compose-string' puts text property `composition'
directly on the argument STRING instead of returning a new string.
Likewise, the function `decompose-string' just removes text property
`composition' from STRING.

*** The new function `find-composition' returns information about
a composition at a specified position in a buffer or a string.

If they are not documented now, perhaps RMS decided that
it's not worthwhile.  But, I think it is better to document
them.

On the other hand, composition-get-gstring and the other
several new functions in composite.el are only for Emacs
internal.

---
Kenichi Handa
handa@m17n.org




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

end of thread, other threads:[~2009-02-10  6:26 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-02-06 15:23 Compositions documentation Eli Zaretskii
2009-02-07  2:00 ` Stefan Monnier
2009-02-10  6:26 ` Kenichi Handa

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