help-gnu-emacs
[Top][All Lists]
Advanced

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

Re: M-x call with optional arg; call from Elisp


From: Emanuel Berg
Subject: Re: M-x call with optional arg; call from Elisp
Date: Mon, 27 May 2013 18:13:58 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.4 (gnu/linux)

Emanuel Berg <embe8573@student.uu.se> writes:

> (defun count-buffer-wc-option (option)
>   (interactive "s wc options: ")
>   "Count buffer according to wc OPTION."
>   (shell-command-on-region (point-min) (point-max)
>                            (format "wc %s" option)) )

Oh, I should say not to cause confusion, the above function - I only
wrote it for test purposes - if I get the other function to work,
that should cover both.

-- 
Emanuel Berg - programmer (hire me! CV below)
computer projects: http://user.it.uu.se/~embe8573
internet activity: http://home.student.uu.se/embe8573


reply via email to

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