summaryrefslogtreecommitdiff
path: root/src/pgtkfns.c
diff options
context:
space:
mode:
authorPo Lu <luangruo@yahoo.com>2022-04-06 12:27:57 +0800
committerPo Lu <luangruo@yahoo.com>2022-04-06 12:27:57 +0800
commit62eb57f43871dacb6c7ac1f6e2cdaf7add1414e2 (patch)
tree0f4257717da2612a0780240058f7fdff97f92af0 /src/pgtkfns.c
parentf0ff20be51980731364ef5ccf0505c35ea1b4e78 (diff)
downloademacs-62eb57f43871dacb6c7ac1f6e2cdaf7add1414e2.tar.gz
Clean up more PGTK code
* lisp/term/pgtk-win.el (featurep): (pgtk): (pgtk-use-im-context): (pgtk-handle-nxopen): (pgtk-handle-nxopentemp): (pgtk-ignore-1-arg): ([C-drag-n-drop]): ([M-drag-n-drop]): ([C-M-drag-n-drop]): (pgtk-alternate-modifier): (pgtk-right-alternate-modifier): (pgtk-right-command-modifier): (pgtk-right-control-modifier): (pgtk-do-hide-emacs): (pgtk-hide-others): (pgtk-do-hide-others): (pgtk-emacs-info-panel): (pgtk-do-emacs-info-panel): (pgtk-next-frame): (pgtk-prev-frame): (after-make-frame-functions): (tool-bar-mode): (pgtk-toggle-toolbar): (pgtk-print-buffer): (scalable-fonts-allowed): (pgtk-standard-fontset-spec): (pgtk-store-cut-buffer-internal): (pgtk-copy-including-secondary): (pgtk-paste-secondary): (pgtk-suspend-error): (window-system-initialization): (after-init-hook): Remove code mindlessly copied from ns-win.el, delete unused custom group, write doc strings and rename variables duplicated from X to their names on X. Also reformat comments and code. (pgtk-use-im-context-handler): New function. * src/pgtkfns.c (syms_of_pgtkfns): Delete useless AppleScript (!) code copied from NS. * src/pgtkselect.c: Write FIXME about selection API usage. * src/pgtkterm.c (get_keysym_name): Implement correctly instead of sprintf'ing the numeric value of the keysym into a static buffer. (pgtk_set_window_size): (xg_scroll_callback): Delete code that was #if 0'd out and doesn't make sense on PGTK. (pgtk_delete_terminal): Remove misleading comment.
Diffstat (limited to 'src/pgtkfns.c')
-rw-r--r--src/pgtkfns.c13
1 files changed, 0 insertions, 13 deletions
diff --git a/src/pgtkfns.c b/src/pgtkfns.c
index 38e60858432..b028296720b 100644
--- a/src/pgtkfns.c
+++ b/src/pgtkfns.c
@@ -38,13 +38,6 @@ along with GNU Emacs. If not, see <https://www.gnu.org/licenses/>. */
#include "xsettings.h"
#include "atimer.h"
-
-#ifdef HAVE_PGTK
-
-/* Static variables to handle applescript execution. */
-static Lisp_Object as_script, *as_result;
-static int as_status;
-
static ptrdiff_t image_cache_refcount;
static int x_decode_color (struct frame *f, Lisp_Object color_name,
@@ -4007,10 +4000,6 @@ be used as the image of the icon representing the frame. */);
defsubr (&Sx_file_dialog);
defsubr (&Sx_select_font);
- as_status = 0;
- as_script = Qnil;
- as_result = 0;
-
monitor_scale_factor_alist = Qnil;
staticpro (&monitor_scale_factor_alist);
@@ -4055,5 +4044,3 @@ be used as the image of the icon representing the frame. */);
DEFSYM (Qreverse_portrait, "reverse-portrait");
DEFSYM (Qreverse_landscape, "reverse-landscape");
}
-
-#endif