unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: "Stephan Stahl" <stahl@eos.franken.de>
Subject: show_help_echo truncates unconditionally
Date: Tue, 29 Mar 2005 08:25:05 +0200 (CEST)	[thread overview]
Message-ID: <20836.217.194.34.123.1112077505.squirrel@wwws.franken.de> (raw)

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

             reply	other threads:[~2005-03-29  6:25 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-03-29  6:25 Stephan Stahl [this message]
2005-03-29 13:40 ` show_help_echo truncates unconditionally Stefan Monnier
2005-03-29 15:44   ` Stephan Stahl
2005-03-30  0:03 ` Richard Stallman
2005-03-30  9:24   ` Stephan Stahl
2005-03-31 18:21     ` Richard Stallman
2005-04-01  7:39       ` Stephan Stahl
2005-04-02  4:19         ` Richard Stallman

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

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20836.217.194.34.123.1112077505.squirrel@wwws.franken.de \
    --to=stahl@eos.franken.de \
    /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 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).