]> git.eshelyaron.com Git - emacs.git/commitdiff
Merge from origin/emacs-26
authorGlenn Morris <rgm@gnu.org>
Fri, 9 Feb 2018 19:12:48 +0000 (11:12 -0800)
committerGlenn Morris <rgm@gnu.org>
Fri, 9 Feb 2018 19:12:48 +0000 (11:12 -0800)
0276743 (origin/emacs-26) Doc string fix in latin-alt.el
c9269af Minor improvements in package.texi
898a3e4 Minor improvement in Emacs user manual
8f7d718 * doc/lispref/anti.texi (Antinews): Replace 25.2 with 25.3.
989d0af Improve documentation of mini-window resizing
923e415 More changes in the Emacs manual
565adf2 Clarify that text-quoting-style doesn't affect *Info* (Bug#24...
2dd273b Mention that shell quoting of % on w32 may fail (Bug#19350)
19fa6d5 Fix --no-build-details for w32 and macOS
979944c * doc/lispref/anti.texi (Antinews): Add some more antinews.
c2727e3 Fix crashes when run with --no-build-details
dc08490 More changes for the manual
04c5bd5 Doc fixes for process functions (Bug#30349)
e209034 Fix shr and CSS 4 color maps
5fe8192 Yet another round of improvements in the manual

Conflicts:
doc/emacs/files.texi
test/lisp/subr-tests.el

12 files changed:
1  2 
doc/emacs/files.texi
doc/emacs/text.texi
doc/lispref/processes.texi
lisp/net/shr-color.el
lisp/subr.el
lisp/term/ns-win.el
lisp/textmodes/css-mode.el
src/process.c
src/w32term.c
src/xterm.c
test/lisp/subr-tests.el
test/lisp/textmodes/css-mode-tests.el

Simple merge
Simple merge
Simple merge
Simple merge
diff --cc lisp/subr.el
Simple merge
Simple merge
Simple merge
diff --cc src/process.c
Simple merge
diff --cc src/w32term.c
Simple merge
diff --cc src/xterm.c
Simple merge
index d0b3127f71bd5e58e4887ae3874e976e63b8cbff,430d719037fed9116e6c37ae2f6d2020378f6198..52b61d9fb974e4405d7a3d458a25269d06e5b642
@@@ -306,24 -307,22 +306,41 @@@ cf. Bug#25477.
    (should (eq (string-to-char (symbol-name (gensym))) ?g))
    (should (eq (string-to-char (symbol-name (gensym "X"))) ?X)))
  
 +(ert-deftest subr-tests--assq-delete-all ()
 +  "Test `assq-delete-all' behavior."
 +  (cl-flet ((new-list-fn
 +             ()
 +             (list (cons 'a 1) (cons 'b 2) (cons 'c 3) 'd (cons "foo" "bar"))))
 +    (should (equal (cdr (new-list-fn)) (assq-delete-all 'a (new-list-fn))))
 +    (should (equal (new-list-fn) (assq-delete-all 'd (new-list-fn))))
 +    (should (equal (new-list-fn) (assq-delete-all "foo" (new-list-fn))))))
 +
 +(ert-deftest subr-tests--assoc-delete-all ()
 +  "Test `assoc-delete-all' behavior."
 +  (cl-flet ((new-list-fn
 +             ()
 +             (list (cons 'a 1) (cons 'b 2) (cons 'c 3) 'd (cons "foo" "bar"))))
 +    (should (equal (cdr (new-list-fn)) (assoc-delete-all 'a (new-list-fn))))
 +    (should (equal (new-list-fn) (assoc-delete-all 'd (new-list-fn))))
 +    (should (equal (butlast (new-list-fn))
 +                   (assoc-delete-all "foo" (new-list-fn))))))
 +
+ (ert-deftest shell-quote-argument-%-on-w32 ()
+   "Quoting of `%' in w32 shells isn't perfect.
+ See https://debbugs.gnu.org/cgi/bugreport.cgi?bug=19350."
+   :expected-result :failed
+   (skip-unless (and (fboundp 'w32-shell-dos-semantics)
+                     (w32-shell-dos-semantics)))
+   (let ((process-environment (append '("ca^=with-caret"
+                                        "ca=without-caret")
+                                      process-environment)))
+     ;; It actually results in
+     ;;    without-caret with-caret
+     (should (equal (shell-command-to-string
+                     (format "echo %s %s"
+                             "%ca%"
+                             (shell-quote-argument "%ca%")))
+                    "without-caret %ca%"))))
  (provide 'subr-tests)
  ;;; subr-tests.el ends here
Simple merge