From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Tom Davey Newsgroups: gmane.emacs.help Subject: Puzzling behavior from echo area: truncates prompt string at 100 characters? Date: Tue, 20 Dec 2011 20:29:57 -0500 Message-ID: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 X-Trace: dough.gmane.org 1324431014 11996 80.91.229.12 (21 Dec 2011 01:30:14 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 21 Dec 2011 01:30:14 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Dec 21 02:30:09 2011 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1RdB0Q-0004zc-Ib for geh-help-gnu-emacs@m.gmane.org; Wed, 21 Dec 2011 02:30:06 +0100 Original-Received: from localhost ([::1]:47698 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RdB0P-0008Hs-Pl for geh-help-gnu-emacs@m.gmane.org; Tue, 20 Dec 2011 20:30:05 -0500 Original-Received: from eggs.gnu.org ([140.186.70.92]:39661) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RdB0K-0008HU-No for help-gnu-emacs@gnu.org; Tue, 20 Dec 2011 20:30:01 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RdB0I-0000ai-VY for help-gnu-emacs@gnu.org; Tue, 20 Dec 2011 20:30:00 -0500 Original-Received: from mail-iy0-f169.google.com ([209.85.210.169]:38018) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RdB0I-0000aZ-Rh for help-gnu-emacs@gnu.org; Tue, 20 Dec 2011 20:29:58 -0500 Original-Received: by iacb35 with SMTP id b35so10962254iac.0 for ; Tue, 20 Dec 2011 17:29:57 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; bh=fteVGk8unPx10RVB3N7zSW1FZH1XP4BSG1LWed2P2Z0=; b=MQd7iumtVZ64b60WwDN5gn2vl6tXDg5PsQlQVyj8CiMbH3cj89Cggz4Z/YSCWAm7aE YxkC+En5N7MNQ7cKjwOztz3mirQzJOl9aBSWcv5T0X3Wy2sTvZGMnx/PL8G/bjfgDJEm /KwI+8SKKNL5yNPKq2HsXu7uRVoSqSenvz8ks= Original-Received: by 10.50.183.199 with SMTP id eo7mr612273igc.5.1324430997563; Tue, 20 Dec 2011 17:29:57 -0800 (PST) Original-Received: by 10.231.132.2 with HTTP; Tue, 20 Dec 2011 17:29:57 -0800 (PST) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 209.85.210.169 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:83233 Archived-At: Hello folks, I'm using Emacs 24.0.50.1. The following "message" command, with an arbitrarily chosen argument string of exactly 150 characters -- (message "0123456789 123456789 223456789 323456789 423456789 523456789 623456789 723456789 823456789 923456789 023456789 123456789 223456789 323456789 423456789") -- displays the entire length of the string (all 150 characters) in the minibuffer's echo area, as one would expect. In fact, I find that the echo area frame will expand in height to display even much longer messages. (The variable "message-truncate-lines" is nil.) However, if the same 150-character string becomes an argument to an "(interactive)" declaration in a defun() function, like this -- (interactive "c0123456789 123456789 223456789 323456789 423456789 523456789 623456789 723456789 823456789 923456789 023456789 123456789 223456789 323456789 423456789") -- then the display of the prompt string in the echo area is truncated. Only the first 99 characters display; the remainder of the echo area (to the right) is unused and empty. Nor does the echo area's frame expand in height, as it does with the "message" function. Naturally, in a real-world application my prompt string would not be composed of integers but of helpful alphanumeric text. However, no matter what form of a prompt string I supply to the "interactive" declaration, the echo area truncates it at the 100th character. Does anybody have an idea how I might get a long prompt in an interactive declaration to fully display in the echo area? Thanks, Tom Davey -- Tom Davey tom@tomdavey.com New York NY USA