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: Fri, 07 Oct 2022 18:37:38 +0300 Message-ID: <83k05bmypp.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> 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="39217"; 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 Fri Oct 07 18:58:42 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 1ogqgM-000A4C-JO for geh-help-gnu-emacs@m.gmane-mx.org; Fri, 07 Oct 2022 18:58:42 +0200 Original-Received: from localhost ([::1]:34886 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ogqgL-0002vQ-E8 for geh-help-gnu-emacs@m.gmane-mx.org; Fri, 07 Oct 2022 12:58:41 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:40240) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ogpPv-0006Y9-AW for help-gnu-emacs@gnu.org; Fri, 07 Oct 2022 11:37:39 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:57940) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ogpPv-0000Ha-1n for help-gnu-emacs@gnu.org; Fri, 07 Oct 2022 11:37:39 -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=FHZrPbU5bdm/Nu3Co8M2ThJ4DHgP1EX7wQXVHo3+wA8=; b=OaYQquaPULl4puk7nypT UpFTNY2gkGkRLt9QG0yvPn5VEedYwagn4qzewi+cyIGqARkMaH+XJwNFAUlLUTDgxRf1pkn/eruyz aFRYVBI1d/EPpUA+Fy1ZP8dx35yMwSISLD/+cCTz0PUvzZlLbB6KxPIn51E465e7q9CdVXOrzW09t hVFyCvNcvh29CHpbU3P9YH+OVaCSu/gWuDY8Qz10en/PfXNb/uVD4gW+FrbR+Bo1jksXC4noeovux +pyhyKaOnpj/tnX2HhwyPf/kE4RhcTbkvSNQdgxbijF5tnTDE68MM2vLrta3dxFHASo7VmfAPeqPn /CM7r2OFckr5qQ==; Original-Received: from [87.69.77.57] (port=1137 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 1ogpPu-0001FW-Gj for help-gnu-emacs@gnu.org; Fri, 07 Oct 2022 11:37:38 -0400 In-Reply-To: <25408.15924.69822.546181@tux.local> (message from Dr Rainer Woitok on Fri, 7 Oct 2022 16:56:52 +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:139749 Archived-At: > From: Dr Rainer Woitok > Date: Fri, 7 Oct 2022 16:56:52 +0200 > Cc: help-gnu-emacs@gnu.org > > > Yes: frame parameters can be used to that effect. > > Ok, so I changed my hook function to > > (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?