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

"-" or "*" added to all visual lines in commented LaTeX code that starts with "-" or "*" #3

Open
rdiaz02 opened this issue Oct 13, 2023 · 4 comments

Comments

@rdiaz02
Copy link

rdiaz02 commented Oct 13, 2023

Maybe I am misunderstanding something, but when I try to use hyphens "-" in commented LaTeX text, a "-" is added to the beginning of each visual line. The same thing happens with "*". In contrast, other characters (say "+", "=", "_") do not lead to the same issue. None of this happens if I disable adaptive-wrap-mode. I am attaching two image. Is disabling adaptive-wrap-mode the only way to prevent this behavior in LaTeX mode buffers (problem is that whenever I switch back and forth virtual-auto-fill, adaptive-wrap-prefix gets enabled again).

  • Default (virtual-auto-fill which also enables adaptive-wrap)

vaf_ex

  • Virtual auto fill right after disabling adaptive-wrap

vaf_ex_without_prefix_mode

@rdiaz02 rdiaz02 changed the title "-" or "*" added to all visual lines in commented LaTeX code that stars with "-" or "*" "-" or "*" added to all visual lines in commented LaTeX code that starts with "-" or "*" Oct 13, 2023
@luisgerhorst
Copy link
Owner

That odd behavior is because - and * for bullet lists I guess. Do I understand this correctly in that the desired behavior would be to only have the percentage sign plus some whitespace added to the wrapped lines in the first screenshot? I.e., it should look like https://github.com/luisgerhorst/virtual-auto-fill/blob/master/README-screenshot-virtual-auto-fill.png only with a percentage sign preceding each line. If this is the issue, we should report it at adaptive wrap prefix mode.

I am not sure if adapative wrap prefix mode can implement this easily. But maybe they could detect % as special because it's the comment char and then add their magic list processing on top of that.

@rdiaz02
Copy link
Author

rdiaz02 commented Oct 13, 2023

Do I understand this correctly in that the desired behavior would be to only have the percentage sign plus some whitespace added to the wrapped lines in the first screenshot? I.e., it should look like https://github.com/luisgerhorst/virtual-auto-fill/blob/master/README-screenshot-virtual-auto-fill.png only with a percentage sign preceding each line.

Yes, exactly.

If this is the issue, we should report it at adaptive wrap prefix mode.

I am not sure if adapative wrap prefix mode can implement this easily. But maybe they could detect % as special because it's the comment char and then add their magic list processing on top of that.

Do you want me to report it?

@luisgerhorst
Copy link
Owner

That would be great. You can link this issue and we can leave this open while they work on it.

@rdiaz02
Copy link
Author

rdiaz02 commented Oct 14, 2023

Reported here: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=66541

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