[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] master 2776358 059/348: Show current value of the variable in the
From: |
Oleh Krehel |
Subject: |
[elpa] master 2776358 059/348: Show current value of the variable in the prompt |
Date: |
Sat, 8 Apr 2017 11:03:24 -0400 (EDT) |
branch: master
commit 27763580be79d9f9539beb21c1a6070d04bc868b
Author: Kaushal Modi <address@hidden>
Commit: Oleh Krehel <address@hidden>
Show current value of the variable in the prompt
* counsel-set-variable: The current value of the selected variable is
now also shown in the prompt, between the ‹..› brackets. That way, the
current value of the variable is more explicit to the user.
Fixes #546
---
counsel.el | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/counsel.el b/counsel.el
index c62c666..c4a3174 100644
--- a/counsel.el
+++ b/counsel.el
@@ -538,9 +538,10 @@ input corresponding to the chosen variable."
((eq sym-type 'boolean)
(setq cands '(("nil" . nil) ("t" . t))))
(t nil)))
- (let ((res (ivy-read (format "Set (%S): " sym)
+ (let* ((sym-val (symbol-value sym))
+ (res (ivy-read (format "Set (%S <%s>): " sym sym-val)
cands
- :preselect (prin1-to-string (symbol-value sym)))))
+ :preselect (prin1-to-string sym-val))))
(when res
(setq res
(if (assoc res cands)
- [elpa] master 85dc501 005/348: doc/Changelog.org: Add CUSTOM_ID to releases 0.6.0 and 0.7.0, (continued)
- [elpa] master 85dc501 005/348: doc/Changelog.org: Add CUSTOM_ID to releases 0.6.0 and 0.7.0, Oleh Krehel, 2017/04/08
- [elpa] master 5826c86 035/348: ivy.el (ivy--reset-state): Add workaround for dired-do-copy, Oleh Krehel, 2017/04/08
- [elpa] master f57e2fb 039/348: ivy.el (ivy-immediate-done): Update docstring, Oleh Krehel, 2017/04/08
- [elpa] master 4f57a3a 041/348: Add forth-block-mode, Oleh Krehel, 2017/04/08
- [elpa] master db94a12 043/348: ivy.el (ivy-completion-in-region): Fix double insert bug, Oleh Krehel, 2017/04/08
- [elpa] master de91a77 042/348: swiper.el (swiper-occur): Add require, Oleh Krehel, 2017/04/08
- [elpa] master fabcdc0 004/348: doc/Changelog.org: Add custom ids and whitespace in the end, Oleh Krehel, 2017/04/08
- [elpa] master c30a6e2 046/348: ivy.el (ivy-minibuffer-map): Undo remap, Oleh Krehel, 2017/04/08
- [elpa] master 3e1a940 045/348: counsel.el: Fix byte compile warnings, Oleh Krehel, 2017/04/08
- [elpa] master c960de5 047/348: counsel.el (counsel-grep-or-swiper): Don't grep on compressed files, Oleh Krehel, 2017/04/08
- [elpa] master 2776358 059/348: Show current value of the variable in the prompt,
Oleh Krehel <=
- [elpa] master beee0b7 048/348: counsel.el (counsel-git): Add better error message, Oleh Krehel, 2017/04/08
- [elpa] master 65948fc 053/348: colir.el (colir-parse-color): Fix color parsing in terminal, Oleh Krehel, 2017/04/08
- [elpa] master e987cef 061/348: counsel.el (counsel-read-setq-expression): Fix Eldoc nag, Oleh Krehel, 2017/04/08
- [elpa] master 0091c8a 058/348: ivy.el (ivy-set-prompt-text-properties-function): New devar, Oleh Krehel, 2017/04/08
- [elpa] master 473c595 064/348: Facilitate the sorting of cons cell input to ivy-read, Oleh Krehel, 2017/04/08
- [elpa] master 23bd7a4 075/348: counsel.el (counsel-git): Add :caller, Oleh Krehel, 2017/04/08
- [elpa] master 74358c2 070/348: Purge all dependency on helm-rhythmbox, Oleh Krehel, 2017/04/08
- [elpa] master 56aa605 076/348: ivy.el (ivy-add-prompt-count): Refactor from ivy--reset-state, Oleh Krehel, 2017/04/08
- [elpa] master 9c01abf 003/348: doc/Changelog.org: Add hlines, Oleh Krehel, 2017/04/08
- [elpa] master e53f256 087/348: ivy.el (ivy-minibuffer-map): Move ivy-toggle-regexp-quote from "M-q" to "M-r", Oleh Krehel, 2017/04/08