From: Ben Wing <ben@666.com>
Subject: API changes
Date: Sat, 27 Apr 2002 06:39:11 -0700 [thread overview]
Message-ID: <aae9oq$h5b$2@main.gmane.org> (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
next reply other threads:[~2002-04-27 13:39 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-04-27 13:39 Ben Wing [this message]
[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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='aae9oq$h5b$2@main.gmane.org' \
--to=ben@666.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.