diff options
| author | Po Lu | 2023-05-12 10:43:52 +0800 |
|---|---|---|
| committer | Po Lu | 2023-05-12 10:43:52 +0800 |
| commit | 7ac8bcaacc1f3dbbda3febe09dde6d18a2d69729 (patch) | |
| tree | 0f793adca34d302415ccb31b945b6c1084425724 /lisp | |
| parent | 140c5bffc6441e6cee9ba60af114392729239abe (diff) | |
| parent | 30501083f2ff24ee1291a68e83c65b89c644f44b (diff) | |
| download | emacs-7ac8bcaacc1f3dbbda3febe09dde6d18a2d69729.tar.gz emacs-7ac8bcaacc1f3dbbda3febe09dde6d18a2d69729.zip | |
Merge remote-tracking branch 'origin/master' into feature/android
Diffstat (limited to 'lisp')
| -rw-r--r-- | lisp/dynamic-setting.el | 1 | ||||
| -rw-r--r-- | lisp/files.el | 37 | ||||
| -rw-r--r-- | lisp/net/soap-client.el | 13 | ||||
| -rw-r--r-- | lisp/progmodes/prog-mode.el | 1 | ||||
| -rw-r--r-- | lisp/term/haiku-win.el | 3 | ||||
| -rw-r--r-- | lisp/x-dnd.el | 3 |
6 files changed, 48 insertions, 10 deletions
diff --git a/lisp/dynamic-setting.el b/lisp/dynamic-setting.el index 9ce09657345..ebe25ab9c75 100644 --- a/lisp/dynamic-setting.el +++ b/lisp/dynamic-setting.el | |||
| @@ -33,6 +33,7 @@ | |||
| 33 | ;;; Customizable variables | 33 | ;;; Customizable variables |
| 34 | 34 | ||
| 35 | (declare-function font-get-system-font "xsettings.c" ()) | 35 | (declare-function font-get-system-font "xsettings.c" ()) |
| 36 | (declare-function reconsider-frame-font "frame.c" ()) | ||
| 36 | 37 | ||
| 37 | (defvar font-use-system-font) | 38 | (defvar font-use-system-font) |
| 38 | 39 | ||
diff --git a/lisp/files.el b/lisp/files.el index ada37d2e9e5..9fdae107068 100644 --- a/lisp/files.el +++ b/lisp/files.el | |||
| @@ -681,7 +681,8 @@ The command \\[normal-mode], when used interactively, | |||
| 681 | always obeys file local variable specifications and the -*- line, | 681 | always obeys file local variable specifications and the -*- line, |
| 682 | and ignores this variable. | 682 | and ignores this variable. |
| 683 | 683 | ||
| 684 | Also see the `permanently-enabled-local-variables' variable." | 684 | Also see the `permanently-enabled-local-variables' and |
| 685 | `safe-local-variable-directories' variables." | ||
| 685 | :risky t | 686 | :risky t |
| 686 | :type '(choice (const :tag "Query Unsafe" t) | 687 | :type '(choice (const :tag "Query Unsafe" t) |
| 687 | (const :tag "Safe Only" :safe) | 688 | (const :tag "Safe Only" :safe) |
| @@ -3696,6 +3697,18 @@ variable to set.") | |||
| 3696 | "A list of file-local variables that are always enabled. | 3697 | "A list of file-local variables that are always enabled. |
| 3697 | This overrides any `enable-local-variables' setting.") | 3698 | This overrides any `enable-local-variables' setting.") |
| 3698 | 3699 | ||
| 3700 | (defcustom safe-local-variable-directories '() | ||
| 3701 | "A list of directories where local variables are always enabled. | ||
| 3702 | Directory-local variables loaded from these directories, such as the | ||
| 3703 | variables in .dir-locals.el, will be enabled even if they are risky. | ||
| 3704 | The names of the directories in the list must be absolute, and must | ||
| 3705 | end in a slash. Remote directories can be included if the | ||
| 3706 | variable `enable-remote-dir-locals' is non-nil." | ||
| 3707 | :version "30.1" | ||
| 3708 | :type '(repeat string) | ||
| 3709 | :risky t | ||
| 3710 | :group 'find-file) | ||
| 3711 | |||
| 3699 | (defun hack-local-variables-confirm (all-vars unsafe-vars risky-vars dir-name) | 3712 | (defun hack-local-variables-confirm (all-vars unsafe-vars risky-vars dir-name) |
| 3700 | "Get confirmation before setting up local variable values. | 3713 | "Get confirmation before setting up local variable values. |
| 3701 | ALL-VARS is the list of all variables to be set up. | 3714 | ALL-VARS is the list of all variables to be set up. |
| @@ -3734,7 +3747,11 @@ n -- to ignore the local variables list.") | |||
| 3734 | ! -- to apply the local variables list, and permanently mark these | 3747 | ! -- to apply the local variables list, and permanently mark these |
| 3735 | values (*) as safe (in the future, they will be set automatically.) | 3748 | values (*) as safe (in the future, they will be set automatically.) |
| 3736 | i -- to ignore the local variables list, and permanently mark these | 3749 | i -- to ignore the local variables list, and permanently mark these |
| 3737 | values (*) as ignored\n\n") | 3750 | values (*) as ignored" |
| 3751 | (if dir-name " | ||
| 3752 | + -- to apply the local variables list, and trust all directory-local | ||
| 3753 | variables in this directory\n\n" | ||
| 3754 | "\n\n")) | ||
| 3738 | (insert "\n\n")) | 3755 | (insert "\n\n")) |
| 3739 | (dolist (elt all-vars) | 3756 | (dolist (elt all-vars) |
| 3740 | (cond ((member elt unsafe-vars) | 3757 | (cond ((member elt unsafe-vars) |
| @@ -3758,7 +3775,11 @@ i -- to ignore the local variables list, and permanently mark these | |||
| 3758 | (pop-to-buffer buf '(display-buffer--maybe-at-bottom)) | 3775 | (pop-to-buffer buf '(display-buffer--maybe-at-bottom)) |
| 3759 | (let* ((exit-chars '(?y ?n ?\s)) | 3776 | (let* ((exit-chars '(?y ?n ?\s)) |
| 3760 | (prompt (format "Please type %s%s: " | 3777 | (prompt (format "Please type %s%s: " |
| 3761 | (if offer-save "y, n, ! or i" "y or n") | 3778 | (if offer-save |
| 3779 | (if dir-name | ||
| 3780 | "y, n, !, i, +" | ||
| 3781 | "y, n, !, i") | ||
| 3782 | "y or n") | ||
| 3762 | (if (< (line-number-at-pos (point-max)) | 3783 | (if (< (line-number-at-pos (point-max)) |
| 3763 | (window-body-height)) | 3784 | (window-body-height)) |
| 3764 | "" | 3785 | "" |
| @@ -3766,8 +3787,13 @@ i -- to ignore the local variables list, and permanently mark these | |||
| 3766 | char) | 3787 | char) |
| 3767 | (when offer-save | 3788 | (when offer-save |
| 3768 | (push ?i exit-chars) | 3789 | (push ?i exit-chars) |
| 3769 | (push ?! exit-chars)) | 3790 | (push ?! exit-chars) |
| 3791 | (when dir-name | ||
| 3792 | (push ?+ exit-chars))) | ||
| 3770 | (setq char (read-char-choice prompt exit-chars)) | 3793 | (setq char (read-char-choice prompt exit-chars)) |
| 3794 | (when (and offer-save dir-name (= char ?+)) | ||
| 3795 | (customize-push-and-save 'safe-local-variable-directories | ||
| 3796 | (list dir-name))) | ||
| 3771 | (when (and offer-save | 3797 | (when (and offer-save |
| 3772 | (or (= char ?!) (= char ?i)) | 3798 | (or (= char ?!) (= char ?i)) |
| 3773 | unsafe-vars) | 3799 | unsafe-vars) |
| @@ -3776,7 +3802,7 @@ i -- to ignore the local variables list, and permanently mark these | |||
| 3776 | 'safe-local-variable-values | 3802 | 'safe-local-variable-values |
| 3777 | 'ignored-local-variable-values) | 3803 | 'ignored-local-variable-values) |
| 3778 | unsafe-vars)) | 3804 | unsafe-vars)) |
| 3779 | (prog1 (memq char '(?! ?\s ?y)) | 3805 | (prog1 (memq char '(?! ?\s ?y ?+)) |
| 3780 | (quit-window t))))))) | 3806 | (quit-window t))))))) |
| 3781 | 3807 | ||
| 3782 | (defconst hack-local-variable-regexp | 3808 | (defconst hack-local-variable-regexp |
| @@ -3908,6 +3934,7 @@ DIR-NAME is the name of the associated directory. Otherwise it is nil." | |||
| 3908 | (null unsafe-vars) | 3934 | (null unsafe-vars) |
| 3909 | (null risky-vars)) | 3935 | (null risky-vars)) |
| 3910 | (memq enable-local-variables '(:all :safe)) | 3936 | (memq enable-local-variables '(:all :safe)) |
| 3937 | (member dir-name safe-local-variable-directories) | ||
| 3911 | (hack-local-variables-confirm all-vars unsafe-vars | 3938 | (hack-local-variables-confirm all-vars unsafe-vars |
| 3912 | risky-vars dir-name)) | 3939 | risky-vars dir-name)) |
| 3913 | (dolist (elt all-vars) | 3940 | (dolist (elt all-vars) |
diff --git a/lisp/net/soap-client.el b/lisp/net/soap-client.el index e4b8bbd9cb5..866b33decc6 100644 --- a/lisp/net/soap-client.el +++ b/lisp/net/soap-client.el | |||
| @@ -5,7 +5,7 @@ | |||
| 5 | ;; Author: Alexandru Harsanyi <AlexHarsanyi@gmail.com> | 5 | ;; Author: Alexandru Harsanyi <AlexHarsanyi@gmail.com> |
| 6 | ;; Author: Thomas Fitzsimmons <fitzsim@fitzsim.org> | 6 | ;; Author: Thomas Fitzsimmons <fitzsim@fitzsim.org> |
| 7 | ;; Created: December, 2009 | 7 | ;; Created: December, 2009 |
| 8 | ;; Version: 3.2.1 | 8 | ;; Version: 3.2.2 |
| 9 | ;; Keywords: soap, web-services, comm, hypermedia | 9 | ;; Keywords: soap, web-services, comm, hypermedia |
| 10 | ;; Package: soap-client | 10 | ;; Package: soap-client |
| 11 | ;; URL: https://github.com/alex-hhh/emacs-soap-client | 11 | ;; URL: https://github.com/alex-hhh/emacs-soap-client |
| @@ -717,9 +717,12 @@ representing leap seconds." | |||
| 717 | second) | 717 | second) |
| 718 | minute hour day month year second-fraction datatype time-zone) | 718 | minute hour day month year second-fraction datatype time-zone) |
| 719 | (let ((time | 719 | (let ((time |
| 720 | (encode-time (list | 720 | ;; Continue calling encode-time the old way, for backward |
| 721 | (if new-decode-time new-decode-time-second second) | 721 | ;; compatibility in GNU ELPA. |
| 722 | minute hour day month year nil nil time-zone)))) | 722 | (apply |
| 723 | #'encode-time (list | ||
| 724 | (if new-decode-time new-decode-time-second second) | ||
| 725 | minute hour day month year nil nil time-zone)))) | ||
| 723 | (if new-decode-time | 726 | (if new-decode-time |
| 724 | (with-no-warnings (decode-time time nil t)) | 727 | (with-no-warnings (decode-time time nil t)) |
| 725 | (decode-time time)))))) | 728 | (decode-time time)))))) |
| @@ -946,7 +949,7 @@ This is a specialization of `soap-encode-attributes' for | |||
| 946 | (t nil))) | 949 | (t nil))) |
| 947 | 950 | ||
| 948 | (defun soap-type-is-array? (type) | 951 | (defun soap-type-is-array? (type) |
| 949 | "Return t if TYPE defines an ARRAY." | 952 | "Return t if TYPE is an ARRAY." |
| 950 | (and (soap-xs-complex-type-p type) | 953 | (and (soap-xs-complex-type-p type) |
| 951 | (eq (soap-xs-complex-type-indicator type) 'array))) | 954 | (eq (soap-xs-complex-type-indicator type) 'array))) |
| 952 | 955 | ||
diff --git a/lisp/progmodes/prog-mode.el b/lisp/progmodes/prog-mode.el index 7a53399ad14..16497097061 100644 --- a/lisp/progmodes/prog-mode.el +++ b/lisp/progmodes/prog-mode.el | |||
| @@ -36,6 +36,7 @@ | |||
| 36 | (declare-function treesit-available-p "treesit.c") | 36 | (declare-function treesit-available-p "treesit.c") |
| 37 | (declare-function treesit-parser-list "treesit.c") | 37 | (declare-function treesit-parser-list "treesit.c") |
| 38 | (declare-function treesit-node-type "treesit.c") | 38 | (declare-function treesit-node-type "treesit.c") |
| 39 | (declare-function treesit-node-at "treesit.c") | ||
| 39 | 40 | ||
| 40 | (defgroup prog-mode nil | 41 | (defgroup prog-mode nil |
| 41 | "Generic programming mode, from which others derive." | 42 | "Generic programming mode, from which others derive." |
diff --git a/lisp/term/haiku-win.el b/lisp/term/haiku-win.el index ae5a2f2fc6b..50c9cb5b9d4 100644 --- a/lisp/term/haiku-win.el +++ b/lisp/term/haiku-win.el | |||
| @@ -36,6 +36,9 @@ | |||
| 36 | (require 'menu-bar) | 36 | (require 'menu-bar) |
| 37 | (require 'fontset) | 37 | (require 'fontset) |
| 38 | (require 'dnd) | 38 | (require 'dnd) |
| 39 | ;; For when building a --without-x configuration, where this is not | ||
| 40 | ;; preloaded. | ||
| 41 | (eval-when-compile (require 'mwheel)) | ||
| 39 | 42 | ||
| 40 | (add-to-list 'display-format-alist '(".*" . haiku)) | 43 | (add-to-list 'display-format-alist '(".*" . haiku)) |
| 41 | 44 | ||
diff --git a/lisp/x-dnd.el b/lisp/x-dnd.el index acfbbed9677..b87fc97f8fd 100644 --- a/lisp/x-dnd.el +++ b/lisp/x-dnd.el | |||
| @@ -31,6 +31,9 @@ | |||
| 31 | ;;; Code: | 31 | ;;; Code: |
| 32 | 32 | ||
| 33 | (require 'dnd) | 33 | (require 'dnd) |
| 34 | ;; For when building a --without-x configuration, where this is not | ||
| 35 | ;; preloaded. | ||
| 36 | (eval-when-compile (require 'mwheel)) | ||
| 34 | 37 | ||
| 35 | ;;; Customizable variables | 38 | ;;; Customizable variables |
| 36 | (defcustom x-dnd-test-function #'x-dnd-default-test-function | 39 | (defcustom x-dnd-test-function #'x-dnd-default-test-function |