Mercurial > emacs
diff lisp/textmodes/picture.el @ 33786:9f63b158eb6b
* simple.el (delete-trailing-whitespace): New interactive function.
* progmodes/ada-mode.el (ada-mode): Use it instead of
`ada-remove-trailing-spaces'
(ada-remove-trailing-spaces): Removed.
* textmodes/two-column.el (2C-merge): Recommend it in the doc.
* textmodes/picture.el (picture-mode-exit): Call it instead of
`picture-clean'.
(picture-clean): Removed.
author | Sam Steingold <sds@gnu.org> |
---|---|
date | Wed, 22 Nov 2000 20:59:39 +0000 |
parents | 1dfff19134ab |
children | 78498d8ae698 |
line wrap: on
line diff
--- a/lisp/textmodes/picture.el Wed Nov 22 19:54:36 2000 +0000 +++ b/lisp/textmodes/picture.el Wed Nov 22 20:59:39 2000 +0000 @@ -24,7 +24,7 @@ ;;; Commentary: -;; This code provides the picture-mode commands documented in the Emacs +;; This code provides the picture-mode commands documented in the Emacs ;; manual. The screen is treated as a semi-infinite quarter-plane with ;; support for rectangle operations and `etch-a-sketch' character ;; insertion in any of eight directions. @@ -735,7 +735,7 @@ (interactive "P") (if (not (eq major-mode 'picture-mode)) (error "You aren't editing a Picture.") - (if (not nostrip) (picture-clean)) + (if (not nostrip) (delete-trailing-whitespace)) (setq mode-name picture-mode-old-mode-name) (use-local-map picture-mode-old-local-map) (setq major-mode picture-mode-old-major-mode) @@ -743,13 +743,6 @@ (setq truncate-lines picture-mode-old-truncate-lines) (force-mode-line-update))) -(defun picture-clean () - "Eliminate whitespace at ends of lines." - (save-excursion - (goto-char (point-min)) - (while (re-search-forward "[ \t][ \t]*$" nil t) - (delete-region (match-beginning 0) (point))))) - (provide 'picture) ;;; picture.el ends here