From: Lars Ingebrigtsen Date: Tue, 7 Feb 2012 00:30:33 +0000 (+0100) Subject: (shr-color-set-minimum-interval): Renamed to add prefix X-Git-Url: https://cgit.sxemacs.org/?a=commitdiff_plain;h=49b61d6c8abde0d76a28fefa380b2dc6eb7bd353;p=gnus (shr-color-set-minimum-interval): Renamed to add prefix bug#10732 --- diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 2306e82ec..b9e05c0b3 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -1,5 +1,8 @@ 2012-02-07 Lars Ingebrigtsen + * shr-color.el (shr-color-set-minimum-interval): Renamed to add prefix + (bug#10732). + * shr.el (shr-insert-document): Add doc string. (shr-visit-file): Ditto. (shr-remove-trailing-whitespace): New function. diff --git a/lisp/shr-color.el b/lisp/shr-color.el index e23ab5796..7011034d2 100644 --- a/lisp/shr-color.el +++ b/lisp/shr-color.el @@ -267,7 +267,8 @@ Like rgb() or hsl()." (t nil)))) -(defun set-minimum-interval (val1 val2 min max interval &optional fixed) +(defun shr-color-set-minimum-interval (val1 val2 min max interval + &optional fixed) "Set minimum interval between VAL1 and VAL2 to INTERVAL. The values are bound by MIN and MAX. If FIXED is t, then VAL1 will not be touched." @@ -341,9 +342,9 @@ color will be adapted to be visible on BG." (>= luminance-distance shr-color-visible-luminance-min)) (list bg fg) ;; Not visible, try to change luminance to make them visible - (let ((Ls (set-minimum-interval (car bg-lab) (car fg-lab) 0 100 - shr-color-visible-luminance-min - fixed-background))) + (let ((Ls (shr-color-set-minimum-interval + (car bg-lab) (car fg-lab) 0 100 + shr-color-visible-luminance-min fixed-background))) (unless fixed-background (setcar bg-lab (car Ls))) (setcar fg-lab (cadr Ls))