emacs/src
Martin Rudalics e462308f03 Fix some tooltip related problems
Replace 'tooltip' frame parameter with a 'tooltip' member in
the frame structure.  For GTK+ builds use 'tip_last_frame' to
find the frame for which the currently visible tooltip was
made.  For modeline help-echoing have tooltips show applicable
actions only.

* lisp/bindings.el (mode-line-default-help-echo): New function
as default value of homonymous option.
* src/dispextern.h (tip_frame, tip_window): Remove
declarations.
* src/frame.c (make_frame): Initialize new frame structure
member 'tooltip'.
(Fframe_list, other_frames): Rewrite with new macro
FRAME_TOOLTIP_P.
* src/frame.h (struct frame): New member 'tooltip'.
(FRAME_TOOLTIP_P): New macro.
* src/gtkutil.c (xg_prepare_tooltip, xg_hide_tooltip): Rewrite
using boolean return values.
* src/nsfns.m (tip_frame): Remove declaration.
* src/w32fns.c (w32_display_monitor_attributes_list)
(w32_display_monitor_attributes_list_fallback): Rewrite with
new macro FRAME_TOOLTIP_P.
(tip_last_string, tip_last_frame, tip_last_parms): New Lisp
scalars replacing Lisp vector last_show_tip_args.
(x_create_tip_frame): Set new frame's 'tooltip' structure
member to true.
(x_hide_tip): Additionally test tip_frame for liveness.
(Fx_show_tip): Handle last_show_tip_args to tip_last_frame,
tip_last_string and tip_last_parms conversion.
(syms_of_w32fns): staticpro tip_last_frame, tip_last_string
and tip_last_parms instead of last_show_tip_args.
* src/w32term.c (w32_read_socket, x_new_font): Rewrite with
new macro FRAME_TOOLTIP_P.
* src/w32term.h (tip_window): Add external declaration.
* src/xdisp.c (x_consider_frame_title, prepare_menu_bars)
(should_produce_line_number): Rewrite with new macro
FRAME_TOOLTIP_P.
(note_mode_line_or_margin_highlight): If
`mode-line-default-help-echo' specifies a function, call it to
produce help echo string.
* src/xfns.c (x_make_monitor_attribute_list)
(Fx_display_monitor_attributes_list): Rewrite with
new macro FRAME_TOOLTIP_P.
(tip_last_string, tip_last_frame, tip_last_parms): New Lisp
scalars replacing Lisp vector last_show_tip_args.
(x_create_tip_frame): Set new frame's 'tooltip' structure
member to true.
(x_hide_tip): Rewrite with additional tests of frames for
liveness and taking into account that for GTK+ tips the
reference frame is now stored in tip_last_frame instead of
tip_frame.
(Fx_show_tip): Handle last_show_tip_args to tip_last_frame,
tip_last_string and tip_last_parms conversion.  For GTK+ store
FRAME argument in tip_last-frame.
(syms_of_xfns): staticpro tip_last_frame, tip_last_string
and tip_last_parms instead of last_show_tip_args.
* src/xterm.c (x_update_begin, handle_one_xevent, x_new_font)
(x_set_window_size): Rewrite with new macro FRAME_TOOLTIP_P.
* src/xterm.h (tip_window): Add external declaration.
* etc/NEWS: Mention new modeline tooltips behavior.
2018-01-18 10:36:47 +01:00
..
bitmaps
.dbxinit
.gdbinit Fix .gdbinit to work with Lisp_Word 2018-01-02 22:38:48 -08:00
alloc.c Merge from origin/emacs-26 2018-01-01 01:13:04 -08:00
atimer.c Update copyright year to 2018 2018-01-01 00:57:59 -08:00
atimer.h Update copyright year to 2018 2018-01-01 00:57:59 -08:00
bidi.c Update copyright year to 2018 2018-01-01 00:57:59 -08:00
blockinput.h Update copyright year to 2018 2018-01-01 00:57:59 -08:00
buffer.c Merge from origin/emacs-26 2018-01-01 01:13:04 -08:00
buffer.h Update copyright year to 2018 2018-01-01 00:57:59 -08:00
bytecode.c Merge from origin/emacs-26 2018-01-01 01:13:04 -08:00
callint.c Merge from origin/emacs-26 2018-01-09 15:29:25 -08:00
callproc.c Update copyright year to 2018 2018-01-01 00:57:59 -08:00
casefiddle.c Update copyright year to 2018 2018-01-01 00:57:59 -08:00
casetab.c Update copyright year to 2018 2018-01-01 00:57:59 -08:00
category.c Update copyright year to 2018 2018-01-01 00:57:59 -08:00
category.h Prefer HTTPS to FTP and HTTP in documentation 2017-09-13 15:54:37 -07:00
ccl.c Update copyright year to 2018 2018-01-01 00:57:59 -08:00
ccl.h Prefer HTTPS to FTP and HTTP in documentation 2017-09-13 15:54:37 -07:00
ChangeLog.1 Update copyright year to 2018 2018-01-01 00:57:59 -08:00
ChangeLog.2 Update copyright year to 2018 2018-01-01 00:57:59 -08:00
ChangeLog.3 Update copyright year to 2018 2018-01-01 00:57:59 -08:00
ChangeLog.4 Update copyright year to 2018 2018-01-01 00:57:59 -08:00
ChangeLog.5 Update copyright year to 2018 2018-01-01 00:57:59 -08:00
ChangeLog.6 Update copyright year to 2018 2018-01-01 00:57:59 -08:00
ChangeLog.7 Update copyright year to 2018 2018-01-01 00:57:59 -08:00
ChangeLog.8 Update copyright year to 2018 2018-01-01 00:57:59 -08:00
ChangeLog.9 Update copyright year to 2018 2018-01-01 00:57:59 -08:00
ChangeLog.10 Update copyright year to 2018 2018-01-01 00:57:59 -08:00
ChangeLog.11 Update copyright year to 2018 2018-01-01 00:57:59 -08:00
ChangeLog.12 Update copyright year to 2018 2018-01-01 00:57:59 -08:00
ChangeLog.13 Update copyright year to 2018 2018-01-01 00:57:59 -08:00
character.c Update copyright year to 2018 2018-01-01 00:57:59 -08:00
character.h Prefer HTTPS to FTP and HTTP in documentation 2017-09-13 15:54:37 -07:00
charset.c Update copyright year to 2018 2018-01-01 00:57:59 -08:00
charset.h Update copyright year to 2018 2018-01-01 00:57:59 -08:00
chartab.c Prefer HTTPS to FTP and HTTP in documentation 2017-09-13 15:54:37 -07:00
cm.c Update copyright year to 2018 2018-01-01 00:57:59 -08:00
cm.h Update copyright year to 2018 2018-01-01 00:57:59 -08:00
cmds.c Merge from origin/emacs-26 2018-01-01 01:13:04 -08:00
coding.c Merge from origin/emacs-26 2018-01-09 15:29:25 -08:00
coding.h ; * src/coding.h (surrogates_to_codepoint): Add prototype. 2018-01-15 14:15:53 +02:00
commands.h Update copyright year to 2018 2018-01-01 00:57:59 -08:00
composite.c Update copyright year to 2018 2018-01-01 00:57:59 -08:00
composite.h Update copyright year to 2018 2018-01-01 00:57:59 -08:00
conf_post.h Update copyright year to 2018 2018-01-01 00:57:59 -08:00
COPYING Merge from Gnulib 2017-10-01 18:31:10 -07:00
cygw32.c Update copyright year to 2018 2018-01-01 00:57:59 -08:00
cygw32.h Update copyright year to 2018 2018-01-01 00:57:59 -08:00
data.c Merge from origin/emacs-26 2018-01-01 01:13:04 -08:00
dbusbind.c Update copyright year to 2018 2018-01-01 00:57:59 -08:00
decompress.c Make Fzlib_decompress_region always call the change hooks in a balanced way. 2018-01-12 16:31:35 +00:00
deps.mk Update copyright year to 2018 2018-01-01 00:57:59 -08:00
dired.c Update copyright year to 2018 2018-01-01 00:57:59 -08:00
dispextern.h Fix some tooltip related problems 2018-01-18 10:36:47 +01:00
dispnew.c Merge from origin/emacs-26 2018-01-01 01:13:04 -08:00
disptab.h Update copyright year to 2018 2018-01-01 00:57:59 -08:00
doc.c Update copyright year to 2018 2018-01-01 00:57:59 -08:00
doprnt.c Merge from origin/emacs-26 2018-01-01 01:13:04 -08:00
dosfns.c Update copyright year to 2018 2018-01-01 00:57:59 -08:00
dosfns.h Update copyright year to 2018 2018-01-01 00:57:59 -08:00
dynlib.c Update copyright year to 2018 2018-01-01 00:57:59 -08:00
dynlib.h Update copyright year to 2018 2018-01-01 00:57:59 -08:00
editfns.c Merge from origin/emacs-26 2018-01-09 15:29:25 -08:00
emacs-icon.h An overdue update of src/emacs-icon.h 2018-01-14 17:27:19 -08:00
emacs-module.c Merge from origin/emacs-26 2018-01-01 01:13:04 -08:00
emacs-module.h.in Update copyright year to 2018 2018-01-01 00:57:59 -08:00
emacs.c Add battery support to all Cygwin builds 2018-01-13 13:16:47 -05:00
emacsgtkfixed.c Update copyright year to 2018 2018-01-01 00:57:59 -08:00
emacsgtkfixed.h Update copyright year to 2018 2018-01-01 00:57:59 -08:00
epaths.in Update copyright year to 2018 2018-01-01 00:57:59 -08:00
eval.c Merge from origin/emacs-26 2018-01-01 01:13:04 -08:00
fileio.c Merge from origin/emacs-26 2018-01-01 01:13:04 -08:00
filelock.c Update copyright year to 2018 2018-01-01 00:57:59 -08:00
firstfile.c Update copyright year to 2018 2018-01-01 00:57:59 -08:00
floatfns.c Update copyright year to 2018 2018-01-01 00:57:59 -08:00
fns.c * fns.c (base64-decode-region): Add signal_after_change call for insertion. 2018-01-07 11:16:52 +00:00
font.c Update copyright year to 2018 2018-01-01 00:57:59 -08:00
font.h Update copyright year to 2018 2018-01-01 00:57:59 -08:00
fontset.c Update copyright year to 2018 2018-01-01 00:57:59 -08:00
fontset.h Update copyright year to 2018 2018-01-01 00:57:59 -08:00
frame.c Fix some tooltip related problems 2018-01-18 10:36:47 +01:00
frame.h Fix some tooltip related problems 2018-01-18 10:36:47 +01:00
fringe.c Merge from origin/emacs-26 2018-01-01 01:13:04 -08:00
ftcrfont.c Update copyright year to 2018 2018-01-01 00:57:59 -08:00
ftfont.c Update copyright year to 2018 2018-01-01 00:57:59 -08:00
ftfont.h Prefer HTTPS to FTP and HTTP in documentation 2017-09-13 15:54:37 -07:00
ftxfont.c Update copyright year to 2018 2018-01-01 00:57:59 -08:00
getpagesize.h Update copyright year to 2018 2018-01-01 00:57:59 -08:00
gfilenotify.c Update copyright year to 2018 2018-01-01 00:57:59 -08:00
gmalloc.c Merge from origin/emacs-26 2018-01-01 01:13:04 -08:00
gnutls.c Update copyright year to 2018 2018-01-01 00:57:59 -08:00
gnutls.h Update copyright year to 2018 2018-01-01 00:57:59 -08:00
gtkutil.c Fix some tooltip related problems 2018-01-18 10:36:47 +01:00
gtkutil.h Update copyright year to 2018 2018-01-01 00:57:59 -08:00
image.c Update copyright year to 2018 2018-01-01 00:57:59 -08:00
indent.c Update copyright year to 2018 2018-01-01 00:57:59 -08:00
indent.h Update copyright year to 2018 2018-01-01 00:57:59 -08:00
inotify.c Update copyright year to 2018 2018-01-01 00:57:59 -08:00
insdel.c Update copyright year to 2018 2018-01-01 00:57:59 -08:00
intervals.c Update copyright year to 2018 2018-01-01 00:57:59 -08:00
intervals.h Update copyright year to 2018 2018-01-01 00:57:59 -08:00
json.c Update copyright year to 2018 2018-01-01 01:25:56 -08:00
keyboard.c Fix macOS breakage in make_lispy_event 2018-01-15 17:19:09 -08:00
keyboard.h Merge from origin/emacs-26 2018-01-01 01:13:04 -08:00
keymap.c Update copyright year to 2018 2018-01-01 00:57:59 -08:00
keymap.h Update copyright year to 2018 2018-01-01 00:57:59 -08:00
kqueue.c Use fcntl.h in kqueue.c 2018-01-15 09:12:44 +01:00
lastfile.c Merge from origin/emacs-26 2018-01-01 01:13:04 -08:00
lcms.c Update copyright year to 2018 2018-01-01 00:57:59 -08:00
lisp.h Add battery support to all Cygwin builds 2018-01-13 13:16:47 -05:00
lread.c Remove incorrect use of AUTO_STRING 2018-01-07 16:44:45 +01:00
macfont.h Update copyright year to 2018 2018-01-01 00:57:59 -08:00
macfont.m Merge from origin/emacs-26 2018-01-01 01:13:04 -08:00
macros.c Update copyright year to 2018 2018-01-01 00:57:59 -08:00
macros.h Update copyright year to 2018 2018-01-01 00:57:59 -08:00
macuvs.h Import the latest IVD_Sequences.txt 2017-12-12 21:41:23 +02:00
Makefile.in Add battery support to all Cygwin builds 2018-01-13 13:16:47 -05:00
marker.c Update copyright year to 2018 2018-01-01 00:57:59 -08:00
menu.c Merge from origin/emacs-26 2018-01-01 01:13:04 -08:00
menu.h Merge from origin/emacs-26 2018-01-01 01:13:04 -08:00
minibuf.c Update copyright year to 2018 2018-01-01 00:57:59 -08:00
module-env-25.h * src/module-env-25.h (copy_string_contents): Fix comment. 2017-07-01 20:02:24 +02:00
module-env-26.h emacs-module.h: Create emacs_env_26 2017-06-17 19:16:14 +02:00
msdos.c Merge from origin/emacs-26 2018-01-01 01:13:04 -08:00
msdos.h Update copyright year to 2018 2018-01-01 00:57:59 -08:00
nsfns.m Fix some tooltip related problems 2018-01-18 10:36:47 +01:00
nsfont.m Update copyright year to 2018 2018-01-01 00:57:59 -08:00
nsgui.h Update copyright year to 2018 2018-01-01 00:57:59 -08:00
nsimage.m Merge from origin/emacs-26 2018-01-01 01:13:04 -08:00
nsmenu.m Merge from origin/emacs-26 2018-01-09 15:29:25 -08:00
nsselect.m Merge from origin/emacs-26 2018-01-01 01:13:04 -08:00
nsterm.h Merge from origin/emacs-26 2018-01-09 15:29:25 -08:00
nsterm.m Merge from origin/emacs-26 2018-01-15 13:53:40 -08:00
print.c * src/print.c (syms_of_print) <print_quoted>: Set default to true 2018-01-15 13:42:51 -05:00
process.c Merge from origin/emacs-26 2018-01-15 13:53:40 -08:00
process.h Update copyright year to 2018 2018-01-01 00:57:59 -08:00
profiler.c Update copyright year to 2018 2018-01-01 00:57:59 -08:00
ptr-bounds.h Update copyright year to 2018 2018-01-01 01:25:56 -08:00
puresize.h Update copyright year to 2018 2018-01-01 00:57:59 -08:00
ralloc.c Update copyright year to 2018 2018-01-01 00:57:59 -08:00
README Update copyright year to 2018 2018-01-01 00:57:59 -08:00
regex.c Merge from origin/emacs-26 2018-01-01 01:13:04 -08:00
regex.h Update copyright year to 2018 2018-01-01 00:57:59 -08:00
region-cache.c Update copyright year to 2018 2018-01-01 00:57:59 -08:00
region-cache.h Update copyright year to 2018 2018-01-01 00:57:59 -08:00
scroll.c Update copyright year to 2018 2018-01-01 00:57:59 -08:00
search.c Update copyright year to 2018 2018-01-01 00:57:59 -08:00
sheap.c Update copyright year to 2018 2018-01-01 00:57:59 -08:00
sheap.h Update copyright year to 2018 2018-01-01 00:57:59 -08:00
sound.c Update copyright year to 2018 2018-01-01 00:57:59 -08:00
syntax.c Merge from origin/emacs-26 2018-01-01 01:13:04 -08:00
syntax.h Update copyright year to 2018 2018-01-01 00:57:59 -08:00
sysdep.c Merge from origin/emacs-26 2018-01-01 01:13:04 -08:00
sysselect.h Update copyright year to 2018 2018-01-01 00:57:59 -08:00
syssignal.h Merge from origin/emacs-26 2018-01-01 01:13:04 -08:00
sysstdio.h Update copyright year to 2018 2018-01-01 00:57:59 -08:00
systhread.c Update copyright year to 2018 2018-01-01 00:57:59 -08:00
systhread.h Update copyright year to 2018 2018-01-01 00:57:59 -08:00
systime.h Update copyright year to 2018 2018-01-01 00:57:59 -08:00
systty.h Update copyright year to 2018 2018-01-01 00:57:59 -08:00
syswait.h Update copyright year to 2018 2018-01-01 00:57:59 -08:00
term.c Update copyright year to 2018 2018-01-01 00:57:59 -08:00
termcap.c ; Comments related to src/termcap.c 2018-01-05 18:50:31 -08:00
termchar.h Update copyright year to 2018 2018-01-01 00:57:59 -08:00
termhooks.h Update copyright year to 2018 2018-01-01 00:57:59 -08:00
terminal.c Update copyright year to 2018 2018-01-01 00:57:59 -08:00
terminfo.c Update copyright year to 2018 2018-01-01 00:57:59 -08:00
termopts.h Update copyright year to 2018 2018-01-01 00:57:59 -08:00
textprop.c Update copyright year to 2018 2018-01-01 00:57:59 -08:00
thread.c Update copyright year to 2018 2018-01-01 00:57:59 -08:00
thread.h Update copyright year to 2018 2018-01-01 00:57:59 -08:00
tparam.c Update copyright year to 2018 2018-01-01 00:57:59 -08:00
tparam.h Update copyright year to 2018 2018-01-01 00:57:59 -08:00
undo.c Update copyright year to 2018 2018-01-01 00:57:59 -08:00
unexaix.c Update copyright year to 2018 2018-01-01 00:57:59 -08:00
unexcoff.c Update copyright year to 2018 2018-01-01 00:57:59 -08:00
unexcw.c Update copyright year to 2018 2018-01-01 00:57:59 -08:00
unexec.h Make src headers idempotent and standalone 2015-10-16 14:56:11 -07:00
unexelf.c Update copyright year to 2018 2018-01-01 00:57:59 -08:00
unexhp9k800.c Consistently use min and max macros from lisp.h. 2014-10-03 08:35:10 +04:00
unexmacosx.c Update copyright year to 2018 2018-01-01 00:57:59 -08:00
unexsol.c Include-file cleanup for src directory 2015-10-20 18:35:53 -07:00
unexw32.c Update copyright year to 2018 2018-01-01 00:57:59 -08:00
vm-limit.c Update copyright year to 2018 2018-01-01 00:57:59 -08:00
w16select.c Update copyright year to 2018 2018-01-01 00:57:59 -08:00
w32.c Update copyright year to 2018 2018-01-01 00:57:59 -08:00
w32.h Update copyright year to 2018 2018-01-01 00:57:59 -08:00
w32common.h Update copyright year to 2018 2018-01-01 00:57:59 -08:00
w32console.c Update copyright year to 2018 2018-01-01 00:57:59 -08:00
w32cygwinx.c Add battery support to all Cygwin builds 2018-01-13 13:16:47 -05:00
w32fns.c Fix some tooltip related problems 2018-01-18 10:36:47 +01:00
w32font.c Update copyright year to 2018 2018-01-01 00:57:59 -08:00
w32font.h Update copyright year to 2018 2018-01-01 00:57:59 -08:00
w32gui.h Update copyright year to 2018 2018-01-01 00:57:59 -08:00
w32heap.c Update copyright year to 2018 2018-01-01 00:57:59 -08:00
w32heap.h Update copyright year to 2018 2018-01-01 00:57:59 -08:00
w32inevt.c Update copyright year to 2018 2018-01-01 00:57:59 -08:00
w32inevt.h Update copyright year to 2018 2018-01-01 00:57:59 -08:00
w32menu.c Update copyright year to 2018 2018-01-01 00:57:59 -08:00
w32notify.c Update copyright year to 2018 2018-01-01 00:57:59 -08:00
w32proc.c Update copyright year to 2018 2018-01-01 00:57:59 -08:00
w32reg.c Update copyright year to 2018 2018-01-01 00:57:59 -08:00
w32select.c Update copyright year to 2018 2018-01-01 00:57:59 -08:00
w32select.h Update copyright year to 2018 2018-01-01 00:57:59 -08:00
w32term.c Fix some tooltip related problems 2018-01-18 10:36:47 +01:00
w32term.h Fix some tooltip related problems 2018-01-18 10:36:47 +01:00
w32uniscribe.c Update copyright year to 2018 2018-01-01 00:57:59 -08:00
w32xfns.c Update copyright year to 2018 2018-01-01 00:57:59 -08:00
widget.c Update copyright year to 2018 2018-01-01 00:57:59 -08:00
widget.h Update copyright year to 2018 2018-01-01 00:57:59 -08:00
widgetprv.h Update copyright year to 2018 2018-01-01 00:57:59 -08:00
window.c Update copyright year to 2018 2018-01-01 00:57:59 -08:00
window.h Update copyright year to 2018 2018-01-01 00:57:59 -08:00
xdisp.c Fix some tooltip related problems 2018-01-18 10:36:47 +01:00
xfaces.c Merge from origin/emacs-26 2018-01-01 01:13:04 -08:00
xfns.c Fix some tooltip related problems 2018-01-18 10:36:47 +01:00
xfont.c Update copyright year to 2018 2018-01-01 00:57:59 -08:00
xftfont.c Update copyright year to 2018 2018-01-01 00:57:59 -08:00
xgselect.c Update copyright year to 2018 2018-01-01 00:57:59 -08:00
xgselect.h Update copyright year to 2018 2018-01-01 00:57:59 -08:00
xmenu.c Update copyright year to 2018 2018-01-01 00:57:59 -08:00
xml.c Merge from origin/emacs-26 2018-01-01 01:13:04 -08:00
xrdb.c Update copyright year to 2018 2018-01-01 00:57:59 -08:00
xselect.c Update copyright year to 2018 2018-01-01 00:57:59 -08:00
xsettings.c Update copyright year to 2018 2018-01-01 00:57:59 -08:00
xsettings.h Update copyright year to 2018 2018-01-01 00:57:59 -08:00
xsmfns.c Update copyright year to 2018 2018-01-01 00:57:59 -08:00
xterm.c Fix some tooltip related problems 2018-01-18 10:36:47 +01:00
xterm.h Fix some tooltip related problems 2018-01-18 10:36:47 +01:00
xwidget.c Merge from origin/emacs-26 2018-01-01 01:13:04 -08:00
xwidget.h Update copyright year to 2018 2018-01-01 00:57:59 -08:00

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

Copyright (C) 2001-2018 Free Software Foundation, Inc.
See the end of the file for license conditions.


This directory contains the source files for the C component of GNU Emacs.
Nothing in this directory is needed for using Emacs once it is built
and installed, if the dumped Emacs is copied elsewhere.

See the files ../README and then ../INSTALL for installation instructions.

The file 'Makefile.in' is used as a template by the script
'../configure' to produce 'Makefile'.  This is the file which actually
controls the compilation of Emacs C source files.  All of this should
work transparently; you should only need to change to the parent
directory, run './configure', and then run 'make'.

This file is part of GNU Emacs.

GNU Emacs is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.

GNU Emacs is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with GNU Emacs.  If not, see <https://www.gnu.org/licenses/>.