From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.help Subject: Re: Capture frame, the first entry returned by (mouse-position) Date: Sat, 17 Sep 2022 21:57:42 +0300 Message-ID: <83y1uhzv4p.fsf@gnu.org> References: <838rmh293v.fsf@gnu.org> <834jx52886.fsf@gnu.org> <8335cp2863.fsf@gnu.org> <83zgexzw62.fsf@gnu.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="24934"; mail-complaints-to="usenet@ciao.gmane.io" To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Sat Sep 17 20:58:27 2022 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 1oZd1G-0006Kb-SH for geh-help-gnu-emacs@m.gmane-mx.org; Sat, 17 Sep 2022 20:58:27 +0200 Original-Received: from localhost ([::1]:49294 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oZd1F-0007lG-HM for geh-help-gnu-emacs@m.gmane-mx.org; Sat, 17 Sep 2022 14:58:25 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:52508) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oZd0Z-0007l6-6s for help-gnu-emacs@gnu.org; Sat, 17 Sep 2022 14:57:43 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:36514) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oZd0Y-0006aP-Uq for help-gnu-emacs@gnu.org; Sat, 17 Sep 2022 14:57:42 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=1bnpT4fmCUIBKubna36tliX0OxDxNvTa5nOE5E0jZQg=; b=Hwdgrk5Y6jAu gagjzjV5LjI0aofZXhUPuF0rcmQ6YUdK3xHHHTWaSTmkO1ChWUCvD8rRT3pBs4/1ac3DIJ19j2/Rj YMGA8t7tozCWi5Y5Hr52Fgkdfp2nwI3ZHFC0GV9sxLuTdR/0OzaoHvlspdluI8xuhIZfL47IQq2xc UopJ9g60kZApyuHZYf4ZZI2PHRZuO4DO4UHPl8iHR5FereRul2RFPqsdhksfnD86vgi8i2hpcGIUQ sI3k6ayxUJidTqQRgfMf1xTa34R4GbEpNSH/HpQXpTMLimi3ppyQ1dxEXpxHneQMmqdroElfuW+pa 9SobbI8mSCfk8BFv5+Gy9g==; Original-Received: from [87.69.77.57] (port=3768 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oZd0Y-0000gF-7N for help-gnu-emacs@gnu.org; Sat, 17 Sep 2022 14:57:42 -0400 In-Reply-To: (wilnerthomas@tutanota.com) 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" Xref: news.gmane.io gmane.emacs.help:139562 Archived-At: > Date: Sat, 17 Sep 2022 20:39:16 +0200 (CEST) > From: wilnerthomas@tutanota.com > Cc: help-gnu-emacs@gnu.org > > Sep 17, 2022, 18:35 by eliz@gnu.org: > > > Why a string? Just pass the value of '(car (mouse-position))'. > > That's the frame object those functions want. > > > I would like to pass it for making the initial frame, so cannot just call (car (mouse-position)) > for frame in (set-frame-position frame nlft ntop). If the frame was not yet created, you cannot call set-frame-position for it, because the frame doesn't exist yet. You should instead set the 'top' and 'left' parameters of initial-frame-alist.