unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Kevin Rodgers <ihs_4664@yahoo.com>
Subject: Re: eval-to-texi
Date: Mon, 03 May 2004 14:48:51 -0600	[thread overview]
Message-ID: <4096B033.60307@yahoo.com> (raw)
In-Reply-To: 16530.26245.472519.384112@termi.eui.upm.es

jemarch@gnu.org wrote:
 > + (defun texinfo-eval-to-texi (form &optional tostring)
 > +   "Evaluates FORM, dumping a @lisp texinfo environment with the evaluation
 > + description.
 > +
 > + If TOSTRING is t, then the @lisp environment is returned into a string,
 > + rather than being inserted into the current buffer."
 > +
 > +   (interactive "sForm to evaluate: ")

How about making its interface more like shell-command:

(defun texinfo-eval-to-texi (form &optional insert)
   "Evaluate FORM, and display it and the result as a @lisp Texinfo command.
With a prefix argument, insert the Texinfo command in the current buffer.

When called from Lisp, the command is returned as a string."
   (interactive "sForm to evaluate: \nP")
...
   (if insert
       (insert texinfo-command)
     (with-output-to-temp-buffer "*Texinfo*"
       ;; too bad we can't force the buffer into texinfo-mode
       (princ texinfo-command)))
   texinfo-command)

-- 
Kevin Rodgers

  parent reply	other threads:[~2004-05-03 20:48 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-04-30 14:45 eval-to-texi jemarch
2004-05-03 16:39 ` eval-to-texi Stefan Monnier
2004-04-30 17:45   ` eval-to-texi jemarch
2004-05-03 18:21     ` eval-to-texi Adrian Aichner
2004-04-30 18:38       ` eval-to-texi jemarch
2004-05-04  7:40         ` eval-to-texi David Kastrup
2004-05-04  8:51           ` eval-to-texi Juri Linkov
2004-05-04 15:31             ` eval-to-texi Miles Bader
2004-05-03 20:48 ` Kevin Rodgers [this message]
2004-05-03 21:24   ` eval-to-texi Stefan Monnier
2004-05-05  1:17   ` eval-to-texi Jose E. Marchesi

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4096B033.60307@yahoo.com \
    --to=ihs_4664@yahoo.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).