unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: akater <nuclearspace@gmail.com>
To: 50832@debbugs.gnu.org
Cc: Lars Ingebrigtsen <larsi@gnus.org>
Subject: bug#50832: [PATCH] 28.0.50; Wrong mode in test-cl-flet-indentation
Date: Sun, 26 Sep 2021 22:52:35 +0000	[thread overview]
Message-ID: <875yunosp8.fsf@gmail.com> (raw)

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

This indentation does not work in lisp-mode, and it shouldn't.

In fact, lisp-mode-tests.el is a very confusing file name, and some
tests in it use emacs-lisp-mode while some use lisp-mode.


[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: Fix cl-flet indentation test --]
[-- Type: text/x-diff, Size: 903 bytes --]

From e4821f07cce362d4be4f16ca9aec84822694464a Mon Sep 17 00:00:00 2001
From: akater <nuclearspace@gmail.com>
Date: Sun, 26 Sep 2021 22:29:56 +0000
Subject: [PATCH] ; Fix cl-flet indentation test

---
 test/lisp/emacs-lisp/lisp-mode-tests.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/test/lisp/emacs-lisp/lisp-mode-tests.el b/test/lisp/emacs-lisp/lisp-mode-tests.el
index 5e533b370e..64e1581d1e 100644
--- a/test/lisp/emacs-lisp/lisp-mode-tests.el
+++ b/test/lisp/emacs-lisp/lisp-mode-tests.el
@@ -333,7 +333,7 @@ defconst lisp-mode-tests--correctly-indented-sexp "\
 (ert-deftest test-cl-flet-indentation ()
   (should (equal
            (with-temp-buffer
-             (lisp-mode)
+             (emacs-lisp-mode)
              (insert "(cl-flet ((bla (x)\n(* x x)))\n(bla 42))")
              (indent-region (point-min) (point-max))
              (buffer-string))
-- 
2.32.0


             reply	other threads:[~2021-09-26 22:52 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-09-26 22:52 akater [this message]
2021-09-27  3:58 ` bug#50832: [PATCH] 28.0.50; Wrong mode in test-cl-flet-indentation Lars Ingebrigtsen

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=875yunosp8.fsf@gmail.com \
    --to=nuclearspace@gmail.com \
    --cc=50832@debbugs.gnu.org \
    --cc=larsi@gnus.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).