auto-complete / popup-el

Visual Popup Interface Library for Emacs
GNU General Public License v3.0
445 stars 96 forks source link

popup display problem when use in message-mode. #102

Open zw963 opened 8 years ago

zw963 commented 8 years ago

When I run my/select-and-insert-contact in message-mode. (please see this issue: https://github.com/auto-complete/popup-el/issues/100)

popup menu is show not correct for my emacs (24.5) (emacs -Q behavior the same)

popup.png

Thanks.

syohex commented 8 years ago

popup-messeage-mode

I cannot reproduce this issue.

zw963 commented 8 years ago

Sorry, I tried again, it worked seem fine in message mode, But it not worked well with mu4e. (mu4e, a email client for mu, a Maildir format index https://github.com/djcb/mu)

following is my config:

(require 'mu4e)
(setq mail-user-agent 'mu4e-user-agent)

;; offer a example for candicate.
(setq mu4e~contacts-for-completion '("CINSXCIO <jou@ucn062.chenyingwen.ac.cn>" "bviy@126.cn" "RXCINS <uaqwbg@xcn219.winmail.cc>" "春秋航空 <sac@dm.springairlines.com>" "❤zw963❤沈梓云 <thvhynchz@vej.v.a.lovesyour.com>" "李雪编辑 <15614134592@163.com>" "GitCafe <notifier@gitcafe.com>" "CSDN@mx211.edmsend.csdn.net" "⚡2016新年新功能 <emarket@email11.tccemail.info>" "CSDN@mx226.edmsend.csdn.net" "支付宝 <market@dm.mail.alipay.com>" "❤zw963❤偶凝海 <nnk@zgb.e.z.cn-org.com>" "grvey <mail@service.netease.com>" "张治国 <invitations@linkedin.com>" "❤zw963❤闽雨灵 <fzfmia@nhv.v.a.lovesyour.com>" "知乎 <marketing@newsletter2.zhihu.com>" "樊课长 <info@tidewaterco.com>" "Tサイト[Tポイント/Tカード] <mytc@tsite.jp>" "玩转老虎 <zw963@siyua.engdian.com>" "李雪编辑 <lx15373655633@163.com>"))

(require 'popup)
(defun my/select-and-insert-contact ()
  (interactive)
  (let ((contact (popup-menu* mu4e~contacts-for-completion)))
    (insert contact)))

after start emacs, C-x m to start expose email. the line which include --text follows this line-- is display abnormally.

Thanks.

zw963 commented 8 years ago

Anyway, this not affect a lot for me, I create this issue just for report purpose.

syohex commented 8 years ago

popup-mu4e-24 5

I can reproduce this issue on Emacs 24.5.

popup-mu4e

However I cannot reproduce on Emacs 25.