emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [elpa] externals/pyim 09fd273 07/36: Sort pyim-common.el


From: Stefan Monnier
Subject: Re: [elpa] externals/pyim 09fd273 07/36: Sort pyim-common.el
Date: Thu, 22 Apr 2021 23:14:33 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux)

> +(defun pyim-exwm-enable-p ()
> +  "测试当前是否是 exwm 环境。"
> +  (string-match-p " \\*temp\\*" (buffer-name)))

I think this deserves a comment explaining why this test indicates
whether we're in exwm.  After all, ` *temp*` is the name of the buffers
used by `with-temp-buffer`, so AFAIK there can be lots and lots of
circumstances where the current buffer's name is ` *temp*`, regardless
of whether we're using exwm.


        Stefan




reply via email to

[Prev in Thread] Current Thread [Next in Thread]