diff options
| author | Thien-Thi Nguyen | 2007-03-23 14:12:02 +0000 |
|---|---|---|
| committer | Thien-Thi Nguyen | 2007-03-23 14:12:02 +0000 |
| commit | 39db15c9989e0a2d2888f9d2003404f36a881e63 (patch) | |
| tree | ad7d1da9e9b379033e725d9362871f1707749532 | |
| parent | 7a147065e48f0cd1b29e7d1fe7e6f0bb8944eea0 (diff) | |
| download | emacs-39db15c9989e0a2d2888f9d2003404f36a881e63.tar.gz emacs-39db15c9989e0a2d2888f9d2003404f36a881e63.zip | |
(m4-m4-buffer, m4-m4-region): Fix omission bug:
Use m4-program-options to construct shell command.
| -rw-r--r-- | lisp/ChangeLog | 5 | ||||
| -rw-r--r-- | lisp/progmodes/m4-mode.el | 11 |
2 files changed, 13 insertions, 3 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index cfd79d1772d..a4a8c3c67bb 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2007-03-23 David Vazquez <xeos00@gmail.com> (tiny change) | ||
| 2 | |||
| 3 | * progmodes/m4-mode.el (m4-m4-buffer, m4-m4-region): Fix | ||
| 4 | omission bug: Use m4-program-options to construct shell command. | ||
| 5 | |||
| 1 | 2007-03-23 David Kastrup <dak@gnu.org> | 6 | 2007-03-23 David Kastrup <dak@gnu.org> |
| 2 | 7 | ||
| 3 | * progmodes/cc-mode.el (c-make-emacs-variables-local): Use | 8 | * progmodes/cc-mode.el (c-make-emacs-variables-local): Use |
diff --git a/lisp/progmodes/m4-mode.el b/lisp/progmodes/m4-mode.el index 734a86b0b99..bd31f731693 100644 --- a/lisp/progmodes/m4-mode.el +++ b/lisp/progmodes/m4-mode.el | |||
| @@ -118,14 +118,19 @@ | |||
| 118 | (defun m4-m4-buffer () | 118 | (defun m4-m4-buffer () |
| 119 | "Send contents of the current buffer to m4." | 119 | "Send contents of the current buffer to m4." |
| 120 | (interactive) | 120 | (interactive) |
| 121 | (shell-command-on-region (point-min) (point-max) m4-program "*m4-output*" | 121 | (shell-command-on-region |
| 122 | nil) | 122 | (point-min) (point-max) |
| 123 | (mapconcat 'identity (cons m4-program m4-program-options) "\s") | ||
| 124 | "*m4-output*" nil) | ||
| 123 | (switch-to-buffer-other-window "*m4-output*")) | 125 | (switch-to-buffer-other-window "*m4-output*")) |
| 124 | 126 | ||
| 125 | (defun m4-m4-region () | 127 | (defun m4-m4-region () |
| 126 | "Send contents of the current region to m4." | 128 | "Send contents of the current region to m4." |
| 127 | (interactive) | 129 | (interactive) |
| 128 | (shell-command-on-region (point) (mark) m4-program "*m4-output*" nil) | 130 | (shell-command-on-region |
| 131 | (point) (mark) | ||
| 132 | (mapconcat 'identity (cons m4-program m4-program-options) "\s") | ||
| 133 | "*m4-output*" nil) | ||
| 129 | (switch-to-buffer-other-window "*m4-output*")) | 134 | (switch-to-buffer-other-window "*m4-output*")) |
| 130 | 135 | ||
| 131 | ;;;###autoload | 136 | ;;;###autoload |