emacs/lisp/obsolete
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
..
autoarg.el ; Add 2026 to copyright years. 2026-01-01 12:54:34 +00:00
autoload.el ; Add 2026 to copyright years. 2026-01-01 12:54:34 +00:00
bruce.el ; Add 2026 to copyright years. 2026-01-01 12:54:34 +00:00
cdl.el ; Add 2026 to copyright years. 2026-01-01 12:54:34 +00:00
cl-compat.el ; Add 2026 to copyright years. 2026-01-01 12:54:34 +00:00
cl.el Rename 'any' to 'member-if' and deprecate 'cl-member-if' 2026-03-04 14:43:05 +00:00
crisp.el ; Add 2026 to copyright years. 2026-01-01 12:54:34 +00:00
echistory.el ; Add 2026 to copyright years. 2026-01-01 12:54:34 +00:00
eieio-compat.el ; Add 2026 to copyright years. 2026-01-01 12:54:34 +00:00
elint.el ; Add 2026 to copyright years. 2026-01-01 12:54:34 +00:00
eudcb-ph.el ; Add 2026 to copyright years. 2026-01-01 12:54:34 +00:00
gs.el ; Add 2026 to copyright years. 2026-01-01 12:54:34 +00:00
gulp.el ; Add 2026 to copyright years. 2026-01-01 12:54:34 +00:00
hashcash.el ; Add 2026 to copyright years. 2026-01-01 12:54:34 +00:00
html2text.el ; Add 2026 to copyright years. 2026-01-01 12:54:34 +00:00
idlw-complete-structtag.el ; Add 2026 to copyright years. 2026-01-01 12:54:34 +00:00
idlw-help.el ; Add 2026 to copyright years. 2026-01-01 12:54:34 +00:00
idlw-shell.el ; Add 2026 to copyright years. 2026-01-01 12:54:34 +00:00
idlw-toolbar.el ; Add 2026 to copyright years. 2026-01-01 12:54:34 +00:00
idlwave.el ; Add 2026 to copyright years. 2026-01-01 12:54:34 +00:00
inversion.el ; Add 2026 to copyright years. 2026-01-01 12:54:34 +00:00
iswitchb.el ; Add 2026 to copyright years. 2026-01-01 12:54:34 +00:00
kermit.el ; Add 2026 to copyright years. 2026-01-01 12:54:34 +00:00
landmark.el ; Add 2026 to copyright years. 2026-01-01 12:54:34 +00:00
linum.el Add predicate for initial_terminal 2026-03-26 15:19:56 +01:00
longlines.el ; Add 2026 to copyright years. 2026-01-01 12:54:34 +00:00
makesum.el ; Add 2026 to copyright years. 2026-01-01 12:54:34 +00:00
mantemp.el ; Add 2026 to copyright years. 2026-01-01 12:54:34 +00:00
messcompat.el ; Add 2026 to copyright years. 2026-01-01 12:54:34 +00:00
metamail.el ; Add 2026 to copyright years. 2026-01-01 12:54:34 +00:00
mh-compat.el ; Add 2026 to copyright years. 2026-01-01 12:54:34 +00:00
netrc.el ; Add 2026 to copyright years. 2026-01-01 12:54:34 +00:00
nnir.el ; Add 2026 to copyright years. 2026-01-01 12:54:34 +00:00
package-x.el ; Add 2026 to copyright years. 2026-01-01 12:54:34 +00:00
pgg-def.el ; Add 2026 to copyright years. 2026-01-01 12:54:34 +00:00
pgg-gpg.el ; Add 2026 to copyright years. 2026-01-01 12:54:34 +00:00
pgg-parse.el ; Add 2026 to copyright years. 2026-01-01 12:54:34 +00:00
pgg-pgp.el ; Add 2026 to copyright years. 2026-01-01 12:54:34 +00:00
pgg-pgp5.el ; Add 2026 to copyright years. 2026-01-01 12:54:34 +00:00
pgg.el ; Add 2026 to copyright years. 2026-01-01 12:54:34 +00:00
ps-def.el ; Add 2026 to copyright years. 2026-01-01 12:54:34 +00:00
quickurl.el ; Add 2026 to copyright years. 2026-01-01 12:54:34 +00:00
rfc2368.el ; Add 2026 to copyright years. 2026-01-01 12:54:34 +00:00
rlogin.el ; Add 2026 to copyright years. 2026-01-01 12:54:34 +00:00
sb-image.el ; Add 2026 to copyright years. 2026-01-01 12:54:34 +00:00
starttls.el ; Add 2026 to copyright years. 2026-01-01 12:54:34 +00:00
thumbs.el ; Add 2026 to copyright years. 2026-01-01 12:54:34 +00:00
tls.el ; Add 2026 to copyright years. 2026-01-01 12:54:34 +00:00
tpu-edt.el ; Add 2026 to copyright years. 2026-01-01 12:54:34 +00:00
tpu-extras.el ; Add 2026 to copyright years. 2026-01-01 12:54:34 +00:00
tpu-mapper.el ; Add 2026 to copyright years. 2026-01-01 12:54:34 +00:00
uce.el ; Add 2026 to copyright years. 2026-01-01 12:54:34 +00:00
url-about.el ; Add 2026 to copyright years. 2026-01-01 12:54:34 +00:00
url-dired.el ; Add 2026 to copyright years. 2026-01-01 12:54:34 +00:00
url-ns.el ; Add 2026 to copyright years. 2026-01-01 12:54:34 +00:00
vc-arch.el ; Add 2026 to copyright years. 2026-01-01 12:54:34 +00:00
vc-dav.el ; Add 2026 to copyright years. 2026-01-01 12:54:34 +00:00
vc-mtn.el ; Add 2026 to copyright years. 2026-01-01 12:54:34 +00:00
vt-control.el ; Add 2026 to copyright years. 2026-01-01 12:54:34 +00:00
vt100-led.el ; Add 2026 to copyright years. 2026-01-01 12:54:34 +00:00