[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#17978: 24.3; forward-paragraph broken with javadocs
From: |
Stefan Monnier |
Subject: |
bug#17978: 24.3; forward-paragraph broken with javadocs |
Date: |
Wed, 09 Jul 2014 23:06:57 -0400 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.4.50 (gnu/linux) |
> C-{ and C-} should cycle between blank lines. But the reason why this
> doesn't happen in java-mode, is because Java redefines the definition of a
> paragraph. It sets the paragraph-start variable (among other variables) so
> that when I M-q to fill-paragraph, it'll work correctly *within* the
> Javadoc, rather than reflowing my code into a jumbled mess.
Ah, I see, yes, that makes sense. The fix is to not change
paragraph-start (and friends) in the major-mode hook but instead to
define override the fill-forward-paragraph-function with a function
which let-binds those vars and then calls forward-paragraph.
See lisp/vc/add-log.el for an example.
Stefan
- bug#17978: 24.3; forward-paragraph broken with javadocs, Justine Tunney, 2014/07/09
- bug#17978: 24.3; forward-paragraph broken with javadocs, Stefan Monnier, 2014/07/09
- bug#17978: 24.3; forward-paragraph broken with javadocs, Justine Tunney, 2014/07/09
- bug#17978: 24.3; forward-paragraph broken with javadocs, Stefan Monnier, 2014/07/09
- bug#17978: 24.3; forward-paragraph broken with javadocs, Justine Tunney, 2014/07/09
- bug#17978: 24.3; forward-paragraph broken with javadocs,
Stefan Monnier <=
- bug#17978: 24.3; forward-paragraph broken with javadocs, Dmitry, 2014/07/11
- bug#17978: 24.3; forward-paragraph broken with javadocs, Dmitry, 2014/07/11
- bug#17978: 24.3; forward-paragraph broken with javadocs, Stefan Monnier, 2014/07/11
- bug#17978: 24.3; forward-paragraph broken with javadocs, Dmitry Gutov, 2014/07/12
- bug#17978: 24.3; forward-paragraph broken with javadocs, Alan Mackenzie, 2014/07/13