From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 19424 invoked by alias); 18 Jan 2002 04:06:12 -0000 Mailing-List: contact guile-emacs-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: guile-emacs-owner@sources.redhat.com Received: (qmail 19349 invoked from network); 18 Jan 2002 04:06:07 -0000 Received: from unknown (HELO lackawana.kippona.com) (207.8.195.148) by sources.redhat.com with SMTP; 18 Jan 2002 04:06:07 -0000 Received: from localhost (chrisb@localhost [127.0.0.1]) by lackawana.kippona.com (8.12.2.Beta3/8.12.2.Beta3/Kippona) with ESMTP id g0I4630B025234; Thu, 17 Jan 2002 23:06:04 -0500 Date: Thu, 17 Jan 2002 20:06:00 -0000 Message-Id: <20020117.230602.59069554.chrisb@kippona.com> To: knishida@sky.sannet.ne.jp Cc: guile-emacs@sources.redhat.com Subject: Re: emacs-guile From: Chris Beggy In-Reply-To: References: <20020117.182307.56681257.chrisb@kippona.com> X-fingerprint: 6012 F8F8 29B2 67E4 0604 BCD2 F882 88AE 8060 510A X-gpgkeyID: 0x8060510A X-Mailer: Mew version 3.0.51 on Emacs 21.1 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-SW-Source: 2002-q1/txt/msg00010.txt.bz2 From: Keisuke Nishida > At Fri, 18 Jan 2002 08:41:31 +0900, > Keisuke Nishida wrote: > > > > > 2. let me use scheme libraries to do functions in emacs, like > > > manipulating buffers and so on. > > Oops, you can do something with Emacs's buffers using Scheme libraries. > Try the following in _lisp-interaction-mode_. > > (require 'guile) > (guile-import string-upcase) > > (insert (string-upcase (buffer-substring-no-properties 1 100))) and that returns: (require 'guile) (guile-import string-upcase) (insert (string-upcase (buffer-substring-no-properties 1 115))) (REQUIRE 'GUILE) (GUILE-IMPORT STRING-UPCASE) (INSERT (STRING-UPCASE (BUFFER-SUBSTRING-NO-PROPERTIES 1 115) which is great! Now I am starting to understand. > `guile-lisp-eval' is also a Lisp function. You can use > `guile-import-module' to import all functions defined in > a Guile's module. so guile-import, guile-lisp-eval, guile-import-module are all your functions from guile.el. Thanks. Do we have any capability to do something like C-h f to learn about the scheme functions in the imported library? Do we have to worry about collision with elisp symbols? Chris