[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/posframe 3f96881 05/13: Fix: "doesn't work if the buffe
From: |
Feng Shu |
Subject: |
[elpa] externals/posframe 3f96881 05/13: Fix: "doesn't work if the buffer is empty" |
Date: |
Sat, 8 Jun 2019 19:42:27 -0400 (EDT) |
branch: externals/posframe
commit 3f96881825fe289483a46ae870e518a3fc5c451e
Author: Feng Shu <address@hidden>
Commit: Feng Shu <address@hidden>
Fix: "doesn't work if the buffer is empty"
---
posframe.el | 8 +++++---
1 file changed, 5 insertions(+), 3 deletions(-)
diff --git a/posframe.el b/posframe.el
index 6a23f03..6fc32c6 100644
--- a/posframe.el
+++ b/posframe.el
@@ -531,9 +531,11 @@ you can use `posframe-delete-all' to delete all posframes."
"Get the font's height at POSITION."
(if (eq position (car posframe--last-font-height-info))
(cdr posframe--last-font-height-info)
- (let* ((font (font-at (if (and (= position (point-max)))
- (- position 1)
- position)))
+ (let* ((font (when (and (integerp position)
+ (not (= position 1)))
+ (font-at (if (and (= position (point-max)))
+ (- position 1)
+ position))))
(height (when (integerp position)
(if (or (= position 1) (not (fontp font)))
(default-line-height)
- [elpa] externals/posframe updated (11c2fa2 -> fc90a1a), Feng Shu, 2019/06/08
- [elpa] externals/posframe 2e89f6b 03/13: Make posframe work for `emacs -nw`, Feng Shu, 2019/06/08
- [elpa] externals/posframe 37ed96f 08/13: * posframe.el (posframe--frame, posframe-show): Remove posframe-default-initialize-function, Feng Shu, 2019/06/08
- [elpa] externals/posframe e4f171f 06/13: * posframe.el (posframe-funcall): New function., Feng Shu, 2019/06/08
- [elpa] externals/posframe fc90a1a 13/13: Bump version 0.5.0, Feng Shu, 2019/06/08
- [elpa] externals/posframe 1600177 10/13: Update README, Feng Shu, 2019/06/08
- [elpa] externals/posframe e9547ab 11/13: Update README, Feng Shu, 2019/06/08
- [elpa] externals/posframe e02cd64 04/13: Merge pull request #32 from hexmode/fix-face, Feng Shu, 2019/06/08
- [elpa] externals/posframe 3f96881 05/13: Fix: "doesn't work if the buffer is empty",
Feng Shu <=
- [elpa] externals/posframe 455bf82 12/13: * posframe.el (posframe-show): Fix error when position is a (X . Y), Feng Shu, 2019/06/08
- [elpa] externals/posframe 219ed02 02/13: Merge pull request #28 from billywade/master, Feng Shu, 2019/06/08
- [elpa] externals/posframe b04f321 01/13: added documentation on posframe-mouse-banish, Feng Shu, 2019/06/08
- [elpa] externals/posframe 82b3760 09/13: Add posframe-arghandler, Feng Shu, 2019/06/08
- [elpa] externals/posframe dd97448 07/13: Remove face-remap feature., Feng Shu, 2019/06/08