1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2024-11-25 07:28:20 +00:00

Avoid using plusp; cl may not be loaded.

* lisp/gnus/shr.el (shr-insert):
* lisp/gnus/pop3.el (pop3-movemail):
* lisp/gnus/gnus-html.el (gnus-html-wash-tags): Don't use plusp.
This commit is contained in:
Chong Yidong 2010-10-03 15:54:31 -04:00
parent 4ddf410ae5
commit d99a45914d
4 changed files with 10 additions and 3 deletions

View File

@ -1,3 +1,10 @@
2010-10-03 Chong Yidong <cyd@stupidchicken.com>
* shr.el (shr-insert):
* pop3.el (pop3-movemail):
* gnus-html.el (gnus-html-wash-tags): Don't use plusp, as cl may not be
loaded.
2010-10-03 Glenn Morris <rgm@gnu.org>
* nnmairix.el (nnmairix-replace-illegal-chars): Drop Emacs 20 code.

View File

@ -271,7 +271,7 @@ Use ALT-TEXT for the image string."
(setq tag (match-string 1)
parameters (match-string 2)
start (match-beginning 0))
(when (plusp (length parameters))
(when (> (length parameters) 0)
(set-text-properties 0 (1- (length parameters)) nil parameters))
(delete-region start (point))
(when (search-forward (concat "</" tag ">") nil t)

View File

@ -149,7 +149,7 @@ Use streaming commands."
(let ((size (pop3-stat process)))
(setq message-count (car size)
message-total-size (cadr size)))
(when (plusp message-count)
(when (> message-count 0)
(pop3-send-streaming-command
process "RETR" message-count message-total-size)
(pop3-write-to-file file)

View File

@ -220,7 +220,7 @@ fit these criteria."
(let (column)
(dolist (elem (split-string text))
(setq column (current-column))
(when (plusp column)
(when (> column 0)
(if (> (+ column (length elem) 1) shr-width)
(insert "\n")
(insert " ")))