1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-01-30 12:21:25 -08:00

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
This commit is contained in:
Glenn Morris 2020-03-30 07:50:37 -07:00
commit fa4eec5cfa
8 changed files with 44 additions and 15 deletions

View file

@ -3776,6 +3776,14 @@ It is even possible to access file archives in file archives, as
@end group
@end lisp
@vindex tramp-archive-enabled
In order to disable file archives, you could add the following form to
your init file:
@lisp
(customize-set-variable 'tramp-archive-enabled nil)
@end lisp
@node Bug Reports
@chapter Reporting Bugs and Problems

View file

@ -161,8 +161,9 @@
hms date mod var))))
(defsubst Math-num-integerp (a)
(or (not (consp a))
(and (eq (car a) 'float)
(or (integerp a)
(and (consp a)
(eq (car a) 'float)
(>= (nth 2 a) 0))))
(defsubst Math-equal-int (a b)

View file

@ -819,23 +819,25 @@ The path separator is colon in GNU and GNU-like systems."
(defun directory-files-recursively (dir regexp
&optional include-directories predicate
follow-symlinks)
"Return list of all files under DIR that have file names matching REGEXP.
"Return list of all files under directory DIR whose names match REGEXP.
This function works recursively. Files are returned in \"depth
first\" order, and files from each directory are sorted in
alphabetical order. Each file name appears in the returned list
in its absolute form.
Optional argument INCLUDE-DIRECTORIES non-nil means also include
in the output directories whose names match REGEXP.
By default, the returned list excludes directories, but if
optional argument INCLUDE-DIRECTORIES is non-nil, they are
included.
PREDICATE can be either nil (which means that all subdirectories
are descended into), t (which means that subdirectories that
of DIR are descended into), t (which means that subdirectories that
can't be read are ignored), or a function (which is called with
the name of the subdirectory and should return non-nil if the
the name of each subdirectory, and should return non-nil if the
subdirectory is to be descended into).
If FOLLOW-SYMLINKS, symbolic links that point to directories are
followed. Note that this can lead to infinite recursion."
If FOLLOW-SYMLINKS is non-nil, symbolic links that point to
directories are followed. Note that this can lead to infinite
recursion."
(let* ((result nil)
(files nil)
(dir (directory-file-name dir))

View file

@ -57,6 +57,10 @@ is a string, it should be a MIME format string like
;; Find an installed image converter.
(unless image-converter
(image-converter--find-converter))
;; When image-converter was customized
(if (and image-converter (not image-converter-regexp))
(when-let ((formats (image-converter--probe image-converter)))
(setq image-converter-regexp (concat "\\." (regexp-opt formats) "\\'"))))
(and image-converter
(or (and (not data-p)
(string-match image-converter-regexp source))

View file

@ -319,7 +319,7 @@ i.e. 1970-1-1) are loaded as expiring one year from now instead."
(pop untrusted)))
(and trusted untrusted
;; Choose the more specific match.
(set (if (> trusted untrusted) 'untrusted 'trusted) nil))
(if (> trusted untrusted) (setq untrusted nil) (setq trusted nil)))
(cond
(untrusted
;; The site was explicitly marked as untrusted by the user.

View file

@ -87,7 +87,7 @@ unwind_decompress (void *ddata)
0);
update_compositions (data->start, data->start, CHECK_HEAD);
/* "Balance" the before-change-functions call, which would
otherwise be left "hanging". */
otherwise be left "hanging". */
signal_after_change (data->orig, data->start - data->orig,
data->start - data->orig);
}
@ -159,7 +159,7 @@ This function can be called only in unibyte buffers. */)
istart = XFIXNUM (start);
iend = XFIXNUM (end);
/* Do the following before manipulating the gap. */
/* Do the following before manipulating the gap. */
modify_text (istart, iend);
move_gap_both (iend, iend);
@ -224,7 +224,7 @@ This function can be called only in unibyte buffers. */)
unwind_data.start = 0;
/* Delete the compressed data. */
del_range_2 (istart, istart, /* byte and char offsets are the same. */
del_range_2 (istart, istart, /* byte and char offsets are the same */
iend, iend, 0);
signal_after_change (istart, iend - istart, unwind_data.nbytes);

View file

@ -6953,10 +6953,13 @@ could define a face `my-mode-default', and then in the mode setup
function, do:
(set (make-local-variable \\='face-remapping-alist)
\\='((default my-mode-default)))).
(copy-tree \\='((default my-mode-default)))).
You probably want to use the face-remap package included in Emacs
instead of manipulating face-remapping-alist directly.
instead of manipulating face-remapping-alist directly. Note that many
of the functions in that package modify the list destructively, so make
sure you set it to a fresh value (for instance, use `copy-tree' as in
the example above) before modifying.
Because Emacs normally only redraws screen areas when the underlying
buffer contents change, you may need to call `redraw-display' after

View file

@ -334,6 +334,17 @@ An existing calc stack is reused, otherwise a new one is created."
(should (equal tos '(- (* 2 (var x var-x)) 4)))
(should (equal trail "pdiv 2 * x - 4\nprem 8 * x + 1\n"))))))
(ert-deftest calc-Math-integerp ()
(should (Math-integerp -7))
(should (Math-integerp (ash 1 65)))
(should-not (Math-integerp '(float 1 0)))
(should-not (Math-integerp nil))
(should (Math-num-integerp -7))
(should (Math-num-integerp (ash 1 65)))
(should (Math-num-integerp '(float 1 0)))
(should-not (Math-num-integerp nil)))
(provide 'calc-tests)
;;; calc-tests.el ends here