aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKatsumi Yamaoka2011-01-27 13:20:55 +0000
committerKatsumi Yamaoka2011-01-27 13:20:55 +0000
commit14596870e2556fd565f258b87ee3ce5751cbba10 (patch)
tree833035a65c822b8c9f83d37b9665b802c1f67da3
parent3f39b526928624a15c3b079e3e69103ab8643bd7 (diff)
downloademacs-14596870e2556fd565f258b87ee3ce5751cbba10.tar.gz
emacs-14596870e2556fd565f258b87ee3ce5751cbba10.zip
shr.el (shr-expand-newlines, shr-previous-newline-padding-width): Use plist-get instead of the cl function getf.
-rw-r--r--lisp/gnus/ChangeLog5
-rw-r--r--lisp/gnus/shr.el8
2 files changed, 10 insertions, 3 deletions
diff --git a/lisp/gnus/ChangeLog b/lisp/gnus/ChangeLog
index 1e3a1b670c9..5a915bb5aed 100644
--- a/lisp/gnus/ChangeLog
+++ b/lisp/gnus/ChangeLog
@@ -1,3 +1,8 @@
12011-01-27 Katsumi Yamaoka <yamaoka@jpl.org>
2
3 * shr.el (shr-expand-newlines, shr-previous-newline-padding-width):
4 Use plist-get instead of the cl function getf.
5
12011-01-27 Glenn Morris <rgm@gnu.org> 62011-01-27 Glenn Morris <rgm@gnu.org>
2 7
3 * gnus-util.el (float-time): Get rid of compiler warning, again. 8 * gnus-util.el (float-time): Get rid of compiler warning, again.
diff --git a/lisp/gnus/shr.el b/lisp/gnus/shr.el
index 4568f45dbb5..f3c75ccd6a3 100644
--- a/lisp/gnus/shr.el
+++ b/lisp/gnus/shr.el
@@ -649,8 +649,9 @@ ones, in case fg and bg are nil."
649 (concat 649 (concat
650 (mapconcat 650 (mapconcat
651 (lambda (overlay) 651 (lambda (overlay)
652 (let ((string (getf (overlay-properties overlay) 652 (let ((string (plist-get
653 'before-string))) 653 (overlay-properties overlay)
654 'before-string)))
654 (if (not string) 655 (if (not string)
655 "" 656 ""
656 (overlay-put overlay 'before-string "") 657 (overlay-put overlay 'before-string "")
@@ -669,7 +670,8 @@ ones, in case fg and bg are nil."
669 (dolist (overlay overlays) 670 (dolist (overlay overlays)
670 (setq previous-width 671 (setq previous-width
671 (+ previous-width 672 (+ previous-width
672 (length (getf (overlay-properties overlay) 'before-string))))) 673 (length (plist-get (overlay-properties overlay)
674 'before-string)))))
673 (+ width previous-width)))) 675 (+ width previous-width))))
674 676
675(defun shr-put-color-1 (start end type color) 677(defun shr-put-color-1 (start end type color)