(while (progn (beginning-of-line) (looking-at " *$"))
(delete-region (point) (progn (end-of-line 0) (point))))
;; Delete common spaces in front of lines.
- (setq space-width (point-max))
- (while (looking-at " +")
- (setq space-width (min space-width (length (match-string 0))))
- (forward-line))
- (goto-char (point-min))
- (while (not (eobp))
- (delete-char space-width)
- (forward-line))
+ (let ((space-width (point-max)))
+ (while (looking-at " +")
+ (setq space-width (min space-width (length (match-string 0))))
+ (forward-line))
+ (goto-char (point-min))
+ (while (not (eobp))
+ (delete-char space-width)
+ (forward-line)))
(buffer-string)))
(defun riece-command-yank (arg prefix)
(string= prefix ""))
(setq prefix " "))
(let* ((kill (current-kill 0))
- msg space-width)
+ msg)
(unless kill
(error "Nothing to send in kill-ring"))
(if riece-yank-strip-space