(defun senator-lazy-highlight-update ()
"Force lazy highlight update."
(lazy-highlight-cleanup t)
- (set 'isearch-lazy-highlight-last-string nil)
+ (setq isearch-lazy-highlight-last-string nil)
(setq isearch-adjusted t)
(isearch-update))
(defun edt-find ()
"Find first occurrence of string in current direction and save it."
(interactive)
- (set 'edt-find-last-text (read-string "Search: "))
+ (setq edt-find-last-text (read-string "Search: "))
(if (equal edt-direction-string edt-forward-string)
(edt-find-forward t)
(edt-find-backward t)))
(if edt-last-replaced-key-definition
(progn
(let (edt-key-definition)
- (set 'edt-key-definition
- (read-key-sequence "Press the key to be restored: "))
+ (setq edt-key-definition
+ (read-key-sequence "Press the key to be restored: "))
(if (string-equal "\C-m" edt-key-definition)
(message "Key not restored")
(progn
(progn
(end-kbd-macro nil)
(let (edt-key-definition)
- (set 'edt-key-definition
- (read-key-sequence "Enter key for binding: "))
+ (setq edt-key-definition
+ (read-key-sequence "Enter key for binding: "))
(if (string-equal "\C-m" edt-key-definition)
(message "Key sequence not remembered")
(progn
- (set 'edt-learn-macro-count (+ edt-learn-macro-count 1))
+ (setq edt-learn-macro-count (+ edt-learn-macro-count 1))
(setq edt-last-replaced-key-definition
(lookup-key (current-global-map)
edt-key-definition))
(font-lock-mode -1)
(setq font-lock-defaults nil)
(if (boundp 'font-lock-buffers)
- (set 'font-lock-buffers
- (delq (current-buffer)
- (symbol-value 'font-lock-buffers)))))
+ (setq font-lock-buffers
+ (delq (current-buffer)
+ (symbol-value 'font-lock-buffers)))))
(require 'em-glob)
(let* ((insert-func 'insert)
(error-func 'insert)
;; Make `last-coding-system-used' have the right value.
(when coding-system-used
- (set 'last-coding-system-used coding-system-used))))
+ (setq last-coding-system-used coding-system-used))))
(tramp-flush-file-properties v localname)
;; (C-c @ C) every time before hiding current buffer.
;; (setq-local hide-ifdef-env
;; (default-value 'hide-ifdef-env))
- (set 'hide-ifdef-env (default-value 'hide-ifdef-env))
+ (setq hide-ifdef-env (default-value 'hide-ifdef-env))
;; Some C/C++ headers might have other ways to prevent reinclusion and
;; thus would like `hide-ifdef-expand-reinclusion-protection' to be nil.
(setq-local hide-ifdef-expand-reinclusion-protection
(let* (url-future-tests--saver
(text "running future")
(good (make-url-future :value (lambda () (format text))
- :callback (lambda (f) (set 'url-future-tests--saver f))))
+ :callback (lambda (f) (setq url-future-tests--saver f))))
(bad (make-url-future :value (lambda () (/ 1 0))
- :errorback (lambda (&rest d) (set 'url-future-tests--saver d))))
+ :errorback (lambda (&rest d) (setq url-future-tests--saver d))))
(tocancel (make-url-future :value (lambda () (/ 1 0))
- :callback (lambda (f) (set 'url-future-tests--saver f))
+ :callback (lambda (f) (setq url-future-tests--saver f))
:errorback (lambda (&rest d)
- (set 'url-future-tests--saver d)))))
+ (setq url-future-tests--saver d)))))
(should (equal good (url-future-call good)))
(should (equal good url-future-tests--saver))
(should (equal text (url-future-value good)))