[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/ebdb 10c1e76 185/350: When replying to messages, start
From: |
Eric Abrahamsen |
Subject: |
[elpa] externals/ebdb 10c1e76 185/350: When replying to messages, start with a populated EBDB buffer |
Date: |
Mon, 14 Aug 2017 11:46:33 -0400 (EDT) |
branch: externals/ebdb
commit 10c1e7611717b9f161b7942d6b3e05422e793277
Author: Eric Abrahamsen <address@hidden>
Commit: Eric Abrahamsen <address@hidden>
When replying to messages, start with a populated EBDB buffer
* ebdb-message.el: We've already got contacts to display, so create
an *EBDB* buffer right off the bat, and use gnus window
configuration to make sure it's displayed.
---
ebdb-message.el | 24 +++++++++++++++++++++---
1 file changed, 21 insertions(+), 3 deletions(-)
diff --git a/ebdb-message.el b/ebdb-message.el
index 79d1487..2951cdf 100644
--- a/ebdb-message.el
+++ b/ebdb-message.el
@@ -68,9 +68,6 @@
(cl-defmethod ebdb-popup-window (&context (major-mode mail-mode))
(list (get-buffer-window) 0.4))
-;; There's a bit more work to do here: *EBDB-Message* buffer should
-;; be displayed immediately when replying to messages, for instance.
-
(defun ebdb-insinuate-message ()
(when ebdb-complete-mail
(cl-pushnew
'("^\\(Resent-\\)?\\(To\\|B?Cc\\|Reply-To\\|From\\|Mail-Followup-To\\|Mail-Copies-To\\):"
. ebdb-complete-mail)
@@ -99,5 +96,26 @@
(add-hook 'mail-setup-hook 'ebdb-insinuate-mail)
(add-hook 'message-send-hook 'ebdb-mua-auto-update)
(add-hook 'mail-send-hook 'ebdb-mua-auto-update)
+
+;; Slightly convoluted, but does it the "right way". The
+;; `message-header-setup-hook' creates and populates the
+;; *EBDB-Message* buffer after the message-mode buffer is created.
+;; The gnus window configuration stanza makes sure it's displayed
+;; after the message buffer is set up.
+(add-to-list 'gnus-window-to-buffer `(ebdb . ,(ebdb-message-buffer-name)))
+(add-hook 'message-header-setup-hook 'ebdb-mua-auto-update)
+
+(gnus-add-configuration
+ '(reply
+ (horizontal 1.0
+ (message 1.0 point)
+ (ebdb 0.4))))
+
+(gnus-add-configuration
+ '(reply-yank
+ (horizontal 1.0
+ (message 1.0 point)
+ (ebdb 0.4))))
+
(provide 'ebdb-message)
;;; ebdb-message.el ends here
- [elpa] externals/ebdb 7662133 140/350: Simplify ebdb-dwim-mail, (continued)
- [elpa] externals/ebdb 7662133 140/350: Simplify ebdb-dwim-mail, Eric Abrahamsen, 2017/08/14
- [elpa] externals/ebdb 0cfe1ec 164/350: Provide keybinding for ebdb-format-all-records, Eric Abrahamsen, 2017/08/14
- [elpa] externals/ebdb bf51b58 161/350: Fix ebdb-delete-redundant-mails, Eric Abrahamsen, 2017/08/14
- [elpa] externals/ebdb 279eb56 169/350: Tweaks and additions to manual, Eric Abrahamsen, 2017/08/14
- [elpa] externals/ebdb eea0abf 165/350: VCard export is good enough, Eric Abrahamsen, 2017/08/14
- [elpa] externals/ebdb 64b5e43 170/350: Fix autoloads in ebdb.el, Eric Abrahamsen, 2017/08/14
- [elpa] externals/ebdb a968dd3 143/350: First actually-working version of snarfing, Eric Abrahamsen, 2017/08/14
- [elpa] externals/ebdb a8e0221 179/350: Missing local variable binding, Eric Abrahamsen, 2017/08/14
- [elpa] externals/ebdb e71548d 172/350: Allow for characters before mail addresses when snarfing, Eric Abrahamsen, 2017/08/14
- [elpa] externals/ebdb 14b03b5 186/350: Fix menu entry of ebdb-create-record, Eric Abrahamsen, 2017/08/14
- [elpa] externals/ebdb 10c1e76 185/350: When replying to messages, start with a populated EBDB buffer,
Eric Abrahamsen <=
- [elpa] externals/ebdb b9e6034 187/350: Increase base field indentation in *EBDB* buffers, Eric Abrahamsen, 2017/08/14
- [elpa] externals/ebdb a19ff0a 168/350: Simplify pop-up window splitting, Eric Abrahamsen, 2017/08/14
- [elpa] externals/ebdb 4c6b6f5 190/350: Protect gnus stuff behind eval-after-load, Eric Abrahamsen, 2017/08/14
- [elpa] externals/ebdb e0c3311 177/350: Fix parsing of suffixes in names, Eric Abrahamsen, 2017/08/14
- [elpa] externals/ebdb 429cdb0 183/350: Add safety check to ebdb-undisplay-records, Eric Abrahamsen, 2017/08/14
- [elpa] externals/ebdb 744c829 182/350: Clear *EBDB-Message* buffers when composing new message, Eric Abrahamsen, 2017/08/14
- [elpa] externals/ebdb 8ebba5d 178/350: Very basic test setup, Eric Abrahamsen, 2017/08/14
- [elpa] externals/ebdb 927c2ac 188/350: Be more careful about name formatting, Eric Abrahamsen, 2017/08/14
- [elpa] externals/ebdb e52e17e 192/350: Pop up EBDB buffer when using company to complete, Eric Abrahamsen, 2017/08/14
- [elpa] externals/ebdb fc1a480 191/350: Fix ebdb-delete-redundant-mails, Eric Abrahamsen, 2017/08/14