diff options
| author | Po Lu | 2023-08-06 21:45:44 +0800 |
|---|---|---|
| committer | Po Lu | 2023-08-06 21:45:44 +0800 |
| commit | 7ffc5f86e4636f9837a46ea75bee7475caaf5c04 (patch) | |
| tree | 4820056bc76fb582d865b04cc811bafe44d63100 | |
| parent | 7873369338ee0159ca285153fd4592cbcff65d7a (diff) | |
| parent | 10a7615b5d45bcd909bb03d67423b337dfe93b1e (diff) | |
| download | emacs-7ffc5f86e4636f9837a46ea75bee7475caaf5c04.tar.gz emacs-7ffc5f86e4636f9837a46ea75bee7475caaf5c04.zip | |
Merge remote-tracking branch 'origin/master' into feature/android
| -rw-r--r-- | admin/notes/unicode | 5 | ||||
| -rw-r--r-- | doc/lispref/frames.texi | 15 | ||||
| -rw-r--r-- | etc/NEWS | 5 | ||||
| -rw-r--r-- | lisp/emacs-lisp/bytecomp.el | 4 | ||||
| -rw-r--r-- | lisp/emulation/viper-cmd.el | 10 | ||||
| -rw-r--r-- | lisp/faces.el | 10 | ||||
| -rw-r--r-- | lisp/files.el | 20 | ||||
| -rw-r--r-- | lisp/gnus/gmm-utils.el | 3 | ||||
| -rw-r--r-- | src/fileio.c | 40 | ||||
| -rw-r--r-- | test/lisp/net/tramp-tests.el | 10 | ||||
| -rw-r--r-- | test/src/treesit-tests.el | 1 |
11 files changed, 62 insertions, 61 deletions
diff --git a/admin/notes/unicode b/admin/notes/unicode index 31c850af8fd..b4f23f68def 100644 --- a/admin/notes/unicode +++ b/admin/notes/unicode | |||
| @@ -72,7 +72,10 @@ characters are those marked with W or F in that file. Zero-width | |||
| 72 | characters are not taken from EastAsianWidth.txt, they are those whose | 72 | characters are not taken from EastAsianWidth.txt, they are those whose |
| 73 | Unicode General Category property is one of Mn, Me, or Cf, and also | 73 | Unicode General Category property is one of Mn, Me, or Cf, and also |
| 74 | Hangul jungseong and jongseong characters (a.k.a. "Jamo medial vowels" | 74 | Hangul jungseong and jongseong characters (a.k.a. "Jamo medial vowels" |
| 75 | and "Jamo final consonants"). | 75 | and "Jamo final consonants"). The list of "ambiguous-width |
| 76 | characters" recorded in the ambiguous-width-chars table (around line | ||
| 77 | 1400 of characters.el) should also be checked against the latest | ||
| 78 | Unicode data in EastAsianWidth.txt. | ||
| 76 | 79 | ||
| 77 | Any new scripts added by UnicodeData.txt will also need updates to | 80 | Any new scripts added by UnicodeData.txt will also need updates to |
| 78 | script-representative-chars defined in fontset.el, and also the list | 81 | script-representative-chars defined in fontset.el, and also the list |
diff --git a/doc/lispref/frames.texi b/doc/lispref/frames.texi index 39f976fd905..853ca5ae69e 100644 --- a/doc/lispref/frames.texi +++ b/doc/lispref/frames.texi | |||
| @@ -5024,20 +5024,12 @@ really supports that color. When using X, you can ask for any defined | |||
| 5024 | color on any kind of display, and you will get some result---typically, | 5024 | color on any kind of display, and you will get some result---typically, |
| 5025 | the closest it can do. To determine whether a frame can really display | 5025 | the closest it can do. To determine whether a frame can really display |
| 5026 | a certain color, use @code{color-supported-p} (see below). | 5026 | a certain color, use @code{color-supported-p} (see below). |
| 5027 | |||
| 5028 | @findex x-color-defined-p | ||
| 5029 | This function used to be called @code{x-color-defined-p}, | ||
| 5030 | and that name is still supported as an alias. | ||
| 5031 | @end defun | 5027 | @end defun |
| 5032 | 5028 | ||
| 5033 | @defun defined-colors &optional frame | 5029 | @defun defined-colors &optional frame |
| 5034 | This function returns a list of the color names that are defined | 5030 | This function returns a list of the color names that are defined |
| 5035 | and supported on frame @var{frame} (default, the selected frame). | 5031 | and supported on frame @var{frame} (default, the selected frame). |
| 5036 | If @var{frame} does not support colors, the value is @code{nil}. | 5032 | If @var{frame} does not support colors, the value is @code{nil}. |
| 5037 | |||
| 5038 | @findex x-defined-colors | ||
| 5039 | This function used to be called @code{x-defined-colors}, | ||
| 5040 | and that name is still supported as an alias. | ||
| 5041 | @end defun | 5033 | @end defun |
| 5042 | 5034 | ||
| 5043 | @defun color-supported-p color &optional frame background-p | 5035 | @defun color-supported-p color &optional frame background-p |
| @@ -5089,10 +5081,6 @@ The color values are returned for @var{frame}'s display. If | |||
| 5089 | @var{frame} is omitted or @code{nil}, the information is returned for | 5081 | @var{frame} is omitted or @code{nil}, the information is returned for |
| 5090 | the selected frame's display. If the frame cannot display colors, the | 5082 | the selected frame's display. If the frame cannot display colors, the |
| 5091 | value is @code{nil}. | 5083 | value is @code{nil}. |
| 5092 | |||
| 5093 | @findex x-color-values | ||
| 5094 | This function used to be called @code{x-color-values}, | ||
| 5095 | and that name is still supported as an alias. | ||
| 5096 | @end defun | 5084 | @end defun |
| 5097 | 5085 | ||
| 5098 | @defun color-name-to-rgb color &optional frame | 5086 | @defun color-name-to-rgb color &optional frame |
| @@ -5277,10 +5265,7 @@ This function returns @code{t} if @var{display} has a mouse available, | |||
| 5277 | @end defun | 5265 | @end defun |
| 5278 | 5266 | ||
| 5279 | @defun display-color-p &optional display | 5267 | @defun display-color-p &optional display |
| 5280 | @findex x-display-color-p | ||
| 5281 | This function returns @code{t} if the screen is a color screen. | 5268 | This function returns @code{t} if the screen is a color screen. |
| 5282 | It used to be called @code{x-display-color-p}, and that name | ||
| 5283 | is still supported as an alias. | ||
| 5284 | @end defun | 5269 | @end defun |
| 5285 | 5270 | ||
| 5286 | @defun display-grayscale-p &optional display | 5271 | @defun display-grayscale-p &optional display |
| @@ -731,6 +731,11 @@ Instead, the Lisp reader approximates an infinity with the nearest | |||
| 731 | finite value, and a NaN with some other non-numeric object that | 731 | finite value, and a NaN with some other non-numeric object that |
| 732 | provokes an error if used numerically. | 732 | provokes an error if used numerically. |
| 733 | 733 | ||
| 734 | +++ | ||
| 735 | ** X color support compatibility aliases are now marked obsolete. | ||
| 736 | The compatibility aliases 'x-defined-colors', 'x-color-defined-p', | ||
| 737 | 'x-color-values', and 'x-display-color-p' are now obsolete. | ||
| 738 | |||
| 734 | 739 | ||
| 735 | * Lisp Changes in Emacs 30.1 | 740 | * Lisp Changes in Emacs 30.1 |
| 736 | 741 | ||
diff --git a/lisp/emacs-lisp/bytecomp.el b/lisp/emacs-lisp/bytecomp.el index f0656628236..f6ba6ff9ea0 100644 --- a/lisp/emacs-lisp/bytecomp.el +++ b/lisp/emacs-lisp/bytecomp.el | |||
| @@ -1976,7 +1976,9 @@ also be compiled." | |||
| 1976 | (let ((directories (list default-directory)) | 1976 | (let ((directories (list default-directory)) |
| 1977 | (default-directory default-directory) | 1977 | (default-directory default-directory) |
| 1978 | (ignore-files-regexp | 1978 | (ignore-files-regexp |
| 1979 | (mapconcat #'identity byte-compile-ignore-files "\\|")) | 1979 | (if byte-compile-ignore-files |
| 1980 | (mapconcat #'identity byte-compile-ignore-files "\\|") | ||
| 1981 | regexp-unmatchable)) | ||
| 1980 | (skip-count 0) | 1982 | (skip-count 0) |
| 1981 | (fail-count 0) | 1983 | (fail-count 0) |
| 1982 | (file-count 0) | 1984 | (file-count 0) |
diff --git a/lisp/emulation/viper-cmd.el b/lisp/emulation/viper-cmd.el index c0aa9dd7b46..78114db0972 100644 --- a/lisp/emulation/viper-cmd.el +++ b/lisp/emulation/viper-cmd.el | |||
| @@ -4724,15 +4724,15 @@ Please, specify your level now: ")) | |||
| 4724 | (defun viper-submit-report () | 4724 | (defun viper-submit-report () |
| 4725 | "Submit bug report on Viper." | 4725 | "Submit bug report on Viper." |
| 4726 | (interactive) | 4726 | (interactive) |
| 4727 | (defvar x-display-color-p) | 4727 | (defvar display-color-p) |
| 4728 | (defvar viper-frame-parameters) | 4728 | (defvar viper-frame-parameters) |
| 4729 | (defvar viper-minibuffer-emacs-face) | 4729 | (defvar viper-minibuffer-emacs-face) |
| 4730 | (defvar viper-minibuffer-vi-face) | 4730 | (defvar viper-minibuffer-vi-face) |
| 4731 | (defvar viper-minibuffer-insert-face) | 4731 | (defvar viper-minibuffer-insert-face) |
| 4732 | (let ((reporter-prompt-for-summary-p t) | 4732 | (let ((reporter-prompt-for-summary-p t) |
| 4733 | (x-display-color-p (if (viper-window-display-p) | 4733 | (display-color-p (if (viper-window-display-p) |
| 4734 | (x-display-color-p) | 4734 | (display-color-p) |
| 4735 | 'non-x)) | 4735 | 'non-x)) |
| 4736 | (viper-frame-parameters (frame-parameters (selected-frame))) | 4736 | (viper-frame-parameters (frame-parameters (selected-frame))) |
| 4737 | (viper-minibuffer-emacs-face (if (viper-has-face-support-p) | 4737 | (viper-minibuffer-emacs-face (if (viper-has-face-support-p) |
| 4738 | (facep | 4738 | (facep |
| @@ -4790,7 +4790,7 @@ Please, specify your level now: ")) | |||
| 4790 | 'viper-expert-level | 4790 | 'viper-expert-level |
| 4791 | 'major-mode | 4791 | 'major-mode |
| 4792 | 'window-system | 4792 | 'window-system |
| 4793 | 'x-display-color-p | 4793 | 'display-color-p |
| 4794 | 'viper-frame-parameters | 4794 | 'viper-frame-parameters |
| 4795 | 'viper-minibuffer-vi-face | 4795 | 'viper-minibuffer-vi-face |
| 4796 | 'viper-minibuffer-insert-face | 4796 | 'viper-minibuffer-insert-face |
diff --git a/lisp/faces.el b/lisp/faces.el index 3aa0ad8d0f0..8017f5fa65e 100644 --- a/lisp/faces.el +++ b/lisp/faces.el | |||
| @@ -1850,7 +1850,6 @@ If there is neither a user setting nor a default for FACE, return nil." | |||
| 1850 | 1850 | ||
| 1851 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; | 1851 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; |
| 1852 | ;;; Frame-type independent color support. | 1852 | ;;; Frame-type independent color support. |
| 1853 | ;;; We keep the old x-* names as aliases for back-compatibility. | ||
| 1854 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; | 1853 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; |
| 1855 | 1854 | ||
| 1856 | (defun defined-colors (&optional frame) | 1855 | (defun defined-colors (&optional frame) |
| @@ -1862,7 +1861,6 @@ If FRAME is nil, that stands for the selected frame." | |||
| 1862 | (if (display-graphic-p frame) | 1861 | (if (display-graphic-p frame) |
| 1863 | (xw-defined-colors frame) | 1862 | (xw-defined-colors frame) |
| 1864 | (mapcar 'car (tty-color-alist frame)))) | 1863 | (mapcar 'car (tty-color-alist frame)))) |
| 1865 | (defalias 'x-defined-colors 'defined-colors) | ||
| 1866 | 1864 | ||
| 1867 | (defun defined-colors-with-face-attributes (&optional frame foreground) | 1865 | (defun defined-colors-with-face-attributes (&optional frame foreground) |
| 1868 | "Return a list of colors supported for a particular FRAME. | 1866 | "Return a list of colors supported for a particular FRAME. |
| @@ -1946,7 +1944,6 @@ If FRAME is omitted or nil, use the selected frame." | |||
| 1946 | (if (display-graphic-p frame) | 1944 | (if (display-graphic-p frame) |
| 1947 | (xw-color-defined-p color frame) | 1945 | (xw-color-defined-p color frame) |
| 1948 | (numberp (tty-color-translate color frame))))) | 1946 | (numberp (tty-color-translate color frame))))) |
| 1949 | (defalias 'x-color-defined-p 'color-defined-p) | ||
| 1950 | 1947 | ||
| 1951 | (declare-function xw-color-values "xfns.c" (color &optional frame)) | 1948 | (declare-function xw-color-values "xfns.c" (color &optional frame)) |
| 1952 | 1949 | ||
| @@ -1974,8 +1971,6 @@ return value is nil." | |||
| 1974 | (t | 1971 | (t |
| 1975 | (tty-color-values color frame)))) | 1972 | (tty-color-values color frame)))) |
| 1976 | 1973 | ||
| 1977 | (defalias 'x-color-values 'color-values) | ||
| 1978 | |||
| 1979 | (declare-function xw-display-color-p "xfns.c" (&optional terminal)) | 1974 | (declare-function xw-display-color-p "xfns.c" (&optional terminal)) |
| 1980 | 1975 | ||
| 1981 | (defun display-color-p (&optional display) | 1976 | (defun display-color-p (&optional display) |
| @@ -1986,7 +1981,6 @@ If omitted or nil, that stands for the selected frame's display." | |||
| 1986 | (if (display-graphic-p display) | 1981 | (if (display-graphic-p display) |
| 1987 | (xw-display-color-p display) | 1982 | (xw-display-color-p display) |
| 1988 | (tty-display-color-p display))) | 1983 | (tty-display-color-p display))) |
| 1989 | (defalias 'x-display-color-p 'display-color-p) | ||
| 1990 | 1984 | ||
| 1991 | (declare-function x-display-grayscale-p "xfns.c" (&optional terminal)) | 1985 | (declare-function x-display-grayscale-p "xfns.c" (&optional terminal)) |
| 1992 | 1986 | ||
| @@ -3221,6 +3215,10 @@ also the same size as FACE on FRAME, or fail." | |||
| 3221 | 3215 | ||
| 3222 | (define-obsolete-function-alias 'face-background-pixmap #'face-stipple "29.1") | 3216 | (define-obsolete-function-alias 'face-background-pixmap #'face-stipple "29.1") |
| 3223 | (define-obsolete-function-alias 'set-face-background-pixmap #'set-face-stipple "29.1") | 3217 | (define-obsolete-function-alias 'set-face-background-pixmap #'set-face-stipple "29.1") |
| 3218 | (define-obsolete-function-alias 'x-defined-colors #'defined-colors "30.1") | ||
| 3219 | (define-obsolete-function-alias 'x-color-defined-p #'color-defined-p "30.1") | ||
| 3220 | (define-obsolete-function-alias 'x-color-values #'color-values "30.1") | ||
| 3221 | (define-obsolete-function-alias 'x-display-color-p #'display-color-p "30.1") | ||
| 3224 | 3222 | ||
| 3225 | (provide 'faces) | 3223 | (provide 'faces) |
| 3226 | 3224 | ||
diff --git a/lisp/files.el b/lisp/files.el index 572913e95ee..5ffc18682f2 100644 --- a/lisp/files.el +++ b/lisp/files.el | |||
| @@ -6357,6 +6357,26 @@ non-nil and if FN fails due to a missing file or directory." | |||
| 6357 | (apply fn args) | 6357 | (apply fn args) |
| 6358 | (file-missing (or no-such (signal (car err) (cdr err)))))) | 6358 | (file-missing (or no-such (signal (car err) (cdr err)))))) |
| 6359 | 6359 | ||
| 6360 | (defun delete-file (filename &optional trash) | ||
| 6361 | "Delete file named FILENAME. If it is a symlink, remove the symlink. | ||
| 6362 | If file has multiple names, it continues to exist with the other names.q | ||
| 6363 | TRASH non-nil means to trash the file instead of deleting, provided | ||
| 6364 | `delete-by-moving-to-trash' is non-nil. | ||
| 6365 | |||
| 6366 | When called interactively, TRASH is t if no prefix argument is given. | ||
| 6367 | With a prefix argument, TRASH is nil." | ||
| 6368 | (interactive (list (read-file-name | ||
| 6369 | (if (and delete-by-moving-to-trash (null current-prefix-arg)) | ||
| 6370 | "Move file to trash: " "Delete file: ") | ||
| 6371 | nil default-directory (confirm-nonexistent-file-or-buffer)) | ||
| 6372 | (null current-prefix-arg))) | ||
| 6373 | (if (and (file-directory-p filename) (not (file-symlink-p filename))) | ||
| 6374 | (signal 'file-error (list "Removing old name: is a directory" filename))) | ||
| 6375 | (let* ((filename (expand-file-name filename)) (handler (find-file-name-handler filename 'delete-file))) | ||
| 6376 | (cond (handler (funcall handler 'delete-file filename trash)) | ||
| 6377 | ((and delete-by-moving-to-trash trash) (move-file-to-trash filename)) | ||
| 6378 | (t (delete-file-internal filename))))) | ||
| 6379 | |||
| 6360 | (defun delete-directory (directory &optional recursive trash) | 6380 | (defun delete-directory (directory &optional recursive trash) |
| 6361 | "Delete the directory named DIRECTORY. Does not follow symlinks. | 6381 | "Delete the directory named DIRECTORY. Does not follow symlinks. |
| 6362 | If RECURSIVE is non-nil, delete files in DIRECTORY as well, with | 6382 | If RECURSIVE is non-nil, delete files in DIRECTORY as well, with |
diff --git a/lisp/gnus/gmm-utils.el b/lisp/gnus/gmm-utils.el index 2fc89681ba5..c0651e3dbfc 100644 --- a/lisp/gnus/gmm-utils.el +++ b/lisp/gnus/gmm-utils.el | |||
| @@ -200,7 +200,8 @@ DEFAULT-MAP specifies the default key map for ICON-LIST." | |||
| 200 | "Create function NAME. | 200 | "Create function NAME. |
| 201 | If FUNCTION exists, then NAME becomes an alias for FUNCTION. | 201 | If FUNCTION exists, then NAME becomes an alias for FUNCTION. |
| 202 | Otherwise, create function NAME with ARG-LIST and BODY." | 202 | Otherwise, create function NAME with ARG-LIST and BODY." |
| 203 | (declare (indent defun)) | 203 | (declare (obsolete nil "30.1") |
| 204 | (indent defun)) | ||
| 204 | (let ((defined-p (fboundp function))) | 205 | (let ((defined-p (fboundp function))) |
| 205 | (if defined-p | 206 | (if defined-p |
| 206 | `(defalias ',name ',function) | 207 | `(defalias ',name ',function) |
diff --git a/src/fileio.c b/src/fileio.c index b37748b8225..b815a1bdd79 100644 --- a/src/fileio.c +++ b/src/fileio.c | |||
| @@ -2565,38 +2565,13 @@ DEFUN ("delete-directory-internal", Fdelete_directory_internal, | |||
| 2565 | return Qnil; | 2565 | return Qnil; |
| 2566 | } | 2566 | } |
| 2567 | 2567 | ||
| 2568 | DEFUN ("delete-file", Fdelete_file, Sdelete_file, 1, 2, | 2568 | DEFUN ("delete-file-internal", Fdelete_file_internal, Sdelete_file_internal, 1, 1, 0, |
| 2569 | "(list (read-file-name \ | ||
| 2570 | (if (and delete-by-moving-to-trash (null current-prefix-arg)) \ | ||
| 2571 | \"Move file to trash: \" \"Delete file: \") \ | ||
| 2572 | nil default-directory (confirm-nonexistent-file-or-buffer)) \ | ||
| 2573 | (null current-prefix-arg))", | ||
| 2574 | doc: /* Delete file named FILENAME. If it is a symlink, remove the symlink. | 2569 | doc: /* Delete file named FILENAME. If it is a symlink, remove the symlink. |
| 2575 | If file has multiple names, it continues to exist with the other names. | 2570 | If file has multiple names, it continues to exist with the other names. */) |
| 2576 | TRASH non-nil means to trash the file instead of deleting, provided | 2571 | (Lisp_Object filename) |
| 2577 | `delete-by-moving-to-trash' is non-nil. | ||
| 2578 | |||
| 2579 | When called interactively, TRASH is t if no prefix argument is given. | ||
| 2580 | With a prefix argument, TRASH is nil. */) | ||
| 2581 | (Lisp_Object filename, Lisp_Object trash) | ||
| 2582 | { | 2572 | { |
| 2583 | Lisp_Object handler; | ||
| 2584 | Lisp_Object encoded_file; | 2573 | Lisp_Object encoded_file; |
| 2585 | 2574 | ||
| 2586 | if (!NILP (Ffile_directory_p (filename)) | ||
| 2587 | && NILP (Ffile_symlink_p (filename))) | ||
| 2588 | xsignal2 (Qfile_error, | ||
| 2589 | build_string ("Removing old name: is a directory"), | ||
| 2590 | filename); | ||
| 2591 | filename = Fexpand_file_name (filename, Qnil); | ||
| 2592 | |||
| 2593 | handler = Ffind_file_name_handler (filename, Qdelete_file); | ||
| 2594 | if (!NILP (handler)) | ||
| 2595 | return call3 (handler, Qdelete_file, filename, trash); | ||
| 2596 | |||
| 2597 | if (delete_by_moving_to_trash && !NILP (trash)) | ||
| 2598 | return call1 (Qmove_file_to_trash, filename); | ||
| 2599 | |||
| 2600 | encoded_file = ENCODE_FILE (filename); | 2575 | encoded_file = ENCODE_FILE (filename); |
| 2601 | 2576 | ||
| 2602 | if (emacs_unlink (SSDATA (encoded_file)) != 0 | 2577 | if (emacs_unlink (SSDATA (encoded_file)) != 0 |
| @@ -2832,7 +2807,7 @@ This is what happens in interactive use with M-x. */) | |||
| 2832 | if (dirp) | 2807 | if (dirp) |
| 2833 | call2 (Qdelete_directory, file, Qt); | 2808 | call2 (Qdelete_directory, file, Qt); |
| 2834 | else | 2809 | else |
| 2835 | Fdelete_file (file, Qnil); | 2810 | call2 (Qdelete_file, file, Qnil); |
| 2836 | return unbind_to (count, Qnil); | 2811 | return unbind_to (count, Qnil); |
| 2837 | } | 2812 | } |
| 2838 | 2813 | ||
| @@ -6493,7 +6468,7 @@ syms_of_fileio (void) | |||
| 6493 | DEFSYM (Qcopy_file, "copy-file"); | 6468 | DEFSYM (Qcopy_file, "copy-file"); |
| 6494 | DEFSYM (Qmake_directory_internal, "make-directory-internal"); | 6469 | DEFSYM (Qmake_directory_internal, "make-directory-internal"); |
| 6495 | DEFSYM (Qmake_directory, "make-directory"); | 6470 | DEFSYM (Qmake_directory, "make-directory"); |
| 6496 | DEFSYM (Qdelete_file, "delete-file"); | 6471 | DEFSYM (Qdelete_file_internal, "delete-file-internal"); |
| 6497 | DEFSYM (Qfile_name_case_insensitive_p, "file-name-case-insensitive-p"); | 6472 | DEFSYM (Qfile_name_case_insensitive_p, "file-name-case-insensitive-p"); |
| 6498 | DEFSYM (Qrename_file, "rename-file"); | 6473 | DEFSYM (Qrename_file, "rename-file"); |
| 6499 | DEFSYM (Qadd_name_to_file, "add-name-to-file"); | 6474 | DEFSYM (Qadd_name_to_file, "add-name-to-file"); |
| @@ -6757,6 +6732,9 @@ This includes interactive calls to `delete-file' and | |||
| 6757 | delete_by_moving_to_trash = 0; | 6732 | delete_by_moving_to_trash = 0; |
| 6758 | DEFSYM (Qdelete_by_moving_to_trash, "delete-by-moving-to-trash"); | 6733 | DEFSYM (Qdelete_by_moving_to_trash, "delete-by-moving-to-trash"); |
| 6759 | 6734 | ||
| 6735 | /* Lisp function for interactive file delete with trashing */ | ||
| 6736 | DEFSYM (Qdelete_file, "delete-file"); | ||
| 6737 | |||
| 6760 | /* Lisp function for moving files to trash. */ | 6738 | /* Lisp function for moving files to trash. */ |
| 6761 | DEFSYM (Qmove_file_to_trash, "move-file-to-trash"); | 6739 | DEFSYM (Qmove_file_to_trash, "move-file-to-trash"); |
| 6762 | 6740 | ||
| @@ -6788,7 +6766,7 @@ This includes interactive calls to `delete-file' and | |||
| 6788 | defsubr (&Scopy_file); | 6766 | defsubr (&Scopy_file); |
| 6789 | defsubr (&Smake_directory_internal); | 6767 | defsubr (&Smake_directory_internal); |
| 6790 | defsubr (&Sdelete_directory_internal); | 6768 | defsubr (&Sdelete_directory_internal); |
| 6791 | defsubr (&Sdelete_file); | 6769 | defsubr (&Sdelete_file_internal); |
| 6792 | defsubr (&Sfile_name_case_insensitive_p); | 6770 | defsubr (&Sfile_name_case_insensitive_p); |
| 6793 | defsubr (&Srename_file); | 6771 | defsubr (&Srename_file); |
| 6794 | defsubr (&Sadd_name_to_file); | 6772 | defsubr (&Sadd_name_to_file); |
diff --git a/test/lisp/net/tramp-tests.el b/test/lisp/net/tramp-tests.el index d97785ee481..a6c430fb1c0 100644 --- a/test/lisp/net/tramp-tests.el +++ b/test/lisp/net/tramp-tests.el | |||
| @@ -7083,6 +7083,12 @@ This does not support external Emacs calls." | |||
| 7083 | (string-equal | 7083 | (string-equal |
| 7084 | "mock" (file-remote-p ert-remote-temporary-file-directory 'method))) | 7084 | "mock" (file-remote-p ert-remote-temporary-file-directory 'method))) |
| 7085 | 7085 | ||
| 7086 | (defun tramp--test-openbsd-p () | ||
| 7087 | "Check, whether the remote host runs OpenBSD." | ||
| 7088 | ;; We must refill the cache. `file-truename' does it. | ||
| 7089 | (file-truename ert-remote-temporary-file-directory) | ||
| 7090 | (ignore-errors (tramp-check-remote-uname tramp-test-vec "OpenBSD"))) | ||
| 7091 | |||
| 7086 | (defun tramp--test-out-of-band-p () | 7092 | (defun tramp--test-out-of-band-p () |
| 7087 | "Check, whether an out-of-band method is used." | 7093 | "Check, whether an out-of-band method is used." |
| 7088 | (tramp-method-out-of-band-p tramp-test-vec 1)) | 7094 | (tramp-method-out-of-band-p tramp-test-vec 1)) |
| @@ -7403,6 +7409,7 @@ This requires restrictions of file name syntax." | |||
| 7403 | (cond ((or (tramp--test-ange-ftp-p) | 7409 | (cond ((or (tramp--test-ange-ftp-p) |
| 7404 | (tramp--test-container-p) | 7410 | (tramp--test-container-p) |
| 7405 | (tramp--test-gvfs-p) | 7411 | (tramp--test-gvfs-p) |
| 7412 | (tramp--test-openbsd-p) | ||
| 7406 | (tramp--test-rclone-p) | 7413 | (tramp--test-rclone-p) |
| 7407 | (tramp--test-sudoedit-p) | 7414 | (tramp--test-sudoedit-p) |
| 7408 | (tramp--test-windows-nt-or-smb-p)) | 7415 | (tramp--test-windows-nt-or-smb-p)) |
| @@ -7485,7 +7492,8 @@ This requires restrictions of file name syntax." | |||
| 7485 | "Автостопом по гала́ктике" | 7492 | "Автостопом по гала́ктике" |
| 7486 | ;; Use codepoints without a name. See Bug#31272. | 7493 | ;; Use codepoints without a name. See Bug#31272. |
| 7487 | ;; Works on some Android systems only. | 7494 | ;; Works on some Android systems only. |
| 7488 | (unless (tramp--test-adb-p) "bung") | 7495 | (unless (or (tramp--test-adb-p) (tramp--test-openbsd-p)) |
| 7496 | "bung") | ||
| 7489 | ;; Use codepoints from Supplementary Multilingual Plane (U+10000 | 7497 | ;; Use codepoints from Supplementary Multilingual Plane (U+10000 |
| 7490 | ;; to U+1FFFF). | 7498 | ;; to U+1FFFF). |
| 7491 | "🌈🍒👋") | 7499 | "🌈🍒👋") |
diff --git a/test/src/treesit-tests.el b/test/src/treesit-tests.el index 34540b463cd..65994ce608f 100644 --- a/test/src/treesit-tests.el +++ b/test/src/treesit-tests.el | |||
| @@ -34,6 +34,7 @@ | |||
| 34 | (declare-function treesit-parser-buffer "treesit.c") | 34 | (declare-function treesit-parser-buffer "treesit.c") |
| 35 | (declare-function treesit-parser-language "treesit.c") | 35 | (declare-function treesit-parser-language "treesit.c") |
| 36 | 36 | ||
| 37 | (declare-function treesit-pattern-expand "treesit.c") | ||
| 37 | (declare-function treesit-query-expand "treesit.c") | 38 | (declare-function treesit-query-expand "treesit.c") |
| 38 | (declare-function treesit-query-compile "treesit.c") | 39 | (declare-function treesit-query-compile "treesit.c") |
| 39 | (declare-function treesit-query-capture "treesit.c") | 40 | (declare-function treesit-query-capture "treesit.c") |