[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/ebdb 5726c97 2/7: Add a ebdb-fmt-field implementation f
From: |
Eric Abrahamsen |
Subject: |
[elpa] externals/ebdb 5726c97 2/7: Add a ebdb-fmt-field implementation for images |
Date: |
Fri, 14 Dec 2018 15:44:20 -0500 (EST) |
branch: externals/ebdb
commit 5726c97426ddef356f099e70ccdb0a2df8f9d3ab
Author: Eric Abrahamsen <address@hidden>
Commit: Eric Abrahamsen <address@hidden>
Add a ebdb-fmt-field implementation for images
* ebdb-com.el (ebdb-fmt-field): This used to be hard-coded.
---
ebdb-com.el | 15 +++++++++++++++
1 file changed, 15 insertions(+)
diff --git a/ebdb-com.el b/ebdb-com.el
index bf98178..2a9c95a 100644
--- a/ebdb-com.el
+++ b/ebdb-com.el
@@ -642,6 +642,21 @@ Print the first line, add an ellipsis, and add a tooltip."
(propertize value 'face 'ebdb-role-defunct)
value))))
+(cl-defmethod ebdb-fmt-field ((_fmt ebdb-formatter-ebdb)
+ (field ebdb-field-image)
+ _style
+ (record ebdb-record))
+ (if (display-images-p)
+ (progn
+ (require 'image)
+ (propertize
+ " "
+ ;; Cribbed from `insert-image'.
+ (list 'display (ebdb-field-image-get field record)
+ 'rear-nonsticky '(display)
+ 'keymap image-map)))
+ "<img>"))
+
(defsubst ebdb-indent-string (string column)
"Indent nonempty lines in STRING to COLUMN (except first line).
This happens in addition to any pre-defined indentation of STRING."
- [elpa] externals/ebdb updated (4444031 -> 61403ee), Eric Abrahamsen, 2018/12/14
- [elpa] externals/ebdb 5242e6f 6/7: Forgot to reverse the list of collected fields in formatting, Eric Abrahamsen, 2018/12/14
- [elpa] externals/ebdb f7281f8 4/7: Don't exit ebdb-mua-in-ebdb-buffer during minibuffer input, Eric Abrahamsen, 2018/12/14
- [elpa] externals/ebdb a40874b 3/7: Use ebdb-foo-in-list for the fast lookups check, Eric Abrahamsen, 2018/12/14
- [elpa] externals/ebdb 5726c97 2/7: Add a ebdb-fmt-field implementation for images,
Eric Abrahamsen <=
- [elpa] externals/ebdb f07cadf 1/7: Exclude full formatter from `ebdb-available-ebdb-formatters', Eric Abrahamsen, 2018/12/14
- [elpa] externals/ebdb 61403ee 7/7: Protect against databases with no records, bump to 0.6.1, Eric Abrahamsen, 2018/12/14
- [elpa] externals/ebdb 09018d9 5/7: Small manual tweaks and typo fixes, Eric Abrahamsen, 2018/12/14