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: Tue, 28 May 2013 21:24:45 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.4 (gnu/linux)

First, I got this reply as a mail, but I don't see it on the list.

Quoting "B. T. Raven":

> As in your "count-buffer-wc-option" function below. Of course the
> whole exercise can be avoided with M-| or C-x h M-|

`C-x h' would be mark-whole-buffer, and M-| (pipe)
shell-command-on-region. Tough that is certainly an alternative, I
think `M-x words' is a lot better (on the region if there is one;
otherwise, the entire buffer). So this is not an "exercise", I set it
up because I intend to use it.

> Since a null string is still a string you need something like
> (length opts).

My thought was rather - it is not even a null string if no optional
arg is passed. I don't know if that is the case; but that would be
easy to find out once I'm able to call the functions as intended,
with or without the optional arg.

-- 
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]