]> git.eshelyaron.com Git - emacs.git/commit
Replace NS code that implemented font panels in a different way
authorPo Lu <luangruo@yahoo.com>
Sun, 1 May 2022 13:39:33 +0000 (21:39 +0800)
committerPo Lu <luangruo@yahoo.com>
Sun, 1 May 2022 13:39:54 +0000 (21:39 +0800)
commit9370a4763aacbb9278b5be9c92a2484e3652bc29
treefdc5b0fe1c999e79443cf3fbd669f4b8428c6f68
parent7c8bec9e1ffe087918f6f218fc4560fc968aebb2
Replace NS code that implemented font panels in a different way

* doc/emacs/macos.texi (Mac / GNUstep Events): Document removal
of `ns-change-font' event.  The font panels are now implemented
normally, via `x-select-font'.

* lisp/term/common-win.el (x-setup-function-keys): Likewise.

* lisp/term/ns-win.el (global-map, ns-popup-font-panel): Remove.
(x-select-font, mouse-set-font, ns-input-font):
(ns-input-fontsize): Remove.
(ns-respond-to-change-font): Delete function.

* src/nsfns.m (Fns_popup_font_panel): Delete function.
(Fx_select_font): New function.
(syms_of_nsfns): Update subrs.
* src/nsterm.h (@interface EmacsView):
* src/nsterm.m (ns_select_1): New function.
(ns_select): Wrap around that instead.
([EmacsView changeFont:]): Exit nested event loop
([EmacsView showFontPanel:]): New function.
doc/emacs/macos.texi
lisp/term/common-win.el
lisp/term/ns-win.el
src/nsfns.m
src/nsterm.h
src/nsterm.m