From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Stephen Berman Newsgroups: gmane.emacs.help Subject: Re: Make new buffers into new frames Date: Mon, 30 Sep 2024 11:13:33 +0200 Message-ID: <87msjpld1e.fsf@gmx.net> References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="1786"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: Heime via Users list for the GNU Emacs text editor To: Heime Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Mon Sep 30 11:14:35 2024 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 1svCUE-0000K7-Cc for geh-help-gnu-emacs@m.gmane-mx.org; Mon, 30 Sep 2024 11:14:34 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1svCTS-0004JV-TU; Mon, 30 Sep 2024 05:13:47 -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 1svCTP-0003jR-8J for help-gnu-emacs@gnu.org; Mon, 30 Sep 2024 05:13:43 -0400 Original-Received: from mout.gmx.net ([212.227.15.19]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1svCTM-0004kV-OE for help-gnu-emacs@gnu.org; Mon, 30 Sep 2024 05:13:42 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmx.net; s=s31663417; t=1727687613; x=1728292413; i=stephen.berman@gmx.net; bh=thYTVdlw1qv2z1OYFvuxJ27qr3Zobpk7clnFIKnabhQ=; h=X-UI-Sender-Class:From:To:Cc:Subject:In-Reply-To:References:Date: Message-ID:MIME-Version:Content-Type:Content-Transfer-Encoding:cc: content-transfer-encoding:content-type:date:from:message-id: mime-version:reply-to:subject:to; b=e1yCpgvIGIOvyIYIUEc8uGE2AaJCq+x4KtYOtvOF2Z9dlAVqTOPUHuEM9TGGzHyB nnYNZnSS55Hhp1Vj9PPTd+LeszLD5uS/vfD4bgkolNQP+ytc6Hro1dOEEO8B5aC4N s2vK5lPz0OwDKTiiUXln4n57c7IuSEfFydmFD2lVet2Xxli5MnudUIlDXxnf8esI2 CBp4ZbUUvT3hI9a9SO8ND2KiSTNCpQIiDgqZjmDKBWtBqiqGkc/g3ANnmLPqlHz2y cm8wzORsv88T3xT89YbTLDg/oFSa+/22dhtE6AIPlN0bGzBbzdNqGhP2ARJMCxLal 4GS+x5dws9zDuLX1bQ== X-UI-Sender-Class: 724b4f7f-cbec-4199-ad4e-598c01a50d3a Original-Received: from strobelfssd ([88.130.49.171]) by mail.gmx.net (mrgmx005 [212.227.17.190]) with ESMTPSA (Nemesis) id 1N1fn0-1rtQhB3A3U-016otm; Mon, 30 Sep 2024 11:13:33 +0200 In-Reply-To: (Heime's message of "Mon, 30 Sep 2024 06:40:42 +0000") X-Provags-ID: V03:K1:mwu4QSSCHJPmjF0wj+xMS30x7z57rvv4VRu187eU0rx9FlNnkDq +noaCN7pqh4IhBpwNnyFclFiWIvAf0cdZUUge9IYC65K2KPjKWmrdjhNuJs2to0xJuytNtX owwm4GD+GKlBf8g3aqVCDkEC+jpdP3TObsOs/EEXAvq2TYQ9DcxtBps1GT2Na7rhWN7ilWw yQTDCxr/aMbElnQTLFEtA== UI-OutboundReport: notjunk:1;M01:P0:L4wIYnfswYs=;p6+JN6+oYnWvUALpOIa6TnTiptc kCImrW+vEMaGpkbz77pZ1O1bxA9/g24wPyTHBRcx1ivA0RPz9rzZQ+9ahQB7xfS62Z4cNCXsp GwxLMpJzJEwdyK0ox/9EBvo/DhDKvSdgb+DMXfOsqQ78PN9EnrbY8ULWMrolIt5VDN2gSUOur WszsRQWDEYFofty+3Lzc1SyOk8BlGwAaksnX8A6zzMsep4aXqRi+Dsgwx6F4KZ8WBgRfBaNQW rgucnBdDWzct0U3Umr6HdURNwl9BKaEff9drUAX6YC3iHlO1u9LRV3AvbT3jcDl6k/k92Iu+C goVUZCHuXkauWr/npSE95/5MkA9K4BiYqmxwFcLxjK6UPy4USUPGSmvQ4KvEvxzl8seuyD0bD rhDLz55KPZTg+o9G0NQNLhCzQoBHko7XN5qJNGmElNIVcIe3g11iPjxjhL8dTgwf4tXPWQ3dH N2jNQOwfiQuH5Ra7tYeHOM7xixSrfFjAgAe+X8OmP3w9J0jcVuLhZHuBtjO/AxjdqPD3q8dGF HZSLFbZg8Wg5hiCyobpTVODUzjp0tInxXQ4XPVJH7Q2IZT/7ndjID9UtqfureWA7iThg4f9ZD aUTfDvHygoggUHcfDm8nb6UNh9CxEdGo+y8FQjmZTxO/ZUW0EcGits033eglRd3DsBS1kEm/e IDI/crlGri28qWATfwqv3vNU/0lpDlykzR8JanWUzYQbidKXh+at6Q+3DETmcTsmRxyYk07Dx WFWHUI6h4y4pTlWhZKFFtsI63np5oaYIYpqu60TGqZs2e/Skq0Bp9U46ygNjBExks3XoJ04g Received-SPF: pass client-ip=212.227.15.19; envelope-from=stephen.berman@gmx.net; helo=mout.gmx.net X-Spam_score_int: 12 X-Spam_score: 1.2 X-Spam_bar: + X-Spam_report: (1.2 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, RCVD_IN_SBL_CSS=3.335, RCVD_IN_VALIDITY_CERTIFIED_BLOCKED=0.001, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action 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:148107 Archived-At: On Mon, 30 Sep 2024 06:40:42 +0000 Heime wrote: [...] > Then the correct way is=20 > > 'action (lambda (button) > (display-message my-message "Info Buffer")) > > Does one perform any operation with the button argument in the=20 > declared function or lambda ? See (info "(elisp) Manipulating Buttons"), in particular: -- Function: button-activate button &optional use-mouse-action Call BUTTON's =E2=80=98action=E2=80=99 property (i.e., invoke the func= tion that is the value of that property, passing it the single argument BUTTON). [...] However, since in your case the argument `button' is not used in the body of the function, if you enable lexical binding in the file containing it and byte-compile the file, you'll get a warning: "Unused lexical argument =E2=80=98button=E2=80=99". To avoid that warning, you can= use e.g. `_button' (or just `_') as the argument (cf. (info "(elisp) Converting to Lexical Binding")). Steve Berman