aboutsummaryrefslogtreecommitdiffstats
path: root/lisp
diff options
context:
space:
mode:
authorGlenn Morris2020-03-30 07:50:37 -0700
committerGlenn Morris2020-03-30 07:50:37 -0700
commitfa4eec5cfa8121837e5d5b89e623ba478f0759ad (patch)
tree38ef4f6bb4dafbd463053bb06ad9eaf25bb49037 /lisp
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
Diffstat (limited to 'lisp')
-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
4 files changed, 17 insertions, 10 deletions
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.