mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-04-27 16:51:06 -07:00
(m4-m4-buffer, m4-m4-region): Fix omission bug:
Use m4-program-options to construct shell command.
This commit is contained in:
parent
7a147065e4
commit
39db15c998
2 changed files with 13 additions and 3 deletions
|
|
@ -1,3 +1,8 @@
|
|||
2007-03-23 David Vazquez <xeos00@gmail.com> (tiny change)
|
||||
|
||||
* progmodes/m4-mode.el (m4-m4-buffer, m4-m4-region): Fix
|
||||
omission bug: Use m4-program-options to construct shell command.
|
||||
|
||||
2007-03-23 David Kastrup <dak@gnu.org>
|
||||
|
||||
* progmodes/cc-mode.el (c-make-emacs-variables-local): Use
|
||||
|
|
|
|||
|
|
@ -118,14 +118,19 @@
|
|||
(defun m4-m4-buffer ()
|
||||
"Send contents of the current buffer to m4."
|
||||
(interactive)
|
||||
(shell-command-on-region (point-min) (point-max) m4-program "*m4-output*"
|
||||
nil)
|
||||
(shell-command-on-region
|
||||
(point-min) (point-max)
|
||||
(mapconcat 'identity (cons m4-program m4-program-options) "\s")
|
||||
"*m4-output*" nil)
|
||||
(switch-to-buffer-other-window "*m4-output*"))
|
||||
|
||||
(defun m4-m4-region ()
|
||||
"Send contents of the current region to m4."
|
||||
(interactive)
|
||||
(shell-command-on-region (point) (mark) m4-program "*m4-output*" nil)
|
||||
(shell-command-on-region
|
||||
(point) (mark)
|
||||
(mapconcat 'identity (cons m4-program m4-program-options) "\s")
|
||||
"*m4-output*" nil)
|
||||
(switch-to-buffer-other-window "*m4-output*"))
|
||||
|
||||
;;;###autoload
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue