Kevin Ryde on Sun, 09 Nov 2014 09:07:46 +0100
|
[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]
Re: Integrating Pari-GP to the Vim editor
|
- To: pari-users@pari.math.u-bordeaux.fr
- Subject: Re: Integrating Pari-GP to the Vim editor
- From: Kevin Ryde <user42_kevin@yahoo.com.au>
- Date: Sun, 09 Nov 2014 19:06:41 +1100
- Cc: Thomas Baruchel <baruchel@gmx.com>
- Delivery-date: Sun, 09 Nov 2014 09:07:46 +0100
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com.au; s=s2048; t=1415520456; bh=TWq3SOqcrYmzc814cILnW9x2hl5i4X9QoSxizbRCz7g=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From:Subject; b=IMMquoq9qhPgNkU8Fg1nMpuCCBVbfawGjoX6Q+U3IlVQ4neX87qQju1BvYVaSVFr4jZvM8tbUQ1DUb11/Pg1SLjRRJjuBtmGV+/Vw04tvj1ax/tyZn0UW82ofWgoKZUYS5OJRcGMCZw2knnvvYqGAWsb4MT/vtRTUYi88AMtBbjjV/An5VGKzFqtYxjRPB96i4hTBh/yQDWPt+aHZPBTuthc57iO0aoqPbnQVwSnt+K8L5ROGSktGlOCZaRwc/rZbHchlYiQKwSChXayJaMS62kJrp5exd1INAYSFRlZ7SAYgMRvEBiIk/232uTgiXcqgA9Q0FJlUXTS478lb+yi6A==
- Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=s2048; d=yahoo.com.au; b=FzSObkPw92Civ+Bif3hdArmLM5OpjDDeobpj1j9CXrXEbjN+0g4hm/5xxHfoLa7ErJ22Q3lhIyrxGk2hrSeHUNPl1JaxS+tOInxLkwkGv1e/Lx2IhucGdR2H82PZoqeZAHAhQl725ZOjuBkxIxbyuWrSRo+54DmDXpEY/NjkvgMMAwrKbZeOJy/8CTUbahW99KPsAZR7UpgHYI8hDWa2C6psS8SdRfmyidf0KeUT9KCzWeNcysqj9O03SQdc463zWqq8z8ZYD1VaFf37kMHqZmPfZKr1Ow3bHwuk0w3zwYLaAoKaESnewxGiWcMh4lrLgHdlL8OyOMlobD6gfVjnuw==;
- In-reply-to: <544bc929.1YjSxqB+AxRmowiA%baruchel@gmx.com> (baruchel@gmx.com's message of "Sat, 25 Oct 2014 18:00:41 +0200")
- Organization: Bah Humbug
- References: <544bc929.1YjSxqB+AxRmowiA%baruchel@gmx.com>
- User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux)
baruchel@gmx.com writes:
>
> You write a document with "cells" of code and you can evaluate each cell, with
> the interpreter remaining alive in the background from a cell to another one.
I experimented in emacs to evaluate a line as a gp expression by sending
it to M-x gp (of pari.el). This is by a keystroke so perhaps you're
more automatic by waving the cursor over a cell.
I strip # or % prefix to allow expressions as comments in program code,
including for example TeX source. I've also tried stripping a special
prefix like "Test-Pari: 2+2==4" as a way to embed self-tests in a
document, with the idea they're not shown in final output but can be
side calculations or guard against mistakes.