commit 6afa91f796661058a8eb3646d7063ea468b42901 (HEAD, refs/remotes/origin/master) Author: Jim Porter Date: Sat Mar 11 23:53:34 2023 -0800 Don't over-normalize file names starting with "~" in Eshell Previously, this would call 'expand-file-name' on the file name, but that normalizes the value, turning something like "~/." into "/home/user". As a result, Pcomplete didn't work for dotfiles after "~/" (bug#28064). * lisp/eshell/em-dirs.el (eshell-expand-user-reference): New function... (eshell-expand-user-reference): ... use it. diff --git a/lisp/eshell/em-dirs.el b/lisp/eshell/em-dirs.el index eb679b80cb5..4bc6342d422 100644 --- a/lisp/eshell/em-dirs.el +++ b/lisp/eshell/em-dirs.el @@ -253,11 +253,17 @@ eshell-dirs-substitute-cd (throw 'eshell-replace-command (eshell-parse-command "cd" (flatten-tree args))))) +(defun eshell-expand-user-reference (file) + "Expand a user reference in FILE to its real directory name." + (replace-regexp-in-string + (rx bos (group "~" (*? anychar)) (or "/" eos)) + #'expand-file-name file)) + (defun eshell-parse-user-reference () "An argument beginning with ~ is a filename to be expanded." (when (and (not eshell-current-argument) - (eq (char-after) ?~)) - (add-to-list 'eshell-current-modifiers 'expand-file-name) + (eq (char-after) ?~)) + (add-to-list 'eshell-current-modifiers #'eshell-expand-user-reference) (forward-char) (char-to-string (char-before)))) commit 4234e204ec0e73211e0041d78460b2c51913a517 Author: Michael Albinus Date: Sat Mar 18 12:54:51 2023 +0100 Prefix Tramp internal process properties with "tramp-". * lisp/net/tramp.el (tramp-get-process, tramp-message) (tramp-handle-make-process, tramp-handle-file-notify-valid-p) (tramp-process-actions, tramp-accept-process-output) (tramp-process-sentinel, tramp-read-passwd) (tramp-interrupt-process, tramp-signal-process): * lisp/net/tramp-adb.el (tramp-adb-maybe-open-connection): * lisp/net/tramp-cmds.el (tramp-cleanup-connection): * lisp/net/tramp-crypt.el (tramp-crypt-maybe-open-connection): * lisp/net/tramp-gvfs.el (tramp-gvfs-handle-file-notify-add-watch) (tramp-gvfs-monitor-process-filter) (tramp-gvfs-maybe-open-connection): * lisp/net/tramp-rclone.el (tramp-rclone-maybe-open-connection): * lisp/net/tramp-sh.el (tramp-do-copy-or-rename-file-out-of-band) (tramp-sh-handle-file-notify-add-watch) (tramp-sh-gio-monitor-process-filter) (tramp-sh-inotifywait-process-filter) (tramp-barf-if-no-shell-prompt, tramp-maybe-open-connection): * lisp/net/tramp-smb.el (tramp-smb-handle-copy-directory) (tramp-smb-handle-file-acl, tramp-smb-handle-set-file-acl) (tramp-smb-maybe-open-connection): * lisp/net/tramp-sshfs.el (tramp-sshfs-maybe-open-connection): * lisp/net/tramp-sudoedit.el (tramp-sudoedit-maybe-open-connection) (tramp-sudoedit-send-command): Prefix internal process properties with "tramp-". diff --git a/lisp/net/tramp-adb.el b/lisp/net/tramp-adb.el index d338201ab72..14c63ba5834 100644 --- a/lisp/net/tramp-adb.el +++ b/lisp/net/tramp-adb.el @@ -1249,7 +1249,7 @@ tramp-adb-maybe-open-connection ;; Set sentinel and query flag. Initialize variables. (set-process-sentinel p #'tramp-process-sentinel) - (process-put p 'vector vec) + (process-put p 'tramp-vector vec) (process-put p 'adjust-window-size-function #'ignore) (set-process-query-on-exit-flag p nil) diff --git a/lisp/net/tramp-cmds.el b/lisp/net/tramp-cmds.el index 6627ef47ee2..b0cfdb1ebba 100644 --- a/lisp/net/tramp-cmds.el +++ b/lisp/net/tramp-cmds.el @@ -123,7 +123,7 @@ tramp-cleanup-connection ;; Delete processes. (dolist (key (hash-table-keys tramp-cache-data)) (when (and (processp key) - (tramp-file-name-equal-p (process-get key 'vector) vec) + (tramp-file-name-equal-p (process-get key 'tramp-vector) vec) (or (not keep-processes) (eq key (tramp-get-process vec)))) (tramp-flush-connection-properties key) diff --git a/lisp/net/tramp-crypt.el b/lisp/net/tramp-crypt.el index d0f1f1b8184..116c2b143e9 100644 --- a/lisp/net/tramp-crypt.el +++ b/lisp/net/tramp-crypt.el @@ -316,7 +316,7 @@ tramp-crypt-maybe-open-connection :name (tramp-get-connection-name vec) :buffer (tramp-get-connection-buffer vec) :server t :host 'local :service t :noquery t))) - (process-put p 'vector vec) + (process-put p 'tramp-vector vec) (set-process-query-on-exit-flag p nil))) ;; The following operations must be performed without diff --git a/lisp/net/tramp-gvfs.el b/lisp/net/tramp-gvfs.el index c1ad37de1d2..7323374c607 100644 --- a/lisp/net/tramp-gvfs.el +++ b/lisp/net/tramp-gvfs.el @@ -1460,9 +1460,9 @@ tramp-gvfs-handle-file-notify-add-watch v 'file-notify-error "Monitoring not supported for `%s'" file-name) (tramp-message v 6 "Run `%s', %S" (string-join (process-command p) " ") p) - (process-put p 'vector v) - (process-put p 'events events) - (process-put p 'watch-name localname) + (process-put p 'tramp-vector v) + (process-put p 'tramp-events events) + (process-put p 'tramp-watch-name localname) (process-put p 'adjust-window-size-function #'ignore) (set-process-query-on-exit-flag p nil) (set-process-filter p #'tramp-gvfs-monitor-process-filter) @@ -1481,8 +1481,8 @@ tramp-gvfs-handle-file-notify-add-watch (defun tramp-gvfs-monitor-process-filter (proc string) "Read output from \"gvfs-monitor-file\" and add corresponding \ `file-notify' events." - (let* ((events (process-get proc 'events)) - (rest-string (process-get proc 'rest-string)) + (let* ((events (process-get proc 'tramp-events)) + (rest-string (process-get proc 'tramp-rest-string)) (dd (tramp-get-default-directory (process-buffer proc))) (ddu (rx (literal (tramp-gvfs-url-file-name dd))))) (when rest-string @@ -1525,7 +1525,7 @@ tramp-gvfs-monitor-process-filter (setq file1 (url-unhex-string file1))) ;; Remove watch when file or directory to be watched is deleted. (when (and (member action '(moved deleted)) - (string-equal file (process-get proc 'watch-name))) + (string-equal file (process-get proc 'tramp-watch-name))) (delete-process proc)) ;; Usually, we would add an Emacs event now. Unfortunately, ;; `unread-command-events' does not accept several events at @@ -1537,7 +1537,7 @@ tramp-gvfs-monitor-process-filter ;; Save rest of the string. (when (string-empty-p string) (setq string nil)) (when string (tramp-message proc 10 "Rest string:\n%s" string)) - (process-put proc 'rest-string string))) + (process-put proc 'tramp-rest-string string))) (defun tramp-gvfs-handle-file-system-info (filename) "Like `file-system-info' for Tramp files." @@ -2152,7 +2152,7 @@ tramp-gvfs-maybe-open-connection :name (tramp-get-connection-name vec) :buffer (tramp-get-connection-buffer vec) :server t :host 'local :service t :noquery t))) - (process-put p 'vector vec) + (process-put p 'tramp-vector vec) (set-process-query-on-exit-flag p nil) ;; Set connection-local variables. diff --git a/lisp/net/tramp-rclone.el b/lisp/net/tramp-rclone.el index 9eb2a54cdcf..ec6a1da684f 100644 --- a/lisp/net/tramp-rclone.el +++ b/lisp/net/tramp-rclone.el @@ -371,7 +371,7 @@ tramp-rclone-maybe-open-connection :name (tramp-get-connection-name vec) :buffer (tramp-get-connection-buffer vec) :server t :host 'local :service t :noquery t))) - (process-put p 'vector vec) + (process-put p 'tramp-vector vec) (set-process-query-on-exit-flag p nil) ;; Set connection-local variables. diff --git a/lisp/net/tramp-sh.el b/lisp/net/tramp-sh.el index 2f990af334d..875ad096ad6 100644 --- a/lisp/net/tramp-sh.el +++ b/lisp/net/tramp-sh.el @@ -2423,11 +2423,11 @@ tramp-do-copy-or-rename-file-out-of-band (tramp-get-connection-buffer v) copy-program copy-args))) (tramp-message v 6 "%s" (string-join (process-command p) " ")) - (process-put p 'vector v) + (process-put p 'tramp-vector v) ;; This is neded for ssh or PuTTY based processes, and ;; only if the respective options are set. Perhaps, ;; the setting could be more fine-grained. - ;; (process-put p 'shared-socket t) + ;; (process-put p 'tramp-shared-socket t) (process-put p 'adjust-window-size-function #'ignore) (set-process-query-on-exit-flag p nil) @@ -3756,14 +3756,14 @@ tramp-sh-handle-file-notify-add-watch "`%s' failed to start on remote host" (string-join sequence " ")) (tramp-message v 6 "Run `%s', %S" (string-join sequence " ") p) - (process-put p 'vector v) + (process-put p 'tramp-vector v) ;; This is neded for ssh or PuTTY based processes, and only if ;; the respective options are set. Perhaps, the setting could ;; be more fine-grained. - ;; (process-put p 'shared-socket t) + ;; (process-put p 'tramp-shared-socket t) ;; Needed for process filter. - (process-put p 'events events) - (process-put p 'watch-name localname) + (process-put p 'tramp-events events) + (process-put p 'tramp-watch-name localname) (set-process-query-on-exit-flag p nil) (set-process-filter p filter) (set-process-sentinel p #'tramp-file-notify-process-sentinel) @@ -3777,10 +3777,10 @@ tramp-sh-handle-file-notify-add-watch (defun tramp-sh-gio-monitor-process-filter (proc string) "Read output from \"gio monitor\" and add corresponding `file-notify' events." - (let ((events (process-get proc 'events)) + (let ((events (process-get proc 'tramp-events)) (remote-prefix (file-remote-p (tramp-get-default-directory (process-buffer proc)))) - (rest-string (process-get proc 'rest-string)) + (rest-string (process-get proc 'tramp-rest-string)) pos) (when rest-string (tramp-message proc 10 "Previous string:\n%s" rest-string)) @@ -3862,11 +3862,11 @@ tramp-sh-gio-monitor-process-filter (setq string (replace-match "" nil nil string))) (when (string-empty-p string) (setq string nil)) (when string (tramp-message proc 10 "Rest string:\n%s" string)) - (process-put proc 'rest-string string))) + (process-put proc 'tramp-rest-string string))) (defun tramp-sh-inotifywait-process-filter (proc string) "Read output from \"inotifywait\" and add corresponding `file-notify' events." - (let ((events (process-get proc 'events))) + (let ((events (process-get proc 'tramp-events))) (tramp-message proc 6 "%S\n%s" proc string) (dolist (line (split-string string (rx (+ (any "\r\n"))) 'omit)) ;; Check, whether there is a problem. @@ -3885,7 +3885,8 @@ tramp-sh-inotifywait-process-filter (tramp-compat-string-replace "_" "-" (downcase x)))) (split-string (match-string 1 line) "," 'omit)) (or (match-string 2 line) - (file-name-nondirectory (process-get proc 'watch-name)))))) + (file-name-nondirectory + (process-get proc 'tramp-watch-name)))))) ;; Usually, we would add an Emacs event now. Unfortunately, ;; `unread-command-events' does not accept several events at ;; once. Therefore, we apply the handler directly. @@ -4315,7 +4316,7 @@ tramp-barf-if-no-shell-prompt "Wait for shell prompt and barf if none appears. Looks at process PROC to see if a shell prompt appears in TIMEOUT seconds. If not, it produces an error message with the given ERROR-ARGS." - (let ((vec (process-get proc 'vector))) + (let ((vec (process-get proc 'tramp-vector))) (condition-case nil (tramp-wait-for-regexp proc timeout @@ -5120,11 +5121,11 @@ tramp-maybe-open-connection ;; Set sentinel and query flag. Initialize variables. (set-process-sentinel p #'tramp-process-sentinel) - (process-put p 'vector vec) + (process-put p 'tramp-vector vec) ;; This is neded for ssh or PuTTY based processes, and ;; only if the respective options are set. Perhaps, ;; the setting could be more fine-grained. - ;; (process-put p 'shared-socket t) + ;; (process-put p 'tramp-shared-socket t) (process-put p 'adjust-window-size-function #'ignore) (set-process-query-on-exit-flag p nil) (setq tramp-current-connection (cons vec (current-time))) diff --git a/lisp/net/tramp-smb.el b/lisp/net/tramp-smb.el index bb4ab9e3057..740841c24db 100644 --- a/lisp/net/tramp-smb.el +++ b/lisp/net/tramp-smb.el @@ -559,7 +559,7 @@ tramp-smb-handle-copy-directory (tramp-message v 6 "%s" (string-join (process-command p) " ")) - (process-put p 'vector v) + (process-put p 'tramp-vector v) (process-put p 'adjust-window-size-function #'ignore) (set-process-query-on-exit-flag p nil) @@ -820,7 +820,7 @@ tramp-smb-handle-file-acl (tramp-message v 6 "%s" (string-join (process-command p) " ")) - (process-put p 'vector v) + (process-put p 'tramp-vector v) (process-put p 'adjust-window-size-function #'ignore) (set-process-query-on-exit-flag p nil) (tramp-process-actions p v nil tramp-smb-actions-get-acl) @@ -1421,7 +1421,7 @@ tramp-smb-handle-set-file-acl (tramp-message v 6 "%s" (string-join (process-command p) " ")) - (process-put p 'vector v) + (process-put p 'tramp-vector v) (process-put p 'adjust-window-size-function #'ignore) (set-process-query-on-exit-flag p nil) (tramp-process-actions p v nil tramp-smb-actions-set-acl) @@ -1969,7 +1969,7 @@ tramp-smb-maybe-open-connection args)))) (tramp-message vec 6 "%s" (string-join (process-command p) " ")) - (process-put p 'vector vec) + (process-put p 'tramp-vector vec) (process-put p 'adjust-window-size-function #'ignore) (set-process-query-on-exit-flag p nil) diff --git a/lisp/net/tramp-sshfs.el b/lisp/net/tramp-sshfs.el index 65c4bf23c38..6b788c00ba6 100644 --- a/lisp/net/tramp-sshfs.el +++ b/lisp/net/tramp-sshfs.el @@ -399,7 +399,7 @@ tramp-sshfs-maybe-open-connection :name (tramp-get-connection-name vec) :buffer (tramp-get-connection-buffer vec) :server t :host 'local :service t :noquery t))) - (process-put p 'vector vec) + (process-put p 'tramp-vector vec) (set-process-query-on-exit-flag p nil) ;; Set connection-local variables. diff --git a/lisp/net/tramp-sudoedit.el b/lisp/net/tramp-sudoedit.el index 3cacde2468c..defd4f430bc 100644 --- a/lisp/net/tramp-sudoedit.el +++ b/lisp/net/tramp-sudoedit.el @@ -720,7 +720,7 @@ tramp-sudoedit-maybe-open-connection :name (tramp-get-connection-name vec) :buffer (tramp-get-connection-buffer vec) :server t :host 'local :service t :noquery t))) - (process-put p 'vector vec) + (process-put p 'tramp-vector vec) (set-process-query-on-exit-flag p nil) ;; Set connection-local variables. @@ -758,7 +758,7 @@ tramp-sudoedit-send-command (tramp-message vec 6 "%s" (string-join (process-command p) " ")) ;; Avoid process status message in output buffer. (set-process-sentinel p #'ignore) - (process-put p 'vector vec) + (process-put p 'tramp-vector vec) (process-put p 'adjust-window-size-function #'ignore) (set-process-query-on-exit-flag p nil) (tramp-set-connection-property p "password-vector" tramp-sudoedit-null-hop) diff --git a/lisp/net/tramp.el b/lisp/net/tramp.el index 0c8f8acc07d..6e2c895a6bf 100644 --- a/lisp/net/tramp.el +++ b/lisp/net/tramp.el @@ -725,7 +725,8 @@ tramp-antispoof-regexp ;; A security key requires the user physically to touch the device ;; with their finger. We must tell it to the user. -;; Added in OpenSSH 8.2. I've tested it with yubikey. +;; Added in OpenSSH 8.2. I've tested it with yubikey. Nitrokey, +;; which has also passed the tests, does not show such a message. (defcustom tramp-security-key-confirm-regexp (rx bol (* "\r") "Confirm user presence for key " (* nonl) (* (any "\r\n"))) "Regular expression matching security key confirmation message. @@ -1909,7 +1910,7 @@ tramp-get-process (or (and (tramp-file-name-p vec-or-proc) (get-buffer-process (tramp-buffer-name vec-or-proc))) (and (processp vec-or-proc) - (tramp-get-process (process-get vec-or-proc 'vector))) + (tramp-get-process (process-get vec-or-proc 'tramp-vector))) tramp-cache-undefined)) (defun tramp-get-connection-process (vec) @@ -2189,7 +2190,7 @@ tramp-message vec-or-proc 'dont-create)))))))) ;; Translate proc to vec. (when (processp vec-or-proc) - (setq vec-or-proc (process-get vec-or-proc 'vector)))) + (setq vec-or-proc (process-get vec-or-proc 'tramp-vector)))) ;; Do it. (when (tramp-file-name-p vec-or-proc) (apply #'tramp-debug-message @@ -5087,11 +5088,11 @@ tramp-handle-make-process ;; t. See Bug#51177. (when filter (set-process-filter p filter)) - (process-put p 'vector v) + (process-put p 'tramp-vector v) ;; This is neded for ssh or PuTTY based processes, and ;; only if the respective options are set. Perhaps, the ;; setting could be more fine-grained. - ;; (process-put p 'shared-socket t) + ;; (process-put p 'tramp-shared-socket t) (process-put p 'remote-command orig-command) (tramp-set-connection-property p "remote-command" orig-command) @@ -5506,7 +5507,7 @@ tramp-handle-file-notify-valid-p (with-current-buffer (process-buffer proc) (file-exists-p (concat (file-remote-p default-directory) - (process-get proc 'watch-name)))))) + (process-get proc 'tramp-watch-name)))))) (defun tramp-file-notify-process-sentinel (proc event) "Call `file-notify-rm-watch'." @@ -5726,7 +5727,7 @@ tramp-process-actions ;; use the "password-vector" property in case we have several hops. (tramp-set-connection-property (tramp-get-connection-property - proc "password-vector" (process-get proc 'vector)) + proc "password-vector" (process-get proc 'tramp-vector)) "first-password-request" tramp-cache-read-persistent-data) (save-restriction (with-tramp-progress-reporter @@ -5810,10 +5811,10 @@ tramp-accept-process-output ;; communication. This could block the output for the current ;; process. Read such output first. (Bug#61350) ;; The process property isn't set anymore due to Bug#62194. - (when-let (((process-get proc 'shared-socket)) - (v (process-get proc 'vector))) + (when-let (((process-get proc 'tramp-shared-socket)) + (v (process-get proc 'tramp-vector))) (dolist (p (delq proc (process-list))) - (when (tramp-file-name-equal-p v (process-get p 'vector)) + (when (tramp-file-name-equal-p v (process-get p 'tramp-vector)) (accept-process-output p 0 nil t)))) (with-current-buffer (process-buffer proc) @@ -5965,7 +5966,7 @@ tramp-send-string (defun tramp-process-sentinel (proc event) "Flush file caches and remove shell prompt." (unless (process-live-p proc) - (let ((vec (process-get proc 'vector)) + (let ((vec (process-get proc 'tramp-vector)) (buf (process-buffer proc)) (prompt (tramp-get-connection-property proc "prompt"))) (when vec @@ -6672,7 +6673,7 @@ tramp-read-passwd ;; In tramp-sh.el, we must use "password-vector" due to ;; multi-hop. (vec (tramp-get-connection-property - proc "password-vector" (process-get proc 'vector))) + proc "password-vector" (process-get proc 'tramp-vector))) (key (tramp-make-tramp-file-name vec 'noloc)) (method (tramp-file-name-method vec)) (user (or (tramp-file-name-user-domain vec) @@ -6835,10 +6836,11 @@ tramp-interrupt-process ;; negative pid, so we try both variants. (tramp-compat-funcall 'tramp-send-command - (process-get proc 'vector) + (process-get proc 'tramp-vector) (format "(\\kill -2 -%d || \\kill -2 %d) 2>%s" pid pid - (tramp-get-remote-null-device (process-get proc 'vector)))) + (tramp-get-remote-null-device + (process-get proc 'tramp-vector)))) ;; Wait, until the process has disappeared. If it doesn't, ;; fall back to the default implementation. (while (tramp-accept-process-output proc)) @@ -6864,7 +6866,7 @@ tramp-signal-process (cond ((processp process) (setq pid (process-get process 'remote-pid) - vec (process-get process 'vector))) + vec (process-get process 'tramp-vector))) ((numberp process) (setq pid process vec (and (stringp remote) (tramp-dissect-file-name remote)))) commit 403bad2f604ab096fbf04dad39725198e8c59e73 Author: Alan Mackenzie Date: Sat Mar 18 10:12:24 2023 +0000 CC Mode: Eliminate duplicate function c-list-of-strings Replace it with the existing c-string-list-p. Also put an autoload cookie in front of c-string-list-p so that it will not be signalled as undefined by loaddefs.el. lisp/progmodes/cc-vars.el (c-string-list-p): Make this autoload. (c-list-of-strings): Remove. (c-font-lock-extra-types, c++-font-lock-extra-types) (objc-font-lock-extra-types, java-font-lock-extra-types) (idl-font-lock-extra-types, pike-font-lock-extra-types): In the autoload cookies, replace c-list-of-strings with c-string-list-p. diff --git a/lisp/progmodes/cc-vars.el b/lisp/progmodes/cc-vars.el index dbf24fbbb8b..afeb88c7b8a 100644 --- a/lisp/progmodes/cc-vars.el +++ b/lisp/progmodes/cc-vars.el @@ -232,6 +232,7 @@ c-valid-offset (setq offset (cdr offset))) (null offset))))) +;;;###autoload (defun c-string-list-p (val) "Return non-nil if VAL is a list of strings." (and @@ -1561,16 +1562,6 @@ c-make-font-lock-extra-types-blurb ;; (as opposed to the *-font-lock-keywords-* variables) since the old ;; values work fairly well anyway. -(defun c-list-of-strings (obj) - "Return non-nil when OBJ is a list of strings (including the empty list)." - (and - (listp obj) - (catch 'check - (dolist (elt obj) - (when (not (stringp elt)) - (throw 'check nil))) - t))) - (defcustom c-font-lock-extra-types '("\\sw+_t" ;; Defined in C99: @@ -1586,10 +1577,10 @@ c-font-lock-extra-types "For example, a value of (\"FILE\" \"\\\\sw+_t\") means the word \"FILE\" and words ending in \"_t\" are treated as type names.") :type 'c-extra-types-widget - :safe #'c-list-of-strings + :safe #'c-string-list-p :group 'c) -;;;###autoload (put 'c-font-lock-extra-types 'safe-local-variable #'c-list-of-strings) +;;;###autoload (put 'c-font-lock-extra-types 'safe-local-variable #'c-string-list-p) (defcustom c++-font-lock-extra-types '("\\sw+_t" @@ -1620,10 +1611,10 @@ c++-font-lock-extra-types "For example, a value of (\"string\") means the word \"string\" is treated as a type name.") :type 'c-extra-types-widget - :safe #'c-list-of-strings + :safe #'c-string-list-p :group 'c) -;;;###autoload (put 'c++-font-lock-extra-types 'safe-local-variable #'c-list-of-strings) +;;;###autoload (put 'c++-font-lock-extra-types 'safe-local-variable #'c-string-list-p) (defcustom objc-font-lock-extra-types nil (c-make-font-lock-extra-types-blurb "ObjC" "objc-mode" (concat @@ -1632,10 +1623,10 @@ objc-font-lock-extra-types lower case char is to avoid recognizing all-caps macro and constant names).")) :type 'c-extra-types-widget - :safe #'c-list-of-strings + :safe #'c-string-list-p :group 'c) -;;;###autoload (put 'objc-font-lock-extra-types 'safe-local-variable #'c-list-of-strings) +;;;###autoload (put 'objc-font-lock-extra-types 'safe-local-variable #'c-string-list-p) (defcustom java-font-lock-extra-types (list (concat "[" c-upper "]\\sw*[" c-lower "]\\sw")) @@ -1644,18 +1635,18 @@ java-font-lock-extra-types capitalized words are treated as type names (the requirement for a lower case char is to avoid recognizing all-caps constant names).")) :type 'c-extra-types-widget - :safe #'c-list-of-strings + :safe #'c-string-list-p :group 'c) -;;;###autoload (put 'java-font-lock-extra-types 'safe-local-variable #'c-list-of-strings) +;;;###autoload (put 'java-font-lock-extra-types 'safe-local-variable #'c-string-list-p) (defcustom idl-font-lock-extra-types nil (c-make-font-lock-extra-types-blurb "IDL" "idl-mode" "") :type 'c-extra-types-widget - :safe #'c-list-of-strings + :safe #'c-string-list-p :group 'c) -;;;###autoload (put 'idl-font-lock-extra-types 'safe-local-variable #'c-list-of-strings) +;;;###autoload (put 'idl-font-lock-extra-types 'safe-local-variable #'c-string-list-p) (defcustom pike-font-lock-extra-types (list (concat "[" c-upper "]\\sw*[" c-lower "]\\sw*")) @@ -1665,10 +1656,10 @@ pike-font-lock-extra-types lower case char is to avoid recognizing all-caps macro and constant names).")) :type 'c-extra-types-widget - :safe #'c-list-of-strings + :safe #'c-string-list-p :group 'c) -;;;###autoload (put 'pike-font-lock-extra-types 'safe-local-variable #'c-list-of-strings) +;;;###autoload (put 'pike-font-lock-extra-types 'safe-local-variable #'c-string-list-p) (defcustom c-asymmetry-fontification-flag t "Whether to fontify certain ambiguous constructs by white space asymmetry.