From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Dr Rainer Woitok Newsgroups: gmane.emacs.help Subject: Re: Box cursor at EoL Date: Sat, 8 Oct 2022 11:03:13 +0200 Message-ID: <25409.15569.845188.675783@tux.local> 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> 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="14635"; mail-complaints-to="usenet@ciao.gmane.io" Cc: help-gnu-emacs@gnu.org To: Eli Zaretskii Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Sat Oct 08 11:05:00 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 1oh5lU-0003f1-Jx for geh-help-gnu-emacs@m.gmane-mx.org; Sat, 08 Oct 2022 11:05:00 +0200 Original-Received: from localhost ([::1]:46470 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oh5lT-0005TG-H5 for geh-help-gnu-emacs@m.gmane-mx.org; Sat, 08 Oct 2022 05:04:59 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:55632) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oh5jt-0005Sr-Mc for help-gnu-emacs@gnu.org; Sat, 08 Oct 2022 05:03:21 -0400 Original-Received: from mail-ed1-x531.google.com ([2a00:1450:4864:20::531]:36374) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oh5js-00072F-4k; Sat, 08 Oct 2022 05:03:21 -0400 Original-Received: by mail-ed1-x531.google.com with SMTP id e18so9864299edj.3; Sat, 08 Oct 2022 02:03:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=references:in-reply-to:subject:cc:to:date:message-id :content-transfer-encoding:mime-version:from:from:to:cc:subject:date :message-id:reply-to; bh=wlLcYfH5FukoPPNeBJcyPhbt4XM2p0OaRczAHI+R1KY=; b=DPTGMsNjtBsjx5hEdxiR5hvnYv53I+X4PHQ4S8VcdtJ6l1pdfYeK2PL7DMqGxTDLKu mU2YFOZUJPbZFZJCgyY6jahz+ZFaHPQ5wZ0soxDfebjLIpE+woQ+fwrRn4F/FTZe3A33 u1ywQu0cDXIvbMQmOKSEPzjFElYMEb3hGOurIjuLORC66h2eSSrZjFA3B6AAGR1Sq91A xBcwet/KA0FD3QQnJBlbIa5GUOMM57Lt+PIzUnYKhZZBTQ++qSUbZmn+ih5AL2rqdQ/M 4TWR2zp/XWwNC2IftWn5Qjjhy3c1Usz9yWt9ME34ptJgw2yetfRScT6mUPGPCrSkjI3j Cx+w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=references:in-reply-to:subject:cc:to:date:message-id :content-transfer-encoding:mime-version:from:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=wlLcYfH5FukoPPNeBJcyPhbt4XM2p0OaRczAHI+R1KY=; b=koLvfkIUMHWX6vHTMxKAaMkThpDsrFv3JHSzQJHWL1u+AflFHDFwOizGEtURaZ3moh oLjXWpDpj1qYJCst6CrIW34rdG+fGNqpHG2b2UaOiawTMZ0sD6Qe/2pV7tWURf9PK6Oj VckqWMutVaEd5nOcWSzOa50W2MyIiKnQE4EY7urp1seifuj62OHC5BdtTZWLN7buYtGU U0I1N8SJibuPvJusF0xlUqDkI4+OM4PQB1/DuR5zfbFMvUvcB19yfApHhxUHozlFD8Gr 1CamtO/HEEZNXj6ja8eXHPObEjZ6qNco6u5rpugqZR0s9AncOCiy9sIwGPT0DEFdPUVS 8hCA== X-Gm-Message-State: ACrzQf1oIMHJTLBYV/PxB8zSUFZ66hvHCz/KPme6X9et8joCY6dmwT7s UqBmafXrwBMFfPLen7rFNkQNTE+D08LTfQ== X-Google-Smtp-Source: AMsMyM57UrFM5M5t3XR+Z0R8yP6utAJz5HfpD54+WUvAK+5FkQ7kj/AJkOB9c0KMQiMF/kiWEOBoUw== X-Received: by 2002:a05:6402:901:b0:454:2b6d:c39 with SMTP id g1-20020a056402090100b004542b6d0c39mr8175596edz.50.1665219797514; Sat, 08 Oct 2022 02:03:17 -0700 (PDT) Original-Received: from gmail.com (p200300df07034bf91df58bbac2d667f8.dip0.t-ipconnect.de. [2003:df:703:4bf9:1df5:8bba:c2d6:67f8]) by smtp.gmail.com with ESMTPSA id 17-20020a170906311100b00783c545544fsm2386707ejx.215.2022.10.08.02.03.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 08 Oct 2022 02:03:16 -0700 (PDT) X-Google-Original-From: Dr Rainer Woitok In-Reply-To: Msg <83k05bmypp.fsf@gnu.org> of 2022-10-07 18:37:38 +0300 from eliz@gnu.org X-Mailer: VM 8.0.12-devo-585 under 21.5 (beta34) "kale" XEmacs Lucid (x86_64-pc-linux) Received-SPF: pass client-ip=2a00:1450:4864:20::531; envelope-from=rainer.woitok@gmail.com; helo=mail-ed1-x531.google.com X-Spam_score_int: -47 X-Spam_score: -4.8 X-Spam_bar: ---- X-Spam_report: (-4.8 / 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, NICE_REPLY_A=-2.699, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham 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" Xref: news.gmane.io gmane.emacs.help:139760 Archived-At: Eli, On Friday, 2022-10-07 18:37:38 +0300, you wrote: > ... > > (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. Sincerely, Rainer