mirror of
https://github.com/joaotavora/yasnippet.git
synced 2025-10-13 21:13:04 +00:00
yas-x-prompt: remove dead code
This commit is contained in:
parent
4470110384
commit
c07db054ec
17
yasnippet.el
17
yasnippet.el
@ -1543,22 +1543,17 @@ Optional PROMPT sets the prompt to use."
|
|||||||
;;
|
;;
|
||||||
(when (and window-system choices)
|
(when (and window-system choices)
|
||||||
(or
|
(or
|
||||||
(let* ((display-fn (or display-fn #'identity))
|
(x-popup-menu
|
||||||
(menu
|
(if (fboundp 'posn-at-point)
|
||||||
(list prompt
|
|
||||||
(cons "title"
|
|
||||||
(mapcar (lambda (c)
|
|
||||||
(let ((d (funcall display-fn c)))
|
|
||||||
(cond ((stringp d) (cons (concat " " d) c))
|
|
||||||
((listp d) (car d)))))
|
|
||||||
choices)))))
|
|
||||||
(x-popup-menu (if (fboundp 'posn-at-point)
|
|
||||||
(let ((x-y (posn-x-y (posn-at-point (point)))))
|
(let ((x-y (posn-x-y (posn-at-point (point)))))
|
||||||
(list (list (+ (car x-y) 10)
|
(list (list (+ (car x-y) 10)
|
||||||
(+ (cdr x-y) 20))
|
(+ (cdr x-y) 20))
|
||||||
(selected-window)))
|
(selected-window)))
|
||||||
t)
|
t)
|
||||||
menu))
|
`(,prompt ("title"
|
||||||
|
,@(mapcar* (lambda (c d) `(,(concat " " d) . ,c))
|
||||||
|
choices
|
||||||
|
(if display-fn (mapcar display-fn choices) choices)))))
|
||||||
(keyboard-quit))))
|
(keyboard-quit))))
|
||||||
|
|
||||||
(defun yas--x-pretty-prompt-templates (prompt templates)
|
(defun yas--x-pretty-prompt-templates (prompt templates)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user