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

markdown-hide-markup-in-view-modes doesn't work #468

Closed
cpitclaudel opened this issue May 2, 2020 · 3 comments
Closed

markdown-hide-markup-in-view-modes doesn't work #468

cpitclaudel opened this issue May 2, 2020 · 3 comments

Comments

@cpitclaudel
Copy link

Expected Behavior

When markdown-hide-markup-in-view-modes is set (the default), markup should be hidden in view-mode buffers.

Actual Behavior

Markup is not hidden in view-mode buffers.

Steps to Reproduce

  1. Turn on markdown-view-mode

The problem is that the body of markdown-view-mode runs after that of its parent mode, so copying the value of markdown-hide-markup-in-view-modes doesn't to anything.

(also, that page: https://www.lunaryorn.com/posts/reproduce-bugs-in-emacs-q#section-how-do-you-reproduce-a-bug-in-emacs--q is 404 now; I usually use this stackexchange question instead: https://emacs.stackexchange.com/questions/28429/how-do-i-troubleshoot-emacs-problems )

  • Markdown Mode: 2.4dev
  • Emacs: 26.3
@syohex
Copy link
Collaborator

syohex commented May 2, 2020

I have merged #469. Please check latest version

@syohex syohex closed this as completed May 2, 2020
@cpitclaudel
Copy link
Author

Thanks a lot! Works for me, though that's now 4 places places where the same code manipulating buffer specs is present. Maybe it would be simpler to add a single set-visibility function and call that from markdown-mode, from -toggle, from mardown-view-mode, and from gfm-view-mode? ^^

@syohex
Copy link
Collaborator

syohex commented May 3, 2020

I don't suppose such refactoring is not necessary.

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