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 @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 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 @@ 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) 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." (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)) 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 ;; 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)) 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." (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. 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) 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); 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 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 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." (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