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: Box cursor at EoL Date: Sat, 08 Oct 2022 12:12:08 +0300 Message-ID: <83edvillw7.fsf@gnu.org> References: <25405.40924.299467.425535@tux.local> <25407.58176.221509.11918@tux.local> <83pmf3opll.fsf@gnu.org> <25408.15924.69822.546181@tux.local> <83k05bmypp.fsf@gnu.org> <25409.15569.845188.675783@tux.local> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="8628"; 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 Oct 08 11:12:51 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 1oh5t5-00027P-Hi for geh-help-gnu-emacs@m.gmane-mx.org; Sat, 08 Oct 2022 11:12:51 +0200 Original-Received: from localhost ([::1]:45568 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oh5t4-0001hE-1R for geh-help-gnu-emacs@m.gmane-mx.org; Sat, 08 Oct 2022 05:12:50 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:37162) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oh5sP-0001gr-JO for help-gnu-emacs@gnu.org; Sat, 08 Oct 2022 05:12:11 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:51356) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oh5sO-0008CK-5G for help-gnu-emacs@gnu.org; Sat, 08 Oct 2022 05:12:09 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-version:References:Subject:In-Reply-To:To:From: Date; bh=85u0qm/vnX6RVYhRrExwIDWJX/cB9Fz55vGwtPGkmEU=; b=lEaWwuon+yibRMnBRzdL H6fSjc+m+m8K0ucagtBWxyv75jGzNKpEYquOX4FCsMrgr0bpd6yiS5+QlWsKVRfyAmbVIxbMtXbxC Qjwb43+3xTYRWBekuFYsnTzP7Gi7mJMSRxczv/RZRmRT84hYsjy8cqoGfHXUmSGcSeN6Z8Z4iAPVz If9HjWu8ylum5aJz/DK5txvCMhlnYpDwups8barKS36/LpUrEYBZPTHapDt3Pmxa2hAxZfVIscwQT UmAAdORngp5o581+EPFICJV9YKP/kmJ0HDFimL3c3syVrhEQNhHGBvvtTcxIVAM1ZK3/z2BY1GOE4 j3hl2FBLrPHMUw==; Original-Received: from [87.69.77.57] (port=2479 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 1oh5sM-0001Sb-FJ for help-gnu-emacs@gnu.org; Sat, 08 Oct 2022 05:12:07 -0400 In-Reply-To: <25409.15569.845188.675783@tux.local> (message from Dr Rainer Woitok on Sat, 8 Oct 2022 11:03:13 +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" Xref: news.gmane.io gmane.emacs.help:139761 Archived-At: > From: Dr Rainer Woitok > Date: Sat, 8 Oct 2022 11:03:13 +0200 > Cc: help-gnu-emacs@gnu.org > > > > (lambda () (while-no-input > > > (set-frame-parameter nil ; Current frame. > > > 'cursor-type ; Variable name. > > > (if (eolp) EoL-Cursor ; EoL value. > > > Cursor ; Nrm value. > > > ) ) ) ) > > > > > > That works in different frames, but of course not in different windows > > > within the same frame. However replacing function `set-frame-parameter´ > > > with `set-window-parameter´ prevented the hook function from working at > > > all, so `cursor-type´ doesn't seem to be a legal window parameter :-( > > > > How do you access cursor-type when it is a window parameter? > > Erm, I don't. Emacs does (at least when I use `setq´ or `set-frame-par- > ameter´). I just specify which cursor I want to see in which situation > and have Emacs do the rest. > > But thinking twice, my assumption regarding "`cursor-type´ doesn't seem > to be a legal window parameter" might be wrong; it could as well be that > Emacs just doesn't look there for a cursor specification and thus uses > the default cursor all the time in that case. Yes, you must explicitly access the values of window parameters via the function window-parameter. They aren't handled as frame parameters are.