-
-
Notifications
You must be signed in to change notification settings - Fork 8
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
Only remove kw-replacement overlays in adoc-unfontify-region-function #46
Conversation
The integration test error is already fixed in !45. |
;; with many (minor) modes using overlays such as flyspell or ediff | ||
(when adoc-insert-replacement | ||
(remove-overlays beg end)) | ||
(cl-loop for ol being the overlays from beg to end |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not a big fan of cl-loop
(as it tends to confuse people not familiar with CL), so I'd suggest replacing it with a different looping construct.
Small remark for the future - please squash related commits, as now you polluted the git history with a bunch of meaningless commits (e.g. the last 4 commits). Such commits make the history harder to interact with, so they have to be avoided. |
@bbatsov Normally, I would have splash-committed. But that would have removed our journey through the That is also the reason why I did prefer a revert of my changes over a reset. Normally, when commits really were only meaningless one-ways into dead ends I prefer to hard reset and force push in the development branch. But, if you really dislike the current state of the history we can also reset the master, commit and force-push. Just give me a notice if you want me to do it. If you do not commit anything else in the meanwhile this does not cause any trouble. The final state of the worktree will be the same and the hick-up in the history will not be seen anymore. To be more specific: I would reset to 7a28db1 and then commit the final state of d4df8e1. |
I don't think in our particular case this information has any value as some changes were done only to be reverted in the end. For me that's just noise, especially given that those were not even released. It's a very bad idea to force push changes to |
BTW:
This would only matter if there really was somebody who cloned or pulled in the time gap from the merge of the "faulty commit" to the merge of the "splash commit". |
Keep in mind that MELPA and ELPA-devel pull from the repo automatically every few hours. (although I'm not sure if they don't do clean clones if they encounter errors or whatever) |
Mark
kw-replacment
overlays as such and remove only marked overlays inadoc-unfontify-region-function
.