1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-04-13 09:42:24 -07:00
emacs/test/src
Basil L. Contovounesios d780007283 Add predicate for initial_terminal
This introduces the predicate frame-initial-p, which uses
struct frame.output_method or struct terminal.type to detect
initial_terminal without relying on its name (bug#80629).
For some prior discussion, see:
https://lists.gnu.org/r/emacs-devel/2019-12/msg00480.html
https://lists.gnu.org/r/emacs-devel/2020-01/msg00120.html

* doc/lispref/frames.texi (Frames): Document frame-initial-p.
(Finding All Frames): Fix grammar.
* etc/NEWS (Lisp Changes in Emacs 31.1): Announce frame-initial-p.
* lisp/desktop.el (desktop--check-dont-save):
* lisp/emacs-lisp/debug.el (debug):
* lisp/frameset.el (frameset-restore):
* lisp/menu-bar.el (menu-bar-update-buffers):
* lisp/xt-mouse.el (turn-on-xterm-mouse-tracking-on-terminal):
Use frame-initial-p instead of checking the "initial_terminal" name.
* lisp/emacs-lisp/byte-opt.el: Mark frame-initial-p as error-free.

* src/pgtkterm.c (pgtk_focus_changed): Use IS_DAEMON in place of
Fdaemonp, thus also accepting a named daemon session.
* src/terminal.c (decode_tty_terminal): Clarify commentary.
(Fframe_initial_p): New function.
(syms_of_terminal): Expose it.
(init_initial_terminal): Update commentary now that
menu-bar-update-buffers uses frame-initial-p (bug#53740).

* test/lisp/xt-mouse-tests.el (with-xterm-mouse-mode): Simulate the
lack of an initial terminal by overriding frame-initial-p now
that turn-on-xterm-mouse-tracking-on-terminal uses it.
* test/src/terminal-tests.el: New file.
2026-03-26 15:19:56 +01:00
..
comp-resources Fix 'comp--func-unique-in-cu-p' to match docstring 2026-03-12 09:08:08 +01:00
emacs-module-resources Fix signal calls where the data argument is not a list 2026-03-10 00:13:31 -04:00
lread-resources
regex-resources
syntax-resources
alloc-tests.el ; Add 2026 to copyright years. 2026-01-01 12:54:34 +00:00
buffer-tests.el More tests for edit functions, buffers, and markers. 2026-02-25 18:10:05 -05:00
callint-tests.el ; Add 2026 to copyright years. 2026-01-01 12:54:34 +00:00
callproc-tests.el ; Add 2026 to copyright years. 2026-01-01 12:54:34 +00:00
casefiddle-tests.el ; Add 2026 to copyright years. 2026-01-01 12:54:34 +00:00
category-tests.el Category/charset/coding + char-table tests. 2026-02-25 17:23:46 -05:00
character-tests.el Tests for primitives from the character.c module. 2026-02-25 19:41:05 -05:00
charset-tests.el * test/src/charset-tests.el (charset-tests-define-charset): New. 2026-03-21 18:42:01 +01:00
chartab-tests.el Category/charset/coding + char-table tests. 2026-02-25 17:23:46 -05:00
cmds-tests.el ; Add 2026 to copyright years. 2026-01-01 12:54:34 +00:00
coding-tests.el Tests for primitives in coding.c and charset.c. 2026-02-25 19:41:05 -05:00
comp-tests.el Fix 'comp--func-unique-in-cu-p' to match docstring 2026-03-12 09:08:08 +01:00
data-tests.el ; * test/src/data-tests.el (data-tests-native-comp-unit): Fix test. 2026-02-27 15:29:16 +02:00
decompress-tests.el ; Add 2026 to copyright years. 2026-01-01 12:54:34 +00:00
doc-tests.el ; Add 2026 to copyright years. 2026-01-01 12:54:34 +00:00
editfns-tests.el More tests for edit functions, buffers, and markers. 2026-02-25 18:10:05 -05:00
emacs-module-tests.el Fix signal calls where the data argument is not a list 2026-03-10 00:13:31 -04:00
emacs-tests.el ; Add 2026 to copyright years. 2026-01-01 12:54:34 +00:00
eval-tests.el Repair another test bollixed by aggressive optimization. 2026-02-25 20:51:21 -05:00
fileio-tests.el Tesrts for the portable primitives in fileio.c. 2026-02-25 19:54:11 -05:00
filelock-tests.el test subdirectory: Use new error-API 2026-03-10 10:48:22 -04:00
floatfns-tests.el Complete the test set for floatfns,c. 2026-02-25 20:18:31 -05:00
fns-tests.el More correctness tesrs for orinitives from fns.c. 2026-02-25 18:25:58 -05:00
font-tests.el ; Add 2026 to copyright years. 2026-01-01 12:54:34 +00:00
image-tests.el ; Add 2026 to copyright years. 2026-01-01 12:54:34 +00:00
indent-tests.el ; Add 2026 to copyright years. 2026-01-01 12:54:34 +00:00
inotify-tests.el ; Add 2026 to copyright years. 2026-01-01 12:54:34 +00:00
json-tests.el ; Add 2026 to copyright years. 2026-01-01 12:54:34 +00:00
keyboard-tests.el ; Add 2026 to copyright years. 2026-01-01 12:54:34 +00:00
keymap-tests.el More test coverage improvements. 2026-02-25 17:06:50 -05:00
lcms-tests.el ; Add 2026 to copyright years. 2026-01-01 12:54:34 +00:00
lread-tests.el Tests for the lreaf.c amd print.c primitives. 2026-02-25 19:03:02 -05:00
marker-tests.el More tests for edit functions, buffers, and markers. 2026-02-25 18:10:05 -05:00
minibuf-tests.el More test coverage improvements. 2026-02-25 17:06:50 -05:00
print-tests.el Tests for the lreaf.c amd print.c primitives. 2026-02-25 19:03:02 -05:00
process-tests.el test subdirectory: Use new error-API 2026-03-10 10:48:22 -04:00
profiler-tests.el ; Add 2026 to copyright years. 2026-01-01 12:54:34 +00:00
regex-emacs-tests.el ; Add 2026 to copyright years. 2026-01-01 12:54:34 +00:00
search-tests.el ; Add 2026 to copyright years. 2026-01-01 12:54:34 +00:00
sqlite-tests.el ; Add 2026 to copyright years. 2026-01-01 12:54:34 +00:00
syntax-tests.el ; Add 2026 to copyright years. 2026-01-01 12:54:34 +00:00
terminal-tests.el Add predicate for initial_terminal 2026-03-26 15:19:56 +01:00
textprop-tests.el ; Add 2026 to copyright years. 2026-01-01 12:54:34 +00:00
thread-tests.el Fix signal calls where the data argument is not a list 2026-03-10 00:13:31 -04:00
timefns-tests.el ; Add 2026 to copyright years. 2026-01-01 12:54:34 +00:00
treesit-tests.el ; Add 2026 to copyright years. 2026-01-01 12:54:34 +00:00
undo-tests.el ; Add 2026 to copyright years. 2026-01-01 12:54:34 +00:00
xdisp-tests.el ; Add 2026 to copyright years. 2026-01-01 12:54:34 +00:00
xfaces-tests.el ; Add 2026 to copyright years. 2026-01-01 12:54:34 +00:00
xml-tests.el ; Add 2026 to copyright years. 2026-01-01 12:54:34 +00:00