From: Kevin Rodgers <ihs_4664@yahoo.com>
Subject: Re: How make function to run a shell command ON BUFFER??
Date: Mon, 01 Dec 2003 17:42:19 -0700 [thread overview]
Message-ID: <3FCBDFEB.1040806@yahoo.com> (raw)
In-Reply-To: bf23f78f.0312011543.6e92ba13@posting.google.com
Christian Seberino wrote:
> pychecker is a function that checks Python code..
>
> e.g.
>
> pychecker myprogram.py
>
>
> How make an Emacs function to run pychecker on buffer???
>
> I guess function will have to run a shell command with the 1 and only
> argument being the name of buffer.
(defun pychecker (file)
"*Run the external \"pychecker\" program on FILE.
The output is displayed in the *compilation* buffer, which `\\[next-error]'
and `M-x compile-goto-error' parse to find each line of matched text."
(interactive (let* ((default-file (and buffer-file-name
(file-name-nondirectory
buffer-file-name)))
(prompt (if default-file
(format "File (default: %s): " default-file)
"File: ")))
(list (read-file-name prompt nil default-file))))
(compile (format "pychecker %s" file)))
--
Kevin Rodgers
next prev parent reply other threads:[~2003-12-02 0:42 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-12-01 23:43 How make function to run a shell command ON BUFFER?? Christian Seberino
2003-12-02 0:42 ` Kevin Rodgers [this message]
2003-12-02 0:56 ` Dan Anderson
-- strict thread matches above, loose matches on Subject: below --
2003-12-02 13:57 Yehudah Rubinsky
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=3FCBDFEB.1040806@yahoo.com \
--to=ihs_4664@yahoo.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).