1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2025-12-31 01:20:37 -08:00
emacs/test/lisp
João Távora be505726b6 Fix electric-pair-tests by disabling bug#33794's fix with a variable
The variable c--disable-fix-of-bug-33794, which should be removed in
the short term in favor of a permanent solution, is introduced.

It is bound to nil by default.  This means that breakage is still
happening in actual c-mode and c++-mode usage, though the tests no
longer show it.

To get around this breakage, put

   (setq c--disable-fix-of-bug-33794 t)

In your init file.  Evidently, you will lose the fix for bug#33794,
but that only affects a small corner case of c-toggle-auto-newline,
which is not turned on by default.

See https://lists.gnu.org/archive/html/emacs-devel/2019-01/msg00360.html
for more information.

* lisp/progmodes/cc-cmds.el (c--disable-fix-of-bug-33794): New
variable.
(c--with-post-self-insert-hook-maybe): New macro.
(c-electric-pound, c-electric-brace, c-electric-slash)
(c-electric-star, c-electric-semi&comma, c-electric-colon)
(c-electric-lt-gt, c-electric-paren): Use it.
(c-electric-paren, c-electric-brace): Check
c--disable-fix-of-bug-33794.

* test/lisp/electric-tests.el (c--disable-fix-of-bug-33794):
Forward declare.
(electric-pair-test-for)
(electric-layout-int-main-kernel-style)
(electric-modes-in-c-mode-with-self-insert-command): Use it.
2019-01-17 18:49:10 +00:00
..
calc Update copyright year to 2019 2019-01-01 01:01:13 +00:00
calendar Merge from origin/emacs-26 2018-12-31 17:57:29 -08:00
custom-resources New test custom--test-theme-variables 2019-01-10 13:27:34 +01:00
emacs-lisp Update more copyright years 2018-12-31 18:47:22 -08:00
emulation Update copyright year to 2019 2019-01-01 01:01:13 +00:00
erc Update copyright year to 2019 2019-01-01 01:01:13 +00:00
eshell Update more copyright years 2018-12-31 18:47:22 -08:00
gnus Merge from origin/emacs-26 2018-12-31 17:57:29 -08:00
international Update more copyright years 2018-12-31 18:47:22 -08:00
mail Update copyright year to 2019 2019-01-01 01:01:13 +00:00
net Some accept-process-output cleanups in Tramp 2019-01-16 13:56:38 +01:00
org Update copyright year to 2019 2019-01-01 01:01:13 +00:00
progmodes Fix electric indent bug in python-mode after dedenting colon 2019-01-05 11:02:02 +02:00
textmodes Update more copyright years 2018-12-31 18:47:22 -08:00
url Update more copyright years 2018-12-31 18:47:22 -08:00
vc Merge from origin/emacs-26 2018-12-31 17:57:29 -08:00
abbrev-tests.el Merge from origin/emacs-26 2018-12-31 17:57:29 -08:00
arc-mode-tests.el Update copyright year to 2019 2019-01-01 01:01:13 +00:00
auth-source-pass-tests.el Merge from origin/emacs-26 2018-12-31 17:57:29 -08:00
auth-source-tests.el Merge from origin/emacs-26 2018-12-31 17:57:29 -08:00
autorevert-tests.el Merge from origin/emacs-26 2018-12-31 17:57:29 -08:00
buff-menu-tests.el Update copyright year to 2019 2019-01-01 01:01:13 +00:00
char-fold-tests.el Merge from origin/emacs-26 2018-12-31 17:57:29 -08:00
color-tests.el Update copyright year to 2019 2019-01-01 01:01:13 +00:00
comint-tests.el Merge from origin/emacs-26 2018-12-31 17:57:29 -08:00
custom-tests.el New test custom--test-theme-variables 2019-01-10 13:27:34 +01:00
dabbrev-tests.el Update copyright year to 2019 2019-01-01 01:01:13 +00:00
descr-text-tests.el Update copyright year to 2019 2019-01-01 01:01:13 +00:00
dired-aux-tests.el Merge from origin/emacs-26 2018-12-31 17:57:29 -08:00
dired-tests.el Merge from origin/emacs-26 2018-12-31 17:57:29 -08:00
dired-x-tests.el Update copyright year to 2019 2019-01-01 01:01:13 +00:00
dom-tests.el Update copyright year to 2019 2019-01-01 01:01:13 +00:00
electric-tests.el Fix electric-pair-tests by disabling bug#33794's fix with a variable 2019-01-17 18:49:10 +00:00
epg-tests.el Merge from origin/emacs-26 2018-12-31 17:57:29 -08:00
faces-tests.el Update copyright year to 2019 2019-01-01 01:01:13 +00:00
ffap-tests.el Update copyright year to 2019 2019-01-01 01:01:13 +00:00
filenotify-tests.el ; Format filenotify-tests.el 2019-01-07 16:59:43 +01:00
files-tests.el Merge from origin/emacs-26 2018-12-31 17:57:29 -08:00
files-x-tests.el Update copyright year to 2019 2019-01-01 01:01:13 +00:00
help-fns-tests.el Merge from origin/emacs-26 2018-12-31 17:57:29 -08:00
hi-lock-tests.el Merge from origin/emacs-26 2018-12-31 17:57:29 -08:00
htmlfontify-tests.el Merge from origin/emacs-26 2018-12-31 17:57:29 -08:00
ibuffer-tests.el Update copyright year to 2019 2019-01-01 01:01:13 +00:00
ido-tests.el Update copyright year to 2019 2019-01-01 01:01:13 +00:00
imenu-tests.el Update copyright year to 2019 2019-01-01 01:01:13 +00:00
info-xref-tests.el Merge from origin/emacs-26 2018-12-31 17:57:29 -08:00
isearch-tests.el Update copyright year to 2019 2019-01-01 01:01:13 +00:00
jit-lock-tests.el Update copyright year to 2019 2019-01-01 01:01:13 +00:00
json-tests.el Merge from origin/emacs-26 2018-12-31 17:57:29 -08:00
jsonrpc-tests.el Update more copyright years 2018-12-31 18:47:22 -08:00
kmacro-tests.el Update copyright year to 2019 2019-01-01 01:01:13 +00:00
ls-lisp-tests.el Merge from origin/emacs-26 2018-12-31 17:57:29 -08:00
man-tests.el Update copyright year to 2019 2019-01-01 01:01:13 +00:00
md4-tests.el Update copyright year to 2019 2019-01-01 01:01:13 +00:00
minibuffer-tests.el Update copyright year to 2019 2019-01-01 01:01:13 +00:00
mouse-tests.el Merge from origin/emacs-26 2018-12-31 17:57:29 -08:00
obarray-tests.el Update copyright year to 2019 2019-01-01 01:01:13 +00:00
ps-print-tests.el Update copyright year to 2019 2019-01-01 01:01:13 +00:00
register-tests.el Update copyright year to 2019 2019-01-01 01:01:13 +00:00
replace-tests.el Merge from origin/emacs-26 2018-12-31 17:57:29 -08:00
rot13-tests.el Update copyright year to 2019 2019-01-01 01:01:13 +00:00
ses-tests.el Merge from origin/emacs-26 2018-12-31 17:57:29 -08:00
shadowfile-tests.el Update copyright year to 2019 2019-01-01 01:01:13 +00:00
shell-tests.el Merge from origin/emacs-26 2018-12-31 17:57:29 -08:00
simple-tests.el Merge from origin/emacs-26 2018-12-31 17:57:29 -08:00
sort-tests.el Update copyright year to 2019 2019-01-01 01:01:13 +00:00
soundex-tests.el Update copyright year to 2019 2019-01-01 01:01:13 +00:00
subr-tests.el Merge from origin/emacs-26 2018-12-31 17:57:29 -08:00
tar-mode-tests.el Update copyright year to 2019 2019-01-01 01:01:13 +00:00
term-tests.el Merge from origin/emacs-26 2018-12-31 17:57:29 -08:00
thingatpt-tests.el Merge from origin/emacs-26 2018-12-31 17:57:29 -08:00
thread-tests.el Update more copyright years 2018-12-31 18:47:22 -08:00
wdired-tests.el Update copyright year to 2019 2019-01-01 01:01:13 +00:00
whitespace-tests.el Update copyright year to 2019 2019-01-01 01:01:13 +00:00
xdg-tests.el Merge from origin/emacs-26 2018-12-31 17:57:29 -08:00
xml-tests.el Update copyright year to 2019 2019-01-01 01:01:13 +00:00
xt-mouse-tests.el Update copyright year to 2019 2019-01-01 01:01:13 +00:00