branch: externals/php-fill
commit 176f9a37bcc08540285a2ef41835502a2ace2b33
Author: Ariel Del Valle Lozano <[email protected]>
Commit: Ariel Del Valle Lozano <[email protected]>
Run tests with a nil sentence-end-double-space
---
test/erts/c-fill-paragraph.erts | 7 +++++--
test/erts/fill-paragraph.erts | 7 +++++--
test/erts/refill-mode.erts | 4 ++++
3 files changed, 14 insertions(+), 4 deletions(-)
diff --git a/test/erts/c-fill-paragraph.erts b/test/erts/c-fill-paragraph.erts
index aff4e820eb..f855b9ef73 100644
--- a/test/erts/c-fill-paragraph.erts
+++ b/test/erts/c-fill-paragraph.erts
@@ -3,6 +3,7 @@ Point-Char: |
Code: (lambda ()
(php-mode)
(setq-local fill-column 38)
+ (setq-local sentence-end-double-space nil)
(customize-set-variable 'php-fill-nosqueeze-c++-comments t)
(custom-reevaluate-setting 'php-fill-nosqueeze-c-comments)
(php-fill-c-fill-paragraph))
@@ -36,6 +37,7 @@ Name: Squeezes spaces in c++ style comments if variable
php-fill-nosqueeze-c++-c
Code: (lambda ()
(php-mode)
(setq-local fill-column 38)
+ (setq-local sentence-end-double-space nil)
(customize-set-variable 'php-fill-nosqueeze-c-comments nil)
(custom-reevaluate-setting 'php-fill-nosqueeze-c++-comments)
(php-fill-c-fill-paragraph))
@@ -43,7 +45,7 @@ Code: (lambda ()
// Lo|rem ipsum dolor sit amet, consectetur adipiscing elit.
Fusce vel luctus tellus.
=-=
// Lo|rem ipsum dolor sit amet,
-// consectetur adipiscing elit. Fusce
+// consectetur adipiscing elit. Fusce
// vel luctus tellus.
=-=-=
@@ -69,6 +71,7 @@ Name: If the command is prefixed then the value of
php-fill-nosqueeze-c++-commen
Code: (lambda ()
(php-mode)
(setq-local fill-column 38)
+ (setq-local sentence-end-double-space nil)
(customize-set-variable 'php-fill-nosqueeze-c++-comments t)
(customize-set-variable 'php-fill-nosqueeze-c-comments t)
(let ((current-prefix-arg '(4)))
@@ -77,7 +80,7 @@ Code: (lambda ()
// Lo|rem ipsum dolor sit amet, consectetur adipiscing elit.
Fusce vel luctus tellus.
=-=
// Lo|rem ipsum dolor sit amet,
-// consectetur adipiscing elit. Fusce
+// consectetur adipiscing elit. Fusce
// vel luctus tellus.
=-=-=
diff --git a/test/erts/fill-paragraph.erts b/test/erts/fill-paragraph.erts
index e8d5e421af..f7ba9f94f3 100644
--- a/test/erts/fill-paragraph.erts
+++ b/test/erts/fill-paragraph.erts
@@ -3,6 +3,7 @@ Point-Char: |
Code: (lambda ()
(php-mode)
(setq-local fill-column 38)
+ (setq-local sentence-end-double-space nil)
(custom-reevaluate-setting 'php-fill-nosqueeze-c++-comments)
(custom-reevaluate-setting 'php-fill-nosqueeze-c-comments)
(php-fill-paragraph))
@@ -10,7 +11,7 @@ Code: (lambda ()
// Lo|rem ipsum dolor sit amet, consectetur adipiscing elit.
Fusce vel luctus tellus.
=-=
// Lo|rem ipsum dolor sit amet,
-// consectetur adipiscing elit. Fusce
+// consectetur adipiscing elit. Fusce
// vel luctus tellus.
=-=-=
@@ -46,6 +47,7 @@ Name: A prefix justify c++ style comments.
Code: (lambda ()
(php-mode)
(setq-local fill-column 38)
+ (setq-local sentence-end-double-space nil)
(customize-set-variable 'php-fill-nosqueeze-c++-comments t)
(customize-set-variable 'php-fill-nosqueeze-c-comments t)
(let ((current-prefix-arg '(4)))
@@ -54,7 +56,7 @@ Code: (lambda ()
// Lo|rem ipsum dolor sit amet, consectetur adipiscing elit.
Fusce vel luctus tellus.
=-=
// Lo|rem ipsum dolor sit amet,
-// consectetur adipiscing elit. Fusce
+// consectetur adipiscing elit. Fusce
// vel luctus tellus.
=-=-=
@@ -80,6 +82,7 @@ Name: Optional argument ONLY-ONE-LINE-UP will be passed down
to php-fill-string-
Code: (lambda ()
(php-mode)
(setq-local fill-column 38)
+ (setq-local sentence-end-double-space nil)
(php-fill-paragraph t))
=-=
$stringVar = 'Lorem ipsum dolor sit '
diff --git a/test/erts/refill-mode.erts b/test/erts/refill-mode.erts
index ec3e9b2bdb..a10248cf5d 100644
--- a/test/erts/refill-mode.erts
+++ b/test/erts/refill-mode.erts
@@ -3,6 +3,7 @@ Point-Char: |
Code: (lambda ()
(php-mode)
(setq-local fill-column 38)
+ (setq-local sentence-end-double-space nil)
(custom-reevaluate-setting 'php-fill-nosqueeze-c-comments)
(custom-reevaluate-setting 'php-fill-nosqueeze-c-comments)
(php-fill-refill-mode)
@@ -56,6 +57,7 @@ Name: Refills a c style comment when deleting text
Code: (lambda ()
(php-mode)
(setq-local fill-column 38)
+ (setq-local sentence-end-double-space nil)
(custom-reevaluate-setting 'php-fill-nosqueeze-c-comments)
(custom-reevaluate-setting 'php-fill-nosqueeze-c-comments)
(php-fill-refill-mode)
@@ -123,6 +125,7 @@ Name: Refill is not performed after changes made by command
comment-or-uncomment
Code: (lambda ()
(php-mode)
(setq-local fill-column 38)
+ (setq-local sentence-end-double-space nil)
(php-fill-refill-mode)
(let ((begx (point-min)) (endx (point-max)))
(ert-simulate-command (list 'comment-region begx endx))
@@ -137,6 +140,7 @@ Name: Refill is not performed if php-fill-newline breaks a
string literal in two
Code: (lambda ()
(php-mode)
(setq-local fill-column 38)
+ (setq-local sentence-end-double-space nil)
(php-fill-refill-mode)
(ert-simulate-command '(php-fill-newline)))
=-=