Skip to content

fix for calling completing read from emacsclient -e - #3086

Open
papercatlol wants to merge 1 commit into
abo-abo:masterfrom
papercatlol:master
Open

papercatlol wants to merge 1 commit into
abo-abo:masterfrom
papercatlol:master

Conversation

@papercatlol

Copy link
Copy Markdown

Apparently emacsclient -e doesn't set this-command, which makes ivy-read incorrectly copy some settings from ivy-last.

In ivy-read: if both caller and this-command are nil, caller stays nil, which then makes ivy-alist-setting pull settings from ivy-last. This breaks things if previous ivy command was swiper or other ivy caller with special behavior.

To reproduce:

  1. Start emacs daemon.
  2. Use swiper in some frame.
  3. Run emacsclient -c -e '(ivy-read "test: " (list "a" "b"))'

'ivy-read caller in the proposed fix is just a placeholder and can be 'unknown-caller, 'default or whatever makes sense as a fallback value.

Apparently 'emacsclient -e' doesn't set this-command, which makes ivy
incorrectly copy some settings from ivy-last.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant