* riece-signal.el (riece-emit-signal): Use riece-funcall-ignore-errors.
[riece] / lisp / riece-yank.el
index a03c71f..12a21cc 100644 (file)
@@ -70,14 +70,14 @@ before/after the first/last non-blank line."
     (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)
@@ -86,7 +86,7 @@ before/after the first/last non-blank line."
            (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