masm11 / emacs

Mirror of GNU Emacs
http://www.gnu.org/software/emacs/
GNU General Public License v3.0
198 stars 14 forks source link

GTK Error on childframes Pt II #64

Closed A6GibKm closed 3 years ago

A6GibKm commented 3 years ago

Somewhat related to #61. When running certain childframes from company-mode an error

(emacs:722892): Gtk-CRITICAL **: 15:05:45.917: gtk_window_set_focus_on_map: assertion 'GTK_IS_WINDOW (window)' failed

(emacs:722892): Gtk-CRITICAL **: 15:05:46.586: gtk_window_set_focus_on_map: assertion 'GTK_IS_WINDOW (window)' failed

Appears.

Environment

Wayland & GNOME 3.38

How to reproduce

With the following ~/.emacs config:

;;; ~/.emacs -*- lexical-binding: t; -*-

(require 'package)
(setq package-enable-at-startup nil)
(add-to-list 'package-archives '("melpa" . "http://melpa.org/packages/"))
(add-to-list 'package-archives '("gnu" . "http://elpa.gnu.org/packages/"))
(package-initialize)

(unless (package-installed-p 'use-package)
  (package-refresh-contents)
  (package-install 'use-package))

(eval-when-compile
  (require 'use-package))

(use-package company
  :ensure t)

(use-package company-box
  :ensure t)

Run emacs from a terminal. Then, on a lisp mode buffer activate both modes

And as in a previous issue, invoke company mode by writing (des

A6GibKm commented 3 years ago

Similar to the previous issue, it seems this is not harmful and the childframes do appear as expected.

image

A6GibKm commented 3 years ago

68 Fixes the issue. Tested and no regressions that I know of were found.

masm11 commented 3 years ago

Thanks. Merged.