unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* API changes
@ 2002-04-27 13:39 Ben Wing
  0 siblings, 0 replies; 13+ messages in thread
From: Ben Wing @ 2002-04-27 13:39 UTC (permalink / raw)


I've made the following API changes to stuff that's also in GNU Emacs:

scroll-up/scroll-down take a second optional argument, WINDOW.

commandp takes a second optional argument, CALL-INTERACTIVELY, which 
indicates whether the given item can be executed by `call-interactively' 
(normally, the return value indicates whether the item can be executed 
by `command-execute'; this includes vectors and strings, which are not 
allowed by `call-interactively').  this is a clean way of determining, 
for example, how to execute a callback in a menu spec or the like -- 
such callbacks are defined as "if an interactive thing, use 
call-interactively; else, use eval".

Recently I also added the function

(truncate-string-with-continuation-dots STR END-COLUMN &optional DOTS-STR)

Documentation:
Truncate string STR to end at column END-COLUMN, adding dots if needed.
The dots (normally `...', but can be controlled by DOTS-STR)' will be added
in such a way that the total string occupies no more than END-COLUMN
columns -- i.e. if the string goes past END-COLUMN, it will be truncated
somewhere short of END-COLUMN so that, with the dots added, the string
occupies END-COLUMN columns.

"columns" in here refers to the same thing that 
`truncate-string-to-width' deals in, i.e. "display columns" where 
Japanese characters get two.

ben

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

end of thread, other threads:[~2002-05-20  3:07 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <3CCAA9FF.4000905@666.com>
2002-04-28  0:58 ` API changes Daniel Pittman
2002-04-28  5:48 ` Colin Walters
2002-04-28 23:45 ` Stefan Monnier
2002-04-29  5:05 ` Richard Stallman
2002-05-04  6:26   ` Colin Walters
     [not found]   ` <1020493576.5286.5.camel@space-ghost>
2002-05-17 12:30     ` Ben Wing
2002-05-18 18:49       ` Richard Stallman
2002-05-18 19:54       ` Colin Walters
     [not found]         ` <200205191940.g4JJeij24049@aztec.santafe.edu>
2002-05-19 20:09           ` Colin Walters
2002-05-20  3:07             ` Stephen J. Turnbull
     [not found] ` <1019972901.27106.63.camel@space-ghost>
2002-04-29  5:05   ` Richard Stallman
2002-04-29  6:25     ` Colin Walters
2002-04-27 13:39 Ben Wing

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