# HG changeset patch # User Richard M. Stallman # Date 1015581531 0 # Node ID 6f750829ab0a403b7e1a6e16343139c766b20229 # Parent 21f583da1eacdbc7e4d361ee4216864fffd356a5 (picture-forward-column): New arg `interactive' is non-nil for an interactive call. Use instead of interactive-p. (picture-backward-column): Likewise. diff -r 21f583da1eac -r 6f750829ab0a lisp/textmodes/picture.el --- a/lisp/textmodes/picture.el Fri Mar 08 09:56:30 2002 +0000 +++ b/lisp/textmodes/picture.el Fri Mar 08 09:58:51 2002 +0000 @@ -100,11 +100,11 @@ (skip-chars-backward " \t" (prog1 (point) (end-of-line))) (setq picture-desired-column (current-column))) -(defun picture-forward-column (arg) +(defun picture-forward-column (arg &optional interactive) "Move cursor right, making whitespace if necessary. With argument, move that many columns." - (interactive "p") - (picture-update-desired-column (interactive-p)) + (interactive "p\nd") + (picture-update-desired-column interactive) (setq picture-desired-column (max 0 (+ picture-desired-column arg))) (let ((current-column (move-to-column picture-desired-column t))) (if (and (> current-column picture-desired-column) @@ -113,11 +113,11 @@ ;; column of a multi-column character. (forward-char -1)))) -(defun picture-backward-column (arg) +(defun picture-backward-column (arg &optional interactive) "Move cursor left, making whitespace if necessary. With argument, move that many columns." - (interactive "p") - (picture-update-desired-column (interactive-p)) + (interactive "p\nd") + (picture-update-desired-column interactive) (picture-forward-column (- arg))) (defun picture-move-down (arg)