From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Arash Esbati Newsgroups: gmane.emacs.help Subject: Re: Question about cl-flet and cl-letf Date: Sat, 28 Oct 2023 23:07:19 +0200 Message-ID: References: <87pm11aw56.fsf@web.de> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="27598"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: help-gnu-emacs@gnu.org To: Michael Heerdegen Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Sat Oct 28 23:08:02 2023 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1qwqXK-0006wL-Bm for geh-help-gnu-emacs@m.gmane-mx.org; Sat, 28 Oct 2023 23:08:02 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qwqWk-0001Qr-Hd; Sat, 28 Oct 2023 17:07:26 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qwqWi-0001QY-KO for help-gnu-emacs@gnu.org; Sat, 28 Oct 2023 17:07:24 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qwqWi-0001ao-8E; Sat, 28 Oct 2023 17:07:24 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:Date:References:In-Reply-To:Subject:To: From; bh=olvu3EIjBgm0aAFsSOifHXV2QbrpK+lQ3kvON9iR8Dc=; b=AXwUmhjbqkvifzkW+6Ko +3w2bjKaOmyB7Qv9UXAHUE2QF9H7+2L7ALT/qDYhHHb3XUMt/wbm3/WjV83oyk0Z+/QaYkyS2qOJX url0ZGdkZXcF+0nt6beY33nweE6zFsbdo7Ax6o4N2Pt+YHk2noAgf/sI8nkQ7I6Dj3Ll3daXe3emR SGD7Aqi5KcfZk3Bop/HWvhoDNS7kXB0RPzYmu6ZeLa98lU4J5k2tma37YFm0IpS506B6JDgML/cpX 7TQLIW+D45KptQPwYlDtPYuv8svX1jUXz+UtYR/Lq83DDxFZCO2NITcXdJ5NF+uXOgMXLGYB/dQIn EiO5ZcAG8C703Q==; In-Reply-To: <87pm11aw56.fsf@web.de> (Michael Heerdegen's message of "Thu, 26 Oct 2023 23:53:09 +0200") X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.29 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-mx.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.help:145408 Archived-At: Michael Heerdegen writes: > No - they very different. `cl-flet' creates lexical bindings. Your > `cl-letf' call OTOH temporarily changes the function binding of the > symbol `y-or-n-p' - which more or less gives you dynamical binding. Thanks for your response. I basically want to temporarily make `y-or-n-p' act like `always'; and from what I read in the docstrings, both version should work, but `cl-flet' does not. Are the bindings relevant in this case? Sorry if I'm missing the obvious here. Best, Arash