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

Strip symbol wrappers #2672

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

Strip symbol wrappers #2672

wants to merge 3 commits into from

Conversation

jagrg
Copy link
Contributor

@jagrg jagrg commented May 18, 2024

M-x helm-apropos fails to preselect the correct symbol at point when wrapped with the = or ~ characters. This patch makes helm-apropos smarter in Org derived modes by stripping the wrappers before returning the symbol name. Some examples:

mu4e-mailing-lists  =>  mu4e-mailing-lists 
~mu4e-mailing-lists~  =>  mu4e-mailing-lists
=mu4e-mailing-lists=  =>  mu4e-mailing-lists
mu4e~headers-mark   =>  mu4e~headers-mark
~mu4e~headers-mark~  =>  mu4e~headers-mark
~M-x mu4e-quit~    =>  mu4e-quit
=M-x mu4e-quit=   =>  mu4e-quit

jagrg added 3 commits May 18, 2024 14:38
* helm-elisp.el (helm-apropos-get-default): Strip symbol wrappers.

M-x helm-apropos fails to preselect the correct symbol at point when
wrapped with the = or ~ characters. This patch makes helm-apropos
smarter in Org derived modes by stripping the wrappers before
returning the symbol name.
* helm-elisp.el (helm-apropos-get-default): Add docstring.
* helm-elisp.el (helm-apropos-get-default): Refactor.
@thierryvolpiatto
Copy link
Member

thierryvolpiatto commented May 18, 2024 via email

@jagrg
Copy link
Contributor Author

jagrg commented May 18, 2024 via email

@thierryvolpiatto
Copy link
Member

thierryvolpiatto commented May 19, 2024 via email

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.

None yet

2 participants