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

crux-move-beginning-of-line yields search failed "^[[:space:]]*" in minibuffer #46

Closed
zzhjerry opened this issue Jul 11, 2017 · 3 comments

Comments

@zzhjerry
Copy link

zzhjerry commented Jul 11, 2017

In ido minibuffer, crux-move-beginning-of-line yields Search failed "^[[:space:]]*" although the cursor does move to the beginning of my typing.

e.g.

I have this in minibuffer
image

Then I type C-a (crux-move-beginning-of-line)

image

But after the error message, the cursor does move:

image

Is there a way to remove that error message?

@knilink
Copy link

knilink commented Jul 31, 2017

Same issue here. Using prelude as well.
I was using crux-20160725.59 before and this issue happen after I update to crux-20170626.632.

@knilink
Copy link

knilink commented Aug 1, 2017

Not just in minibuffer, everything with a prompt (shell) were broken.
There were also other unexpected behavious such as when there was multiple empty lines.

     ▒    <- C-a here

█  fooo   <- cursor moved to here

I rolled back to this version for temporary fix.

@ghost
Copy link

ghost commented Aug 1, 2017

I caused both issues mentioned here with my crux pull request #45. Change https://github.com/KarlFish/crux/blob/master/crux.el#L234 should be (search-forward-regexp line-start-regex (line-end-position) t)).

(line-end-position) stops the search from passing through all the empty lines. (thanks for the tip in your minibuffer)

t suppresses the message on search fail, but doesn't move to the line end. A non nil, non t arg would also suppress the message, but move to (line-end-position).

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

2 participants