aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGlenn Morris2020-03-30 07:50:37 -0700
committerGlenn Morris2020-03-30 07:50:37 -0700
commitfa4eec5cfa8121837e5d5b89e623ba478f0759ad (patch)
tree38ef4f6bb4dafbd463053bb06ad9eaf25bb49037
parent8911d0899713132ccc2299b0700dac3315c44de0 (diff)
parentc6e0981b96eaa12c28b70c949ccd6e426c13df4d (diff)
downloademacs-fa4eec5cfa8121837e5d5b89e623ba478f0759ad.tar.gz
emacs-fa4eec5cfa8121837e5d5b89e623ba478f0759ad.zip
Merge from origin/emacs-27
c6e0981b96 (origin/emacs-27) * lisp/image/image-converter.el: Fix cus... 461bd9cc20 Fix url-cookie.el for lexical binding f3ccfb1926 ; * src/decompress.c: Fix comment style. 1af03e7e92 ; * src/xfaces.c (syms_of_xfaces): Fix wording and typo. 93945fcd19 ; * test/lisp/calc/calc-tests.el: Fix mistake in last commit ee47e00f4e Don't suggest setting face-remapping-alist to a literal (B... c2b8ce4439 Calc: don't treat nil as an integer (bug#40155) e1f0e08922 * lisp/files.el (directory-files-recursively): Doc fix. (... 02b3820315 Document how to disable Tramp file archives
-rw-r--r--doc/misc/tramp.texi8
-rw-r--r--lisp/calc/calc-macs.el5
-rw-r--r--lisp/files.el16
-rw-r--r--lisp/image/image-converter.el4
-rw-r--r--lisp/url/url-cookie.el2
-rw-r--r--src/decompress.c6
-rw-r--r--src/xfaces.c7
-rw-r--r--test/lisp/calc/calc-tests.el11
8 files changed, 44 insertions, 15 deletions
diff --git a/doc/misc/tramp.texi b/doc/misc/tramp.texi
index 61cf373024f..75d2fd11bb4 100644
--- a/doc/misc/tramp.texi
+++ b/doc/misc/tramp.texi
@@ -3776,6 +3776,14 @@ It is even possible to access file archives in file archives, as
3776@end group 3776@end group
3777@end lisp 3777@end lisp
3778 3778
3779@vindex tramp-archive-enabled
3780In order to disable file archives, you could add the following form to
3781your init file:
3782
3783@lisp
3784(customize-set-variable 'tramp-archive-enabled nil)
3785@end lisp
3786
3779 3787
3780@node Bug Reports 3788@node Bug Reports
3781@chapter Reporting Bugs and Problems 3789@chapter Reporting Bugs and Problems
diff --git a/lisp/calc/calc-macs.el b/lisp/calc/calc-macs.el
index e73d108e6d9..257d369b87a 100644
--- a/lisp/calc/calc-macs.el
+++ b/lisp/calc/calc-macs.el
@@ -161,8 +161,9 @@
161 hms date mod var)))) 161 hms date mod var))))
162 162
163(defsubst Math-num-integerp (a) 163(defsubst Math-num-integerp (a)
164 (or (not (consp a)) 164 (or (integerp a)
165 (and (eq (car a) 'float) 165 (and (consp a)
166 (eq (car a) 'float)
166 (>= (nth 2 a) 0)))) 167 (>= (nth 2 a) 0))))
167 168
168(defsubst Math-equal-int (a b) 169(defsubst Math-equal-int (a b)
diff --git a/lisp/files.el b/lisp/files.el
index 1f5fae95023..55a0958f540 100644
--- a/lisp/files.el
+++ b/lisp/files.el
@@ -819,23 +819,25 @@ The path separator is colon in GNU and GNU-like systems."
819(defun directory-files-recursively (dir regexp 819(defun directory-files-recursively (dir regexp
820 &optional include-directories predicate 820 &optional include-directories predicate
821 follow-symlinks) 821 follow-symlinks)
822 "Return list of all files under DIR that have file names matching REGEXP. 822 "Return list of all files under directory DIR whose names match REGEXP.
823This function works recursively. Files are returned in \"depth 823This function works recursively. Files are returned in \"depth
824first\" order, and files from each directory are sorted in 824first\" order, and files from each directory are sorted in
825alphabetical order. Each file name appears in the returned list 825alphabetical order. Each file name appears in the returned list
826in its absolute form. 826in its absolute form.
827 827
828Optional argument INCLUDE-DIRECTORIES non-nil means also include 828By default, the returned list excludes directories, but if
829in the output directories whose names match REGEXP. 829optional argument INCLUDE-DIRECTORIES is non-nil, they are
830included.
830 831
831PREDICATE can be either nil (which means that all subdirectories 832PREDICATE can be either nil (which means that all subdirectories
832are descended into), t (which means that subdirectories that 833of DIR are descended into), t (which means that subdirectories that
833can't be read are ignored), or a function (which is called with 834can't be read are ignored), or a function (which is called with
834the name of the subdirectory and should return non-nil if the 835the name of each subdirectory, and should return non-nil if the
835subdirectory is to be descended into). 836subdirectory is to be descended into).
836 837
837If FOLLOW-SYMLINKS, symbolic links that point to directories are 838If FOLLOW-SYMLINKS is non-nil, symbolic links that point to
838followed. Note that this can lead to infinite recursion." 839directories are followed. Note that this can lead to infinite
840recursion."
839 (let* ((result nil) 841 (let* ((result nil)
840 (files nil) 842 (files nil)
841 (dir (directory-file-name dir)) 843 (dir (directory-file-name dir))
diff --git a/lisp/image/image-converter.el b/lisp/image/image-converter.el
index ae3d9598920..b694052f5b9 100644
--- a/lisp/image/image-converter.el
+++ b/lisp/image/image-converter.el
@@ -57,6 +57,10 @@ is a string, it should be a MIME format string like
57 ;; Find an installed image converter. 57 ;; Find an installed image converter.
58 (unless image-converter 58 (unless image-converter
59 (image-converter--find-converter)) 59 (image-converter--find-converter))
60 ;; When image-converter was customized
61 (if (and image-converter (not image-converter-regexp))
62 (when-let ((formats (image-converter--probe image-converter)))
63 (setq image-converter-regexp (concat "\\." (regexp-opt formats) "\\'"))))
60 (and image-converter 64 (and image-converter
61 (or (and (not data-p) 65 (or (and (not data-p)
62 (string-match image-converter-regexp source)) 66 (string-match image-converter-regexp source))
diff --git a/lisp/url/url-cookie.el b/lisp/url/url-cookie.el
index 7ab9a2f1779..bee3a6b85e4 100644
--- a/lisp/url/url-cookie.el
+++ b/lisp/url/url-cookie.el
@@ -319,7 +319,7 @@ i.e. 1970-1-1) are loaded as expiring one year from now instead."
319 (pop untrusted))) 319 (pop untrusted)))
320 (and trusted untrusted 320 (and trusted untrusted
321 ;; Choose the more specific match. 321 ;; Choose the more specific match.
322 (set (if (> trusted untrusted) 'untrusted 'trusted) nil)) 322 (if (> trusted untrusted) (setq untrusted nil) (setq trusted nil)))
323 (cond 323 (cond
324 (untrusted 324 (untrusted
325 ;; The site was explicitly marked as untrusted by the user. 325 ;; The site was explicitly marked as untrusted by the user.
diff --git a/src/decompress.c b/src/decompress.c
index 5d246387e76..8e8f2443111 100644
--- a/src/decompress.c
+++ b/src/decompress.c
@@ -87,7 +87,7 @@ unwind_decompress (void *ddata)
87 0); 87 0);
88 update_compositions (data->start, data->start, CHECK_HEAD); 88 update_compositions (data->start, data->start, CHECK_HEAD);
89 /* "Balance" the before-change-functions call, which would 89 /* "Balance" the before-change-functions call, which would
90 otherwise be left "hanging". */ 90 otherwise be left "hanging". */
91 signal_after_change (data->orig, data->start - data->orig, 91 signal_after_change (data->orig, data->start - data->orig,
92 data->start - data->orig); 92 data->start - data->orig);
93 } 93 }
@@ -159,7 +159,7 @@ This function can be called only in unibyte buffers. */)
159 istart = XFIXNUM (start); 159 istart = XFIXNUM (start);
160 iend = XFIXNUM (end); 160 iend = XFIXNUM (end);
161 161
162 /* Do the following before manipulating the gap. */ 162 /* Do the following before manipulating the gap. */
163 modify_text (istart, iend); 163 modify_text (istart, iend);
164 164
165 move_gap_both (iend, iend); 165 move_gap_both (iend, iend);
@@ -224,7 +224,7 @@ This function can be called only in unibyte buffers. */)
224 unwind_data.start = 0; 224 unwind_data.start = 0;
225 225
226 /* Delete the compressed data. */ 226 /* Delete the compressed data. */
227 del_range_2 (istart, istart, /* byte and char offsets are the same. */ 227 del_range_2 (istart, istart, /* byte and char offsets are the same */
228 iend, iend, 0); 228 iend, iend, 0);
229 229
230 signal_after_change (istart, iend - istart, unwind_data.nbytes); 230 signal_after_change (istart, iend - istart, unwind_data.nbytes);
diff --git a/src/xfaces.c b/src/xfaces.c
index 91a7a8533e8..711ec48bbdd 100644
--- a/src/xfaces.c
+++ b/src/xfaces.c
@@ -6953,10 +6953,13 @@ could define a face `my-mode-default', and then in the mode setup
6953function, do: 6953function, do:
6954 6954
6955 (set (make-local-variable \\='face-remapping-alist) 6955 (set (make-local-variable \\='face-remapping-alist)
6956 \\='((default my-mode-default)))). 6956 (copy-tree \\='((default my-mode-default)))).
6957 6957
6958You probably want to use the face-remap package included in Emacs 6958You probably want to use the face-remap package included in Emacs
6959instead of manipulating face-remapping-alist directly. 6959instead of manipulating face-remapping-alist directly. Note that many
6960of the functions in that package modify the list destructively, so make
6961sure you set it to a fresh value (for instance, use `copy-tree' as in
6962the example above) before modifying.
6960 6963
6961Because Emacs normally only redraws screen areas when the underlying 6964Because Emacs normally only redraws screen areas when the underlying
6962buffer contents change, you may need to call `redraw-display' after 6965buffer contents change, you may need to call `redraw-display' after
diff --git a/test/lisp/calc/calc-tests.el b/test/lisp/calc/calc-tests.el
index 784b404898a..6db5426ff6d 100644
--- a/test/lisp/calc/calc-tests.el
+++ b/test/lisp/calc/calc-tests.el
@@ -334,6 +334,17 @@ An existing calc stack is reused, otherwise a new one is created."
334 (should (equal tos '(- (* 2 (var x var-x)) 4))) 334 (should (equal tos '(- (* 2 (var x var-x)) 4)))
335 (should (equal trail "pdiv 2 * x - 4\nprem 8 * x + 1\n")))))) 335 (should (equal trail "pdiv 2 * x - 4\nprem 8 * x + 1\n"))))))
336 336
337(ert-deftest calc-Math-integerp ()
338 (should (Math-integerp -7))
339 (should (Math-integerp (ash 1 65)))
340 (should-not (Math-integerp '(float 1 0)))
341 (should-not (Math-integerp nil))
342
343 (should (Math-num-integerp -7))
344 (should (Math-num-integerp (ash 1 65)))
345 (should (Math-num-integerp '(float 1 0)))
346 (should-not (Math-num-integerp nil)))
347
337(provide 'calc-tests) 348(provide 'calc-tests)
338;;; calc-tests.el ends here 349;;; calc-tests.el ends here
339 350