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

:s/from/to/g only replaces one occurence in markdown-mode #5203

Closed
norcalli opened this issue Feb 23, 2016 · 7 comments
Closed

:s/from/to/g only replaces one occurence in markdown-mode #5203

norcalli opened this issue Feb 23, 2016 · 7 comments

Comments

@norcalli
Copy link

Description

:s/from/to/g doesn't replace all occurences on the line, but the preview shows the correct replacement.

Reproduction guide

  • Start Emacs
  • Open a README.md
  • Type :.s/./x/g

Observed behaviour:
Only the first occurence is replaced, but the preview shows all occurences being replaced.

Expected behaviour:
All occurrences should be replace with the g flag.

System Info

  • OS: darwin
  • Emacs: 24.5.1
  • Spacemacs: 0.105.11
  • Spacemacs branch: master (rev. 6689699)
  • Distribution: spacemacs
  • Editing style: vim
  • Completion: helm
  • Layers:
((auto-completion :variables auto-completion-enable-snippets-in-popup t auto-completion-complete-with-key-sequence-delay 0.1)
 emacs-lisp spotify yaml lua osx go
 (c-c   :variables c-c  -default-mode-for-headers 'c  -mode)
 (rust :variables rust-enable-racer t)
 git markdown colors python html org javascript
 (shell :variables shell-default-height 30 shell-default-term-shell "/usr/local/bin/zsh" shell-default-position 'bottom)
 syntax-checking)

Backtrace

BACKTRACE IF RELEVANT
@StreakyCobra
Copy link
Contributor

Just to be sure, dotspacemacs-ex-substitute-global is set to nil in your .spacemacs?

@norcalli
Copy link
Author

Yup, not present at all in my .spacemacs.

@sooheon
Copy link

sooheon commented Feb 24, 2016

Also check the value of evil-ex-substitute-global directly with C-h v rather than look in your .spacemacs, see what emacs has the value as.

@norcalli
Copy link
Author

Ah gotcha. It is definitely nil.

@sooheon
Copy link

sooheon commented Feb 25, 2016

If it's still consistent, some better steps to reproduce starting from emacs -Q and initializing the minimum packages will be helpful.

@syohex
Copy link
Contributor

syohex commented Feb 26, 2016

markdown-mode had issue which overwrites match-data. I fixed it at jrblevin/markdown-mode#105. Could you try with latest version ?

@norcalli
Copy link
Author

@syohex Hooray! I can confirm that this is fixed. Thanks for the quick turnaround time!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants