unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Kevin Rodgers <ihs_4664@yahoo.com>
Subject: Re: How send answer to question a function asks automatically?
Date: Fri, 19 Sep 2003 09:58:56 -0600	[thread overview]
Message-ID: <3F6B27C0.50108@yahoo.com> (raw)
In-Reply-To: bf23f78f.0309181412.40fe869e@posting.google.com

Christian Seberino wrote:

> I want to create a function that calls (server-edit) for me and avoids asking
> me if I want to save the file because it defaults to YES!
> 
>    (defun cs-server-edit() (interactive)
>       (server-edit "y"))
>  
> I've seen this work on other functions but you can't seem to be able to
> add the string next to the function call with server-edit.

You have to read the source, to understand what arguments the function accepts.

Try this:

(defun cs-server-edit()
   (interactive)
   (let ((unread-command-events (cons ?y unread-command-events)))
     (server-edit)))

-- 
Kevin Rodgers

      reply	other threads:[~2003-09-19 15:58 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-09-18 22:12 How send answer to question a function asks automatically? Christian Seberino
2003-09-19 15:58 ` Kevin Rodgers [this message]

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=3F6B27C0.50108@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.
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).