From mboxrd@z Thu Jan 1 00:00:00 1970 From: Mike Gran Subject: Re: Editing Scheme in the installation image Date: Sun, 8 Jan 2017 18:43:22 +0000 (UTC) Message-ID: <1002155229.590601.1483901002681@mail.yahoo.com> References: <878tqp3y69.fsf@gnu.org> <675307112.1056847.1483710598047@mail.yahoo.com> <87pojzf5l9.fsf@gnu.org> <87y3ym1od1.fsf@gmail.com> <87inppx1ww.fsf@gnu.org> Reply-To: Mike Gran Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:44546) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cQIRn-0004Id-EK for guix-devel@gnu.org; Sun, 08 Jan 2017 13:44:04 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cQIRk-0008Qg-C8 for guix-devel@gnu.org; Sun, 08 Jan 2017 13:44:03 -0500 Received: from nm20-vm5.bullet.mail.ne1.yahoo.com ([98.138.91.242]:57577) by eggs.gnu.org with esmtps (TLS1.0:RSA_ARCFOUR_SHA1:16) (Exim 4.71) (envelope-from ) id 1cQIRk-0008QS-6u for guix-devel@gnu.org; Sun, 08 Jan 2017 13:44:00 -0500 In-Reply-To: <87inppx1ww.fsf@gnu.org> List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: "Guix-devel" To: =?UTF-8?Q?Ludovic_Court=C3=A8s?= , Maxim Cournoyer Cc: guix-devel >On Sunday, January 8, 2017 2:48 AM, Ludovic Court=C3=A8s wr= ote: >Hello, >Maxim Cournoyer skribis: >> ludo@gnu.org (Ludovic Court=C3=A8s) writes: >> >>> Mike Gran skribis: >>> >>>> The functions expressed in Scheme in Zile-on-Guile are the same >>>> as upstream Zile had. It is a fairly limited set. >>>> Zile-on-Guile is a Scheme, not an elisp, even though the functions >>>> it expresses have elisp-like names. So there is little portability >>>> between Emacs and this Zile. >>> >>> Yes. Any idea how hard it would be to port the real Paredit to >>> Zile-on-Guile? >> >> Isn't there native support for elisp in Guile? Would this allow running >> directly Paredit (elisp), provided that Zile-on-Guile implements >> everything that Paredit needs from the Emacs API? >> >> This is probably more work in the short term than rewriting Paredit in >> Scheme, but it would enable Zile-on-Guile to potentially run (m)any Emac= s >> packages. >I think it would take more than elisp compilation support to port Emacs >packages to Zile-on-Guile. Essentially we=E2=80=99d need many APIs that E= macs >provides. I looked at the current beta of paredit, and I quickly scanned the code to look for *emacs* primitives. Below please find a list of the primitives that Zile is missing. Note that this isn't the missing *elisp* procedures. Adding the majority of these is quite straightforward, but, some have heretofore been out of scope for Zile. The missing categories of concepts are - lisp and scheme filling and indentation - blinking the cursor or a matching parenthesis - handling comments - handling what emacs calls "lists" which is moving up and down balanced parentheses Here's the list. I probably missed a few. backward-delete-char-untabify=20 backward-up-list=20 beginning-of-defun=20 blink-matching-open=20 buffer-end=20 buffer-string=20 buffer-substring=20 char-after=20 char-before=20 check-parens=20 comment-forward=20 comment-indent=20 comment-kill=20 comment-region=20 comment-search-forward=20 current-column=20 delete-active-region=20 delete-indentation=20 end-of-defun=20 indent-sexp=20 indent-to=20 interactive=20 kill-whole-line=20 line=20 lisp-fill-paragraph=20 lisp-indent-function=20 lisp-indent-line=20 make-marker=20 matching-paren=20 message=20 narrow-to-region=20 newline=20 point=20 point-at-bol=20 point-at-eol=20 point-max=20 point-min=20 position=20 read-kbd-macro=20 region-beginning=20 region-end=20 save-excursion=20 scan-sexps=20 show-paren-mode=20 skip-chars-forward=20 start+end=20 uncomment-region=20 up-list=20 yank-pop=20 zerop=20 Thanks, Mike