+2002-05-26 Simon Josefsson <jas@extundo.com>
+
+ * fringe.el (set-fringe-mode): Work when updating
+ `default-frame-alist'.
+
2002-05-26 Kim F. Storm <storm@cua.dk>
* emulation/cua-base.el (cua--repeat-replace-text): New variable.
;; Apply it to default-frame-alist.
(let ((parameter (assq 'left-fringe default-frame-alist)))
(if (consp parameter)
- (setcdr parameter fringe-mode)
+ (setcdr parameter (if (consp fringe-mode)
+ (car fringe-mode)
+ fringe-mode))
(setq default-frame-alist
(cons (cons 'left-fringe (if (consp fringe-mode)
(car fringe-mode)
default-frame-alist))))
(let ((parameter (assq 'right-fringe default-frame-alist)))
(if (consp parameter)
- (setcdr parameter fringe-mode)
+ (setcdr parameter (if (consp fringe-mode)
+ (cdr fringe-mode)
+ fringe-mode))
(setq default-frame-alist
(cons (cons 'right-fringe (if (consp fringe-mode)
(cdr fringe-mode)