From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Nikolaj Schumacher Newsgroups: gmane.emacs.help Subject: Re: `y-or-n-p' function definition Date: Mon, 08 Sep 2008 12:14:16 +0200 Message-ID: References: <87ej42m64o.fsf@gmail.com> <87ej412cpw.fsf@gmail.com> <1220481354.252639@arno.fh-trier.de> <87zlmnzuwm.fsf@gmail.com> <878wu5nstd.fsf@gmail.com> <87tzctmdzt.fsf_-_@gmail.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1220868924 10664 80.91.229.12 (8 Sep 2008 10:15:24 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 8 Sep 2008 10:15:24 +0000 (UTC) Cc: help-gnu-emacs@gnu.org, kevin.d.rodgers@gmail.com To: Rodolfo Medina Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Sep 08 12:16:19 2008 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1Kcdn6-0004Dc-2b for geh-help-gnu-emacs@m.gmane.org; Mon, 08 Sep 2008 12:16:16 +0200 Original-Received: from localhost ([127.0.0.1]:35142 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Kcdm4-0001cS-7P for geh-help-gnu-emacs@m.gmane.org; Mon, 08 Sep 2008 06:15:12 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KcdlO-0001Yg-Ap for help-gnu-emacs@gnu.org; Mon, 08 Sep 2008 06:14:30 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KcdlL-0001V7-9j for help-gnu-emacs@gnu.org; Mon, 08 Sep 2008 06:14:29 -0400 Original-Received: from [199.232.76.173] (port=52730 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KcdlL-0001Ug-4O for help-gnu-emacs@gnu.org; Mon, 08 Sep 2008 06:14:27 -0400 Original-Received: from dd18200.kasserver.com ([85.13.138.168]:49595) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KcdlK-0001qc-Kz for help-gnu-emacs@gnu.org; Mon, 08 Sep 2008 06:14:27 -0400 Original-Received: from thursday (BAH0767.bah.pppool.de [77.135.7.103]) by dd18200.kasserver.com (Postfix) with ESMTP id AC9D71802E971; Mon, 8 Sep 2008 12:14:20 +0200 (CEST) In-Reply-To: <87tzctmdzt.fsf_-_@gmail.com> (Rodolfo Medina's message of "Sat\, 06 Sep 2008 17\:32\:38 +0100") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.2.50 (darwin) X-detected-kernel: by monty-python.gnu.org: Linux 2.6 (newer, 2) X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:57331 Archived-At: Rodolfo Medina wrote: > Thanks, the `y-or-n-p' function is perfect for what I was looking for. But > now I wish to have something like `y-or-n-p' that asks me if I want right or > left ps footer, like this: > > Right or left? (r/l) Try `read-char'. > If I could access the `y-or-n-p' defun, then I could try to adapt it to an > `r-or-l-p' version, but can't find it anywhere. As `describe-function' will tell you, that function is in the C sources. So you won't be able to adapt it for lisp code. regards, Nikolaj Schumacher