[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/posframe bf5bd24 14/40: Improve logic in 'posframe-func
From: |
Feng Shu |
Subject: |
[elpa] externals/posframe bf5bd24 14/40: Improve logic in 'posframe-funcall' |
Date: |
Wed, 5 Feb 2020 04:27:18 -0500 (EST) |
branch: externals/posframe
commit bf5bd2470ac8ac6f501abaf31045598ad1897432
Author: Štěpán Němec <address@hidden>
Commit: Štěpán Němec <address@hidden>
Improve logic in 'posframe-funcall'
There is not much point in searching for a buffer and selecting
a frame if we don't have a function to call.
Also touch up the doc string.
---
posframe.el | 13 ++++++-------
1 file changed, 6 insertions(+), 7 deletions(-)
diff --git a/posframe.el b/posframe.el
index b0f01ca..d41a7f4 100644
--- a/posframe.el
+++ b/posframe.el
@@ -698,13 +698,12 @@ This posframe's buffer is BUFFER-OR-NAME."
(kill-buffer buffer-or-name)))
(defun posframe-funcall (buffer-or-name function &rest arguments)
- "Select posframe of BUFFER-OR-NAME's, and call FUNCTION.
-passing remaining ARGUMENTS to it."
- (when (get-buffer buffer-or-name)
- (with-current-buffer buffer-or-name
- (when (framep posframe--frame)
- (with-selected-frame posframe--frame
- (when (functionp function)
+ "Select posframe of BUFFER-OR-NAME and call FUNCTION with ARGUMENTS."
+ (when (functionp function)
+ (when (get-buffer buffer-or-name)
+ (with-current-buffer buffer-or-name
+ (when (framep posframe--frame)
+ (with-selected-frame posframe--frame
(apply function arguments)))))))
;;;###autoload
- [elpa] externals/posframe updated (fc90a1a -> c250771), Feng Shu, 2020/02/05
- [elpa] externals/posframe d12d686 04/40: Improve 'posframe-show' documentation string, Feng Shu, 2020/02/05
- [elpa] externals/posframe 9900f93 06/40: Fix compiler and checkdoc warnings, Feng Shu, 2020/02/05
- [elpa] externals/posframe 3e02422 02/40: Fix compiler and checkdoc warnings, Feng Shu, 2020/02/05
- [elpa] externals/posframe 8242db6 03/40: Autoload the main entry point, Feng Shu, 2020/02/05
- [elpa] externals/posframe 3583a21 05/40: More documentation language improvements, Feng Shu, 2020/02/05
- [elpa] externals/posframe f44d3a5 09/40: Merge pull request #35 from stepnem/fix-warnings, Feng Shu, 2020/02/05
- [elpa] externals/posframe 427318d 01/40: Fix posframe-delete doesn't kill the posframe buffer #39, Feng Shu, 2020/02/05
- [elpa] externals/posframe 9a1a17b 08/40: Fix incorrect current-buffer bug in 'posframe-show', Feng Shu, 2020/02/05
- [elpa] externals/posframe bf5bd24 14/40: Improve logic in 'posframe-funcall',
Feng Shu <=
- [elpa] externals/posframe ab72f53 07/40: Autoload the main entry point, Feng Shu, 2020/02/05
- [elpa] externals/posframe 9520893 32/40: Merge pull request #49 from conao3/trivial-fix, Feng Shu, 2020/02/05
- [elpa] externals/posframe f02770e 22/40: Revert "'posframe-buffer-frame': New function to get a buffer's posframe", Feng Shu, 2020/02/05
- [elpa] externals/posframe 3c740c1 28/40: add convenience keyword, Feng Shu, 2020/02/05
- [elpa] externals/posframe 2c5f390 16/40: 'posframe-buffer-frame': New function to get a buffer's posframe, Feng Shu, 2020/02/05
- [elpa] externals/posframe fe57b4f 19/40: Don't modify global value of 'kill-buffer-hook', Feng Shu, 2020/02/05
- [elpa] externals/posframe e3fd09f 35/40: posframe-show: call redisplay to let border showed., Feng Shu, 2020/02/05
- [elpa] externals/posframe b77cd06 29/40: add space after period, Feng Shu, 2020/02/05
- [elpa] externals/posframe f413a4f 30/40: add center handler, Feng Shu, 2020/02/05
- [elpa] externals/posframe 1fd8c8c 13/40: Remove unused bindings in 'posframe-hide-all' and 'posframe-delete-all', Feng Shu, 2020/02/05