[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [elpa] externals/posframe acf0fbe 1/2: * posframe.el: Silence byte-c
From: |
Stefan Monnier |
Subject: |
Re: [elpa] externals/posframe acf0fbe 1/2: * posframe.el: Silence byte-compiler. |
Date: |
Sun, 30 May 2021 20:15:59 -0400 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) |
> (if (version< emacs-version "27.1")
> - (add-hook 'focus-in-hook #'posframe--redirect-posframe-focus)
> + (with-no-warnings
> + (add-hook 'focus-in-hook #'posframe--redirect-posframe-focus))
> (add-function :after after-focus-change-function
> #'posframe--redirect-posframe-focus))
I know it's not the part of the code you changed, but (version< emacs-version
"27.1")
should probably be replaced with the simpler (< emacs-major-version 27),
tho (boundp 'after-focus-change-function) would be fine as well ;-).
Stefan
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Re: [elpa] externals/posframe acf0fbe 1/2: * posframe.el: Silence byte-compiler.,
Stefan Monnier <=