"Set the contents of the Calc register REGISTER to (TEXT . CALCVAL),
as well as set the contents of the Emacs register REGISTER to TEXT."
(set-register register text)
- (setf (alist-get register calc-register-alist) (cons text calcval)))
+ (alist-set register calc-register-alist (cons text calcval)))
(defun calc-get-register (reg)
"Return the CALCVAL portion of the contents of the Calc register REG,
(completion-preview--modify-cursor))
(setq completion-preview--window (selected-window)
completion-preview--buffer (current-buffer))
- (setf (alist-get 'completion-preview-active-mode
- minor-mode-overriding-map-alist)
- completion-preview-active-mode-map))
+ (alist-set 'completion-preview-active-mode
+ minor-mode-overriding-map-alist
+ completion-preview-active-mode-map))
(remove-hook 'post-command-hook #'completion-preview--cleanup)
(completion-preview--restore-cursor)
(setq completion-preview--window nil
:group 'help)
(defun help--complete-keys-add (key val)
- (setf (alist-get key help--complete-keys-alist nil nil #'equal) val))
+ (alist-set key help--complete-keys-alist val #'equal))
(defcustom help-complete-keys-max-depth 3
"Maximum length of prefix key sequence to flatten in `help-complete-keys'."
;; undo that, probably because `charprop.el' is being re-loaded.
;; Just skip it, in order to work around a recursive load (bug#52945).
nil
- (setf (alist-get name char-code-property-alist) table)
+ (alist-set name char-code-property-alist table)
(put name 'char-code-property-documentation (purecopy docstring))))
(defvar char-code-property-table
(cl-pushnew 'cursor-sensor-functions
(alist-get 'font-lock-extra-managed-props
(nthcdr 5 font-lock-defaults)))
- (setf (alist-get 'font-lock-fontify-region-function
- (nthcdr 5 font-lock-defaults))
- #'elisp-fontify-region)
+ (alist-set 'font-lock-fontify-region-function
+ (nthcdr 5 font-lock-defaults)
+ #'elisp-fontify-region)
(setf (nth 2 font-lock-defaults) nil)
(add-hook 'after-load-functions #'elisp--font-lock-flush-elisp-buffers)
(if (boundp 'electric-pair-text-pairs)