| Deutsch English Français Italiano |
|
<vepi3s$2e42b$1@dont-email.me> View for Bookmarking (what is this?) Look up another Usenet article |
Path: ...!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail From: =?UTF-8?Q?Arne_Vajh=C3=B8j?= <arne@vajhoej.dk> Newsgroups: comp.os.vms Subject: Re: Can C #includes like this be made to work on VMS? Date: Wed, 16 Oct 2024 19:26:52 -0400 Organization: A noiseless patient Spider Lines: 30 Message-ID: <vepi3s$2e42b$1@dont-email.me> References: <vemd23$1qdt1$1@dont-email.me> <memo.20241015201538.19028q@jgd.cix.co.uk> <vemfc9$1qphf$1@dont-email.me> <vemh9n$1qq0t$1@dont-email.me> <670eff59$0$705$14726298@news.sunsite.dk> <671041dd$0$716$14726298@news.sunsite.dk> <vepghu$2e4fp$10@dont-email.me> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Injection-Date: Thu, 17 Oct 2024 01:26:52 +0200 (CEST) Injection-Info: dont-email.me; posting-host="5cbbbf2280be16c52b008897aa345113"; logging-data="2560075"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19/r0i6weszsMwxssrzx9q8qCtzLRg5o4I=" User-Agent: Mozilla Thunderbird Cancel-Lock: sha1:m01slY9npmNqShMwsdo4xL8FQZ8= Content-Language: en-US In-Reply-To: <vepghu$2e4fp$10@dont-email.me> Bytes: 2597 On 10/16/2024 7:00 PM, Lawrence D'Oliveiro wrote: > On Wed, 16 Oct 2024 18:44:44 -0400, Arne Vajhøj wrote: >> procedure eve_all_replace(fndstr,rplstr) >> local fnd_string, >> rpl_string, pos_mark, count_integer; >> if not (eve$prompt_string(fndstr,fnd_string,"Old string: ", >> "No old string given")) then >> return; > > When DEC introduced TPU/EVE, I raised my arms to the heavens in joy at > finally being liberated from the suffering that was EDT. (Hate EDT. Hate, > hate, hate.) > > Then I left it behind with VMS ... and a few decades later, finally found > the time to get to grips with Emacs. > > In Emacs/ELisp, there is the distinction between a “function” (what TPU > would call a “procedure”, I guess) and a “command”. A “function” only > becomes a “command” when you insert the “(interactive ...)” directive near > its start. This is a declarative construct that supplies the information > Emacs uses to obtain the right arguments for the function automatically, > including prompting the user as necessary, so your code doesn’t have to. In EVE a procedure EVE_FOOBAR can be called with: * command FOOBAR ARG ! the EVE_ prefix makes it a command * command TPU EVE_FOOBAR(ARG) ! only interesting if it does not have the EVE_ prefix Arne