[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Command on current buffer

From: Kevin Rodgers
Subject: Re: Command on current buffer
Date: Mon, 06 Oct 2003 11:57:04 -0600
User-agent: Mozilla/5.0 (X11; U; SunOS i86pc; en-US; rv: Gecko/20020406 Netscape6/6.2.2

Boris wrote:

Mats Löfdahl wrote:
M-x mark-whole-buffer

C-x h

No, I don't want to mark the buffer first, I want to execute something
similar to tex-latex-file. Doesn't Emacs have that?

"Emacs is the extensible, customizable, self-documenting real-time
display editor."

(defun shell-command-on-buffer (command)
 "Execute string COMMAND in inferior shell with buffer as input.
See \\[shell-command-on-region]."
 (interactive (list (read-from-minibuffer "Shell command on buffer: "
                                          nil nil nil
 (shell-command-on-region (point-min) (point-max) command

Kevin Rodgers

reply via email to

[Prev in Thread] Current Thread [Next in Thread]