Article View: news.software.readers
Article #78798Re: 2 questions
From: John E. Davis
Date: Thu, 17 May 2001 23:01
Date: Thu, 17 May 2001 23:01
26 lines
1457 bytes
1457 bytes
On 17 May 2001 21:42:12 +0100, Stefan Ohlsson <dal95son@mds.mdh.se>
wrote:
>Is there a way like in Emacs (meta-x, and/or also meta-: ) to make it
>possible to type in raw slang expressions and have them evaluated?
Try the following function:
#v+
define execute_slang ()
{
variable str;
str = read_mini ("S-Lang", "", "");
!if (strlen (str))
return;
eval (str);
}
definekey ("execute_slang", "\ex", "group");
definekey ("execute_slang", "\ex", "article");
#v-
--John
Technical Details
Message-ID:
<slrn9g8m1g.mbu.davis@aluche.mit.edu>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.mbox.zip!archiver1.sj.google.com!newsfeed.google.com!newsfeed.stanford.edu!bloom-beacon.mit.edu!senator-bedfellow.mit.edu!dreaderd!not-for-mailReferences:
<slrn9g3fjb.1k3litg.dal95son@bullshit.campus.mdh.se> <slrn9g7kup.1cq.tststs@starflower.tststs.ddns.org> <slrn9g8hdj.1k5g3eo.dal95son@bullshit.campus.mdh.se>Show Full Headers
Complete Article Headers
Message-ID: <slrn9g8m1g.mbu.davis@aluche.mit.edu> Subject: Re: 2 questions Date: Thu, 17 May 2001 23:01:06 +0000 From: davis@space.mit.edu (John E. Davis) References: <slrn9g3fjb.1k3litg.dal95son@bullshit.campus.mdh.se> <slrn9g7kup.1cq.tststs@starflower.tststs.ddns.org> <slrn9g8hdj.1k5g3eo.dal95son@bullshit.campus.mdh.se> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.mbox.zip!archiver1.sj.google.com!newsfeed.google.com!newsfeed.stanford.edu!bloom-beacon.mit.edu!senator-bedfellow.mit.edu!dreaderd!not-for-mail Newsgroups: news.software.readers Organization: Center for Space Research Reply-To: davis@space.mit.edu User-Agent: slrn/0.9.6.4 (Linux) Lines: 25 NNTP-Posting-Host: ALUCHE.MIT.EDU X-Trace: 990140466 senator-bedfellow.mit.edu 1910 18.75.2.45