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

Comment full abort message to avoid syntax hilighting issues #560

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

Conversation

notmgsk
Copy link

@notmgsk notmgsk commented Apr 28, 2020

The first line of error messages is printed with a leading semi-colon. The remaining lines, however, are not and as such syntax highlighting can be messed up by a quote. See the screenshot:

Screen Shot 2020-04-27 at 8 49 29 PM

After this change:
Screen Shot 2020-04-27 at 8 53 16 PM

Copy link
Member

@luismbo luismbo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd like to keep the "Evaluation aborted" message and the single colons.

@notmgsk
Copy link
Author

notmgsk commented Apr 28, 2020

Donezo

Screen Shot 2020-04-28 at 7 51 12 AM

@@ -580,8 +580,14 @@ joined together."))
(slime-save-marker slime-output-start
(slime-save-marker slime-output-end
(goto-char slime-output-end)
(insert-before-markers (format "; Evaluation aborted on %s.\n"
condition))
(let ((abort-msg-start (point))
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

          (insert-before-markers (format "; Evaluation aborted on %s.\n"
                                         (replace-regexp-in-string "\n" "\n;" condition)))

🤔 This seems a bit complicated. How about this?

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