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

Fix text-mode, c-mode and org-mode on recent Emacsen #213

Merged
merged 4 commits into from Nov 22, 2016

Conversation

Wilfred
Copy link
Contributor

@Wilfred Wilfred commented Nov 21, 2016

This pull request fixes:

and ensures we test against Emacs 24.3 up to 25.1, plus trunk.

@coveralls
Copy link

coveralls commented Nov 21, 2016

Coverage Status

Coverage increased (+0.2%) to 85.091% when pulling 2fdbefb on Wilfred:better_tests into b5e57cc on magnars:master.

As of Emacs 24.4, er/mark-defun is managing to expand the region in
org-mode buffers. This isn't useful, and required the user to call
expand-region again to further expand the region to semantically
meaningful org region.

Instead, we exclude er/mark-defun in org-mode buffers.
text-mode.el does not end with a call to provide, so there's no feature
'text-mode that we can load. As a result, text-mode-expansions was never
loaded.
In Emacs 25.1, `save-excursion` does not save the mark, we need to use
`save-mark-and-excursion`. As a result, `er/c-mark-statement` was never
marking a region.
@coveralls
Copy link

coveralls commented Nov 21, 2016

Coverage Status

Coverage increased (+0.2%) to 85.028% when pulling 799b94c on Wilfred:better_tests into b5e57cc on magnars:master.

@Wilfred Wilfred changed the title Fix text-mode and org-mode tests on Emacs 24.x Fix text-mode, c-mode and org-mode on recent Emacsen Nov 21, 2016
@magnars
Copy link
Owner

magnars commented Nov 22, 2016

Thanks!

@magnars magnars merged commit 6dd45d9 into magnars:master Nov 22, 2016
@Wilfred Wilfred deleted the better_tests branch November 22, 2016 09:15
pesterhazy added a commit to pesterhazy/expand-region.el that referenced this pull request Jul 28, 2022
After upgrading from Emacs 27 to 28.1, loading expand-region
breaks with the error message "Wrong type argument: stringp, (require .
package)"

This is due to using eval-after-load with a string argument. This odd
call style was introduced in

magnars#213

However, the assertion that text-mode is missing a provide call hasn't
been true in 6 years:

emacs-mirror/emacs@f70f9a5
magnars pushed a commit that referenced this pull request Jul 29, 2022
After upgrading from Emacs 27 to 28.1, loading expand-region
breaks with the error message "Wrong type argument: stringp, (require .
package)"

This is due to using eval-after-load with a string argument. This odd
call style was introduced in

#213

However, the assertion that text-mode is missing a provide call hasn't
been true in 6 years:

emacs-mirror/emacs@f70f9a5
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants