]> git.eshelyaron.com Git - emacs.git/commitdiff
Merge remote-tracking branch 'origin/emacs-28' into trunk
authorStefan Monnier <monnier@iro.umontreal.ca>
Wed, 12 Jan 2022 20:57:29 +0000 (15:57 -0500)
committerStefan Monnier <monnier@iro.umontreal.ca>
Wed, 12 Jan 2022 20:57:29 +0000 (15:57 -0500)
1  2 
doc/lispref/modes.texi
doc/lispref/windows.texi
doc/misc/tramp.texi
lisp/files.el
lisp/net/tramp-crypt.el
test/lisp/progmodes/flymake-tests.el

Simple merge
Simple merge
Simple merge
diff --cc lisp/files.el
Simple merge
Simple merge
index ced7b5aacedb4e6603553525932ca9043e9ee7cb,45cabf2efba34ae27e589d18a342c570d0d5a4e4..0793b2bfdabf2809fbeae4dae911db918971143e
@@@ -124,27 -123,28 +124,32 @@@ SEVERITY-PREDICATE is used to setu
    "Test the ruby backend."
    (skip-unless (executable-find "ruby"))
    ;; Some versions of ruby fail if HOME doesn't exist (bug#29187).
 -  (let* ((tempdir (make-temp-file "flymake-tests-ruby" t))
 -         (process-environment (cons (format "HOME=%s" tempdir)
 -                                    process-environment))
 -         ;; And see https://debbugs.gnu.org/cgi/bugreport.cgi?bug=19657#20
 -         ;; for this particular yuckiness
 -         (abbreviated-home-dir nil))
 -    (unwind-protect
 -        (let ((ruby-mode-hook
 -               (lambda ()
 -                 (setq flymake-diagnostic-functions '(ruby-flymake-simple)))))
 -          (flymake-tests--with-flymake ("test.rb")
 -            (flymake-goto-next-error)
 -            (should (eq 'flymake-warning (face-at-point)))
 -            (flymake-goto-next-error)
 -            (should (eq 'flymake-error (face-at-point)))))
 -      (delete-directory tempdir t))))
 +  (ert-with-temp-directory  tempdir
 +    :suffix "flymake-tests-ruby"
 +    (let* ((process-environment (cons (format "HOME=%s" tempdir)
 +                                      process-environment))
 +           ;; And see https://debbugs.gnu.org/cgi/bugreport.cgi?bug=19657#20
 +           ;; for this particular yuckiness
 +           (abbreviated-home-dir nil)
 +           (ruby-mode-hook
 +            (lambda ()
 +              (setq flymake-diagnostic-functions '(ruby-flymake-simple)))))
 +      (flymake-tests--with-flymake ("test.rb")
 +        (flymake-goto-next-error)
 +        (should (eq 'flymake-warning (face-at-point)))
 +        (flymake-goto-next-error)
 +        (should (eq 'flymake-error (face-at-point)))))))
 +
 +(defun flymake-tests--gcc-is-clang ()
 +  "Whether the `gcc' command actually runs the Clang compiler."
 +  (string-match "[Cc]lang version "
 +                (shell-command-to-string "gcc --version")))
  
+ (defun flymake-tests--gcc-is-clang ()
+   "Whether the `gcc' command actually runs the Clang compiler."
+   (string-match "[Cc]lang version "
+                 (shell-command-to-string "gcc --version")))
  (ert-deftest different-diagnostic-types ()
    "Test GCC warning via function predicate."
    (skip-unless (and (executable-find "gcc")