From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Stephan Stahl" Newsgroups: gmane.emacs.devel Subject: show_help_echo truncates unconditionally Date: Tue, 29 Mar 2005 08:25:05 +0200 (CEST) Message-ID: <20836.217.194.34.123.1112077505.squirrel@wwws.franken.de> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 X-Trace: sea.gmane.org 1112078271 5337 80.91.229.2 (29 Mar 2005 06:37:51 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 29 Mar 2005 06:37:51 +0000 (UTC) Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Mar 29 08:37:49 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1DGAMF-0001tc-KS for ged-emacs-devel@m.gmane.org; Tue, 29 Mar 2005 08:37:47 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DGAcU-0004j1-Fs for ged-emacs-devel@m.gmane.org; Tue, 29 Mar 2005 01:54:34 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1DGAbi-0004T6-4y for emacs-devel@gnu.org; Tue, 29 Mar 2005 01:53:47 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1DGAbX-0004OM-00 for emacs-devel@gnu.org; Tue, 29 Mar 2005 01:53:37 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DGAbV-0004M2-Ur for emacs-devel@gnu.org; Tue, 29 Mar 2005 01:53:33 -0500 Original-Received: from [193.175.24.27] (helo=ilsa.franken.de) by monty-python.gnu.org with esmtp (TLSv1:DES-CBC3-SHA:168) (Exim 4.34) id 1DGA9y-0004hM-Rv for emacs-devel@gnu.org; Tue, 29 Mar 2005 01:25:07 -0500 Original-Received: from wwws.franken.de (mail-n.franken.de [193.175.24.27]) by ilsa.franken.de (Postfix) with SMTP id 6655E245C3 for ; Tue, 29 Mar 2005 08:25:05 +0200 (CEST) Original-Received: from 217.194.34.123 (SquirrelMail authenticated user eos) by wwws.franken.de with HTTP; Tue, 29 Mar 2005 08:25:05 +0200 (CEST) Original-To: emacs-devel@gnu.org User-Agent: SquirrelMail/1.4.0 X-Priority: 3 Importance: Normal X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:35285 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:35285 Hi. When tooltip-mode is disabled or more general when show-help-funtion is nil the help messages are shown in the echo area. During display message-truncate-display is bound to t. I suspect this was done to avoid a "jumping echo area". This is nice but i would accept this tradeoff to see the whole help message. This patch adds a variable show-help-echo-truncate that can be used to control this behavior. It is bound to t to be compatible with the current code. If needed i could write News or ChangeLog entries too.. Thanks, Stephan diff -c "keyboard.c.~1.816.~" "keyboard.c" *** keyboard.c.~1.816~ Tue Mar 29 07:46:51 2005 --- keyboard.c Tue Mar 29 07:58:00 2005 *************** *** 194,199 **** --- 194,203 ---- Lisp_Object Vshow_help_function; + /* If non-nil, truncate messages shown with show_help_echo. */ + + Lisp_Object Vshow_help_echo_truncate; + /* If a string, the message displayed before displaying a help-echo in the echo area. */ *************** *** 2323,2329 **** if (!help_echo_showing_p) Vpre_help_message = current_message (); ! specbind (Qmessage_truncate_lines, Qt); message3_nolog (help, SBYTES (help), STRING_MULTIBYTE (help)); unbind_to (count, Qnil); --- 2327,2333 ---- if (!help_echo_showing_p) Vpre_help_message = current_message (); ! specbind (Qmessage_truncate_lines, Vshow_help_echo_truncate); message3_nolog (help, SBYTES (help), STRING_MULTIBYTE (help)); unbind_to (count, Qnil); *************** *** 11376,11381 **** --- 11380,11389 ---- doc: /* If non-nil, the function that implements the display of help. It's called with one argument, the help string to display. */); Vshow_help_function = Qnil; + + DEFVAR_LISP ("show-help-echo-truncate", &Vshow_help_echo_truncate, + doc: /* If non-nil, truncate messages shown with show_help_echo. */); + Vshow_help_echo_truncate = Qt; DEFVAR_LISP ("disable-point-adjustment", &Vdisable_point_adjustment, doc: /* If non-nil, suppress point adjustment after executing a command. Diff finished. Tue Mar 29 07:58:31 2005 -- Stephan Stahl