unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Stefan Kangas <stefan@marxist.se>
To: 36570@debbugs.gnu.org
Subject: bug#36570: [PATCH] Fix warning in electric-tests.el
Date: Wed, 10 Jul 2019 06:21:06 +0200	[thread overview]
Message-ID: <CADwFkmmf-FL9=Jj4F7=BXeODcGuDnD8FW1hQOAv2fONCpPsFTg@mail.gmail.com> (raw)
In-Reply-To: <CADwFkmnia7QXFirOZictx+sK0LYEP7F2GbWnCQe2QNaS48JOqA@mail.gmail.com>

[-- Attachment #1: Type: text/plain, Size: 166 bytes --]

Stefan Kangas <stefan@marxist.se> writes:
> (I'll send the patch in a separate message once this is assigned a bug
> number.)

Patch attached.

Thanks,
Stefan Kangas

[-- Attachment #2: 0001-Fix-warning-in-electric-tests.el-Bug-36570.patch --]
[-- Type: application/octet-stream, Size: 1215 bytes --]

From 56c759adb5cc101112257fdfb3a2f9d00b2d716d Mon Sep 17 00:00:00 2001
From: Stefan Kangas <stefankangas@gmail.com>
Date: Wed, 10 Jul 2019 03:50:48 +0200
Subject: [PATCH] Fix warning in electric-tests.el (Bug#36570)

* test/lisp/electric-tests.el (plainer-c-mode): Remove duplicate
definition.
---
 test/lisp/electric-tests.el | 9 ---------
 1 file changed, 9 deletions(-)

diff --git a/test/lisp/electric-tests.el b/test/lisp/electric-tests.el
index 86c9eff9cd..0e4ac99052 100644
--- a/test/lisp/electric-tests.el
+++ b/test/lisp/electric-tests.el
@@ -895,15 +895,6 @@ electric-layout-control-reindentation
     (call-interactively 'newline)
     (should (equal (buffer-string) "int main () {\n\n  \n}"))))
 
-(define-derived-mode plainer-c-mode c-mode "pC"
-  "A plainer/saner C-mode with no internal electric machinery."
-  (c-toggle-electric-state -1)
-  (setq-local electric-indent-local-mode-hook nil)
-  (setq-local electric-indent-mode-hook nil)
-  (electric-indent-local-mode 1)
-  (dolist (key '(?\" ?\' ?\{ ?\} ?\( ?\) ?\[ ?\]))
-    (local-set-key (vector key) 'self-insert-command)))
-
 (ert-deftest electric-modes-int-main-allman-style ()
   (ert-with-test-buffer ()
     (plainer-c-mode)
-- 
2.21.0


  reply	other threads:[~2019-07-10  4:21 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-07-10  4:16 bug#36570: [PATCH] Fix warning in electric-tests.el Stefan Kangas
2019-07-10  4:21 ` Stefan Kangas [this message]
2019-07-10 10:18   ` Basil L. Contovounesios

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CADwFkmmf-FL9=Jj4F7=BXeODcGuDnD8FW1hQOAv2fONCpPsFTg@mail.gmail.com' \
    --to=stefan@marxist.se \
    --cc=36570@debbugs.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).