all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Re: [elpa] externals/exwm 2b7449e: ; Do not cache events for non-`exwm-mode' buffers
       [not found] ` <20170423154055.0210C2603F@vcs0.savannah.gnu.org>
@ 2017-04-23 15:59   ` Stefan Monnier
  0 siblings, 0 replies; only message in thread
From: Stefan Monnier @ 2017-04-23 15:59 UTC (permalink / raw)
  To: emacs-devel; +Cc: Chris Feng

> +        (if (not (eq major-mode 'exwm-mode))

Better use `derived-mode-p' rather than test `major-mode' directly.
Or even better in general: in exwm-mode, set a buffer-local variable
that represents the thing you want to test, and then test that var here.


        Stefan



^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2017-04-23 15:59 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <20170423154054.5792.49179@vcs0.savannah.gnu.org>
     [not found] ` <20170423154055.0210C2603F@vcs0.savannah.gnu.org>
2017-04-23 15:59   ` [elpa] externals/exwm 2b7449e: ; Do not cache events for non-`exwm-mode' buffers Stefan Monnier

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.