Function: url-eat-trailing-space
url-eat-trailing-space is an autoloaded and byte-compiled function
defined in url-util.el.gz.
Signature
(url-eat-trailing-space X)
Documentation
Remove spaces/tabs at the end of a string.
Source Code
;; Defined in /usr/src/emacs/lisp/url/url-util.el.gz
;;;###autoload
(defun url-eat-trailing-space (x)
"Remove spaces/tabs at the end of a string."
(let ((y (1- (length x)))
(skip-chars (list ? ?\t ?\n)))
(while (and (>= y 0) (memq (aref x y) skip-chars))
(setq y (1- y)))
(substring x 0 (1+ y))))