From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Juanma Barranquero Newsgroups: gmane.emacs.help Subject: Re: How to avoid y-or-n-p in a program? Date: Wed, 12 Mar 2014 17:50:12 +0100 Message-ID: References: <87y50fqvh2.fsf@gmail.com> <87zjkvz95n.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Trace: ger.gmane.org 1394643246 10016 80.91.229.3 (12 Mar 2014 16:54:06 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 12 Mar 2014 16:54:06 +0000 (UTC) Cc: Emacs Help List , Thorsten Jolitz To: Tassilo Horn Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Mar 12 17:54:15 2014 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1WNmQ1-0008J5-55 for geh-help-gnu-emacs@m.gmane.org; Wed, 12 Mar 2014 17:54:13 +0100 Original-Received: from localhost ([::1]:33633 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WNmQ0-00058E-RK for geh-help-gnu-emacs@m.gmane.org; Wed, 12 Mar 2014 12:54:12 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:56257) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WNmMq-0008B4-8V for help-gnu-emacs@gnu.org; Wed, 12 Mar 2014 12:50:56 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WNmMo-0002ZA-QW for help-gnu-emacs@gnu.org; Wed, 12 Mar 2014 12:50:55 -0400 Original-Received: from mail-yh0-x233.google.com ([2607:f8b0:4002:c01::233]:61439) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WNmMm-0002Yq-V7; Wed, 12 Mar 2014 12:50:53 -0400 Original-Received: by mail-yh0-f51.google.com with SMTP id f10so10423145yha.24 for ; Wed, 12 Mar 2014 09:50:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; bh=xvfS9lGLCES8aM6gZKYyuxQxhRmphu3ZkNOEIJ4HZTc=; b=dobHy4wqdg6P4UOb+m7TvY2aiX5/Lqh6JiW6VqH/r5B1L5wAIt/bHyuOE3mgHqtKTX cDG75wNO9900xMyY11DA3Ukav7oOMYUfWyL4SeDfoZQUuOyabyORbvZ64wEoPh2N6pZq Elf33SS1nonUNrzaJb+hOWUTAPObb3nLKYcQBLb5rMCX5hrazIHNjNB/FgGXfePR6llP fhYcxciAZ8LZhi1Ntqyqhxeu7MYV4D2JgObHjsJ7PC7JgetedgGRQFPbzu4C1kPwYLWk gtZW2LCwCffeIqH9ys7+RIOgp5MhvSl2Lv95tbQRi3uFvmqR2NGt6svYifzv/6xQ4spK r11g== X-Received: by 10.236.101.18 with SMTP id a18mr62480308yhg.65.1394643052279; Wed, 12 Mar 2014 09:50:52 -0700 (PDT) Original-Received: by 10.170.163.3 with HTTP; Wed, 12 Mar 2014 09:50:12 -0700 (PDT) In-Reply-To: <87zjkvz95n.fsf@gnu.org> X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2607:f8b0:4002:c01::233 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:96462 Archived-At: On Wed, Mar 12, 2014 at 5:14 PM, Tassilo Horn wrote: > In very recent emacs versions, you can use `cl-letf' for that purpose: In both new and old versions, you can use `left', from the cl package (though if your code is for 24.3+ is better to use cl-letf from cl-lib, yeah). J