diary-american-date-forms)
:initialize 'custom-initialize-default
:set (lambda (symbol value)
- (unless (equal value (eval symbol))
+ (unless (equal value (default-value symbol))
(custom-set-default symbol value)
(setq diary-font-lock-keywords (diary-font-lock-keywords))
;; Need to redraw not just to get new font-locking, but also
(setq desktop-io-file-version nil)
(dolist (var desktop-globals-to-clear)
(if (symbolp var)
- (eval `(setq-default ,var nil))
- (eval `(setq-default ,(car var) ,(cdr var)))))
+ (set-default var nil)
+ (set-default var (eval (cdr var)))))
(let ((preserve-regexp (concat "^\\("
(mapconcat (lambda (regexp)
(concat "\\(" regexp "\\)"))
PROMPT is a string to be shown when the user is asked for a name."
(let ((encoding
(completing-read
- (format "%s (default %s): " prompt (eval default-name-var))
+ (format "%s (default %s): " prompt (symbol-value default-name-var))
ogonek-name-encoding-alist nil t)))
- ;; change the default name to the one just read
- (set default-name-var
- (if (string= encoding "") (eval default-name-var) encoding))
+ ;; change the default name to the one just read, and
;; return the new default as the name you read
- (eval default-name-var)))
+ (set default-name-var
+ (if (string= encoding "") (symbol-value default-name-var) encoding))))
(defun ogonek-read-prefix (prompt default-prefix-var)
"Read a prefix character for prefix notation.