emacs/lisp/vc
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
..
add-log.el Mark add-log-always-start-new-record as safe 2026-02-17 13:37:04 +01:00
compare-w.el ; Add 2026 to copyright years. 2026-01-01 12:54:34 +00:00
cvs-status.el ; Add 2026 to copyright years. 2026-01-01 12:54:34 +00:00
diff-mode.el diff-mode.el: Don't recompute the position of Git preamble/footer 2026-03-20 16:53:42 -04:00
diff.el Autoload 'diff-no-select' 2026-02-13 19:53:12 +01:00
ediff-diff.el ; Add 2026 to copyright years. 2026-01-01 12:54:34 +00:00
ediff-help.el ; Add 2026 to copyright years. 2026-01-01 12:54:34 +00:00
ediff-hook.el ; Add 2026 to copyright years. 2026-01-01 12:54:34 +00:00
ediff-init.el ; Add 2026 to copyright years. 2026-01-01 12:54:34 +00:00
ediff-merg.el ; Add 2026 to copyright years. 2026-01-01 12:54:34 +00:00
ediff-mult.el ; Add 2026 to copyright years. 2026-01-01 12:54:34 +00:00
ediff-ptch.el ; Add 2026 to copyright years. 2026-01-01 12:54:34 +00:00
ediff-util.el ; Add 2026 to copyright years. 2026-01-01 12:54:34 +00:00
ediff-vers.el ; Add 2026 to copyright years. 2026-01-01 12:54:34 +00:00
ediff-wind.el Handle side windows in 'ediff-setup-windows-plain-compare' (Bug#80415) 2026-03-02 10:25:49 +01:00
ediff.el ; Add 2026 to copyright years. 2026-01-01 12:54:34 +00:00
emerge.el Fix emerge.el for remote files 2025-04-20 18:16:14 +02:00
log-edit.el ; Add 2026 to copyright years. 2026-01-01 12:54:34 +00:00
log-view.el vc-log-show-limit: Change default to 500, and the button to 4X 2026-02-14 02:52:52 +02:00
pcvs-defs.el ; Add 2026 to copyright years. 2026-01-01 12:54:34 +00:00
pcvs-info.el ; Add 2026 to copyright years. 2026-01-01 12:54:34 +00:00
pcvs-parse.el ; Add 2026 to copyright years. 2026-01-01 12:54:34 +00:00
pcvs-util.el ; Add 2026 to copyright years. 2026-01-01 12:54:34 +00:00
pcvs.el ; Add 2026 to copyright years. 2026-01-01 12:54:34 +00:00
smerge-mode.el Merge remote-tracking branch 'origin/scratch/error-API' 2026-03-15 17:17:21 -04:00
vc-annotate.el ; Add 2026 to copyright years. 2026-01-01 12:54:34 +00:00
vc-bzr.el ; Add 2026 to copyright years. 2026-01-01 12:54:34 +00:00
vc-cvs.el ; Add 2026 to copyright years. 2026-01-01 12:54:34 +00:00
vc-dir.el New command vc-dir-root-next-action 2026-02-21 17:18:24 +00:00
vc-dispatcher.el ; Fix documentation of a recently added user option 2026-03-05 19:48:46 +02:00
vc-filewise.el ; Add 2026 to copyright years. 2026-01-01 12:54:34 +00:00
vc-git.el New 'log-outstanding' value for vc-log-view-type 2026-02-27 13:45:24 +00:00
vc-hg.el New 'log-outstanding' value for vc-log-view-type 2026-02-27 13:45:24 +00:00
vc-hooks.el Add predicate for initial_terminal 2026-03-26 15:19:56 +01:00
vc-rcs.el ; Add 2026 to copyright years. 2026-01-01 12:54:34 +00:00
vc-sccs.el ; Add 2026 to copyright years. 2026-01-01 12:54:34 +00:00
vc-src.el ; Remove redundant cl-lib runtime dependencies across lisp/ 2026-01-17 15:32:15 +02:00
vc-svn.el ; Add 2026 to copyright years. 2026-01-01 12:54:34 +00:00
vc.el Use single-arg form of signal to re-throw an error 2026-03-10 10:48:22 -04:00