Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ws-butler and selectrum break package search #47

Open
meedstrom opened this issue May 27, 2021 · 0 comments
Open

ws-butler and selectrum break package search #47

meedstrom opened this issue May 27, 2021 · 0 comments

Comments

@meedstrom
Copy link

meedstrom commented May 27, 2021

Steps

  1. Turn on ws-butler-global-mode and selectrum-mode.
  2. Call guix-package-by-name and select any package.

Here, I select the "go" package. Result:

if: Error in evaluating guile expression: ice-9/boot-9.scm:1685:16: In procedure raise-exception:
In procedure string-index-right: Wrong type argument in position 1 (expecting string): #("go" 0 2 (ws-butler-chg chg))
   
Entering a new prompt.  Type `,bt' for a backtrace or `,q' to continue.
scheme@(emacs-guix) [1]> 

I'm not sure what's happening but at a guess, ws-butler is active in the selectrum minibuffer and propertizes the string candidate we send to Guile.

This is a workaround that perhaps should be upstreamed to ws-butler:

(add-to-list 'ws-butler-global-exempt-modes #'minibuffer-inactive-mode)

If I'm right that it's text properties, perhaps guix.el could de-propertize any strings before sending them to external programs.

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

No branches or pull requests

1 participant