From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Ben Wing Newsgroups: gmane.emacs.devel Subject: API changes Date: Sat, 27 Apr 2002 06:39:11 -0700 Sender: emacs-devel-admin@gnu.org Message-ID: NNTP-Posting-Host: localhost.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Trace: main.gmane.org 1019914842 17579 127.0.0.1 (27 Apr 2002 13:40:42 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Sat, 27 Apr 2002 13:40:42 +0000 (UTC) Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by main.gmane.org with esmtp (Exim 3.33 #1 (Debian)) id 171SRO-0004ZQ-00 for ; Sat, 27 Apr 2002 15:40:42 +0200 Original-Received: from fencepost.gnu.org ([199.232.76.164]) by quimby.gnus.org with esmtp (Exim 3.12 #1 (Debian)) id 171SUX-00083r-00 for ; Sat, 27 Apr 2002 15:43:57 +0200 Original-Received: from localhost ([127.0.0.1] helo=fencepost.gnu.org) by fencepost.gnu.org with esmtp (Exim 3.34 #1 (Debian)) id 171SR8-0004Dh-00; Sat, 27 Apr 2002 09:40:26 -0400 Original-Received: from falcon.mail.pas.earthlink.net ([207.217.120.74] helo=falcon.prod.itd.earthlink.net) by fencepost.gnu.org with esmtp (Exim 3.34 #1 (Debian)) id 171SOb-0003pO-00 for ; Sat, 27 Apr 2002 09:37:49 -0400 Original-Received: from sdn-ap-009caburbp0505.dialsprint.net ([63.184.81.251] helo=666.com) by falcon.prod.itd.earthlink.net with esmtp (Exim 3.33 #2) id 171SOU-0004ky-00; Sat, 27 Apr 2002 06:37:45 -0700 User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:0.9.4.1) Gecko/20020314 Netscape6/6.2.2 X-Accept-Language: en-us Original-To: emacs-devel@gnu.org, xemacs-design@xemacs.org Errors-To: emacs-devel-admin@gnu.org X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.0.9 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Emacs development discussions. List-Unsubscribe: , List-Archive: Xref: main.gmane.org gmane.emacs.devel:3331 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:3331 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