aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGerd Moellmann2000-07-14 14:01:16 +0000
committerGerd Moellmann2000-07-14 14:01:16 +0000
commit9662da0b92b3f853c623b5e5349ca71f89508fa6 (patch)
tree1ceff218ec27b869523e825f3f53628560613d0d
parent276680c4a735d41d6a07643d6c7e42e9e495904c (diff)
downloademacs-9662da0b92b3f853c623b5e5349ca71f89508fa6.tar.gz
emacs-9662da0b92b3f853c623b5e5349ca71f89508fa6.zip
*** empty log message ***
-rw-r--r--etc/NEWS23
-rw-r--r--src/ChangeLog37
2 files changed, 52 insertions, 8 deletions
diff --git a/etc/NEWS b/etc/NEWS
index fea1e0574e3..c6094f7071e 100644
--- a/etc/NEWS
+++ b/etc/NEWS
@@ -1259,8 +1259,8 @@ functionality with aliases for the mldrag functions.
1259* Lisp changes made after edition 2.6 of the Emacs Lisp Manual, 1259* Lisp changes made after edition 2.6 of the Emacs Lisp Manual,
1260(Display-related features are described in a page of their own below.) 1260(Display-related features are described in a page of their own below.)
1261 1261
1262** The value of the `help-echo' text property is evaluated, if it 1262** The value of the `help-echo' text property is called as a function
1263is not a string already, to obtain a help string. 1263or evaluated, if it is not a string already, to obtain a help string.
1264 1264
1265** Function `make-obsolete' now has an optional arg to say when the 1265** Function `make-obsolete' now has an optional arg to say when the
1266function was declared obsolete. 1266function was declared obsolete.
@@ -2826,13 +2826,20 @@ moves over a tool-bar item or a piece of text that has a text property
2826`help-echo'. This feature also applies to strings in the mode line 2826`help-echo'. This feature also applies to strings in the mode line
2827that have a `help-echo' property. 2827that have a `help-echo' property.
2828 2828
2829If the value of the `help-echo' property is not a string. it is 2829If the value of the `help-echo' property is a function, that function
2830evaluated to obtain a help string. 2830is called with two arguments OBJECT and POSITION. OBJECT is the
2831buffer or string which had the `help-echo' property. POSITION is
2832the position within OBJECT under the mouse pointer. The function
2833should return a help string or nil for none.
2831 2834
2832For tool-bar items, their key definition is used to determine the help 2835If the value of the `help-echo' property is neither a function nor a
2833to display. If their definition contains a property `:help FORM', 2836string, it is evaluated to obtain a help string.
2834FORM is evaluated to determine the help string. Otherwise, the 2837
2835caption of the tool-bar item is used. 2838For tool-bar and menu-bar items, their key definition is used to
2839determine the help to display. If their definition contains a
2840property `:help FORM', FORM is evaluated to determine the help string.
2841For tool-bar items without a help form, the caption of the item is
2842used as help string.
2836 2843
2837The hook `show-help-function' can be set to a function that displays 2844The hook `show-help-function' can be set to a function that displays
2838help differently. For example, enabling a tooltip window causes the 2845help differently. For example, enabling a tooltip window causes the
diff --git a/src/ChangeLog b/src/ChangeLog
index 99038d06c38..aadc6d24e83 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -10,6 +10,43 @@
10 10
112000-07-14 Gerd Moellmann <gerd@gnu.org> 112000-07-14 Gerd Moellmann <gerd@gnu.org>
12 12
13 * keyboard.c (show_help_echo): Add parameters OBJECT and POS.
14 if HELP is a function, call it with OBJECT and POS as parameters
15 to get the help to display.
16 (gen_help_event, kbd_buffer_store_help_event): New functions.
17 (kbd_buffer_get_event): Construct the Lisp help-event differently.
18 (read_char): Call show_help_echo with new parameters.
19
20 * keyboard.h (gen_help_event, kbd_buffer_store_help_event):
21 Add prototypes.
22
23 * xterm.c (help_echo_object, help_echo_pos): New variables.
24 (note_mode_line_highlight): Store additional information about the
25 help-echo in help_echo_object and help_echo_pos. Check both
26 `local-map' and `keymap' properties for changing the cursor
27 (note_mouse_highlight): Store additional information about the
28 help-echo in help_echo_object and help_echo_pos.
29 (note_tool_bar_highlight): Set help_echo_object to nil and
30 help_echo_pos to -1.
31 (XTread_socket): Use gen_help_event instead of filling
32 input_events manually.
33 (syms_of_xterm): Staticpro help_echo_object.
34
35 * xmenu.c (menu_highlight_callback): Use
36 kbd_buffer_store_help_event instead of setting up and input_event
37 structure manually.
38
39 * xdisp.c (eval_form): GCPRO argument sexpr.
40 (call_function): New function.
41 (handle_single_display_prop): Use call_function and FUNCTIONP
42 instead of checking whether if font_height is a symbol and
43 using eval_form.
44
45 * eval.c (internal_condition_case_2): New function.
46
47 * lisp.h (FUNCTIONP): New macro.
48 (internal_condition_case_2, call_function): Add prototypes.
49
13 * xterm.c (construct_mouse_click, x_scroll_bar_to_input_event) 50 * xterm.c (construct_mouse_click, x_scroll_bar_to_input_event)
14 (x_scroll_bar_handle_click, SET_SAVED_MENU_EVENT, XTread_socket): 51 (x_scroll_bar_handle_click, SET_SAVED_MENU_EVENT, XTread_socket):
15 Always set `arg' member of input_events. 52 Always set `arg' member of input_events.