all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* show_help_echo truncates unconditionally
@ 2005-03-29  6:25 Stephan Stahl
  2005-03-29 13:40 ` Stefan Monnier
  2005-03-30  0:03 ` Richard Stallman
  0 siblings, 2 replies; 8+ messages in thread
From: Stephan Stahl @ 2005-03-29  6:25 UTC (permalink / 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

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2005-04-02  4:19 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-03-29  6:25 show_help_echo truncates unconditionally Stephan Stahl
2005-03-29 13:40 ` 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

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.